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

#26 2021-04-09 09:26:10

obscuredesign79
Member
Registered: 2019-11-02
Posts: 11

Re: GBDK 3.0 - updated to latest SDCC and bank support

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

 

#27 2021-04-11 03:56:20

toxa
Member
Registered: 2020-02-13
Posts: 228

Re: GBDK 3.0 - updated to latest SDCC and bank support

Did you set any global environment variables? You don’t need that. Looks like you have something like “bin/sdcc” defined.

Offline

 

#28 2021-04-14 02:36:04

bbbbbr
Member
Registered: 2019-03-04
Posts: 92

Re: GBDK 3.0 - updated to latest SDCC and bank support

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

 

#29 2021-06-16 15:01:38

bbbbbr
Member
Registered: 2019-03-04
Posts: 92

Re: GBDK 3.0 - updated to latest SDCC and bank support

GBDK-2020 4.0.4 has been released:
https://github.com/gbdk-2020/gbdk-2020/ … /tag/4.0.4

This one is more of a service release, so improvements and fixes rather than new features.

- Updated documentation
- Library was improved
    - Switch to standard types declared in stdint.h and stdbool.h
    - Separated cgb.h and sgb.h from gb.h (possible breaking change)
    - get_vram_byte(), get_win_tile_xy(), get_bkg_tile_xy(), set_tile_data()
    - Fixed broken decompression to VRAM routines
- Multiple minor improvements
- png2mtspr improvements and bug fixes
- Support for code relocation with bankpack
- Support for link scripts in lcc
- Support for C input into gbcompress
- Other lcc frontend improvements


Detailed changelog:
https://gbdk-2020.github.io/gbdk-2020/d … eases.html

Last edited by bbbbbr (2021-06-16 15:03:05)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson