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.
i did the tutorial for gbdk by gamingmonster a while back using windows and it worked. but now im using linux(debian) and i was wondering if anybody here can help me. I copy the gbdk folder to /opt/gbdk and edited the makefile in the template_minimal in the example folder to GBDK_HOME = /opt/gbdk/. when i run the makefile this is the result.
➜ template_minimal make
/opt/gbdk/bin/lcc -o Example.gb main.c
/opt/gbdk/bin/lcc: /opt/gbdkbin/sdcc: No such file or directory
make: *** [Makefile:29: Example.gb] Error 1
so i copy the /opt/gbdk/bin to /opt/gbdkbin/sdcc and this is the result
➜ template_minimal make
/opt/gbdk/bin/lcc -o Example.gb main.c
main.c:1:20: fatal error: /gb/gb.h: No such file or directory
compilation terminated.
main.c:1: warning 190: ISO C forbids an empty source file
make: *** [Makefile:29: Example.gb] Error 1
how do i properly setup gbdk2020 on linux? i really wana use linux as i dont have a powerful system. thanks
Offline
Did you set any global environment variables? You don’t need that. Looks like you have something like “bin/sdcc” defined.
Offline
Also, installing into /opt is optional. You should be able to unzip the release anywhere, go to any included example program directory and run it's makefile. The included examples use relative path so that they should be able to just work automatically with no editing and environment variable changes required.
Offline