Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Pages: 1
Has anyone compiled mGB from source succesfully?
I tried a few times, but always get a lot of errors.
Seems like it should be compiled with GBDK-n.
Are there diffrent versions of this, or something like that?
https://github.com/trash80/mGB
(*I tried to contact trash80 about that a few weeks ago, but didn't get any answer.)
Offline
I tried it just now and got it to compile. I'm on macOS and used http://brew.sh for installing sdcc (the C compiler needed for gbdk-n).
# Install sdcc (C compiler gbz80) brew install sdcc # Clone the repo to your machine git clone https://github.com/trash80/mGB.git cd mGB # Init submodule and compile gbdk-n git submodule init cd gbdk-n make # Compile the source for mGB cd ../Source make
Offline
Wow, thanks a lot!
I will try this later and reply if it all worked out well!
Offline
Everything is fine now - it all worked out in Linux.
In old Windows I usually use I couldn't get it to work. But that's ok.
Thanks again for your help.
Offline
I recognized one more Problem. I always get a NoMBC 32KB ROM instead of a MBC1 64KB ROM. That causes some problems of course.
Any ideas?
Really a strange thing. Never had that kind of problems before.
Offline
I'm not using this software myself, so I don't know what the produced ROM should be like. But to build a ROM with the specifics you ask for you should update line 18 of the Makefile, so it reads like this:
$(BIN)/gbdk-n-make-rom.sh -ya 4 -yo 4 -yt 2 -yn MGB $(OBJ)/mgb.ihx mgb.gb
Don't know if that solves your problems, though. What are they?
Offline
Pages: 1