Gameboy Development Forum

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.

Ads

#1 2017-02-04 09:53:42

Tronimal
New member
From: DE
Registered: 2015-04-03
Posts: 9

I'm having trouble compiling mGB from Source. Anyone could help?

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

 

#2 2017-02-04 16:41:59

svendahlstrand
Member
Registered: 2016-12-07
Posts: 17
Website

Re: I'm having trouble compiling mGB from Source. Anyone could help?

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).

Code:

# 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

 

#3 2017-02-06 09:45:12

Tronimal
New member
From: DE
Registered: 2015-04-03
Posts: 9

Re: I'm having trouble compiling mGB from Source. Anyone could help?

Wow, thanks a lot!

I will try this later and reply if it all worked out well! smile

Offline

 

#4 2017-03-14 14:42:52

Tronimal
New member
From: DE
Registered: 2015-04-03
Posts: 9

Re: I'm having trouble compiling mGB from Source. Anyone could help?

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. smile

Thanks again for your help.

Offline

 

#5 2017-03-18 10:45:11

Tronimal
New member
From: DE
Registered: 2015-04-03
Posts: 9

Re: I'm having trouble compiling mGB from Source. Anyone could help?

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

 

#6 2017-03-18 16:10:26

svendahlstrand
Member
Registered: 2016-12-07
Posts: 17
Website

Re: I'm having trouble compiling mGB from Source. Anyone could help?

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:

Code:

$(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. smile What are they?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson