error compiling, after building the toolchain

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
bender
Mental DCEmu
Mental DCEmu
Posts: 399
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sun May 12, 2002 4:18 pm
Has thanked: 0
Been thanked: 0

Post by bender »

Thanks :-)
I have compiled chui's SDL and the directories are now in ${KOS_BASE}/../kos-ports/.
All the includes are also in my environ.sh ;-) :

Code: Select all

export KOS_INC_PATHS="-I${KOS_BASE}/../kos-ports/include  -I${KOS_BASE}/../../sh-elf/sh-elf/include -I${KOS_BASE}/include -I${KOS_BASE}/kernel/arch/dreamcast/include -I${KOS_BASE}/include -I${KOS_BASE}/addons/include -I${KOS_BASE}/../kos-ports/include/zlib-1.2.3 -I${KOS_BASE}/../kos-ports/include/libpng-1.2.8 -I${KOS_BASE}/../kos-ports/SDL-1.2.9/include -I${KOS_BASE}/../kos-ports/SDL_mixer-1.2.6/mikmod -I${KOS_BASE}/../kos-ports/SDL_mixer-1.2.6 -I${KOS_BASE}/../kos-ports/SDL_image-1.2.4 -I${KOS_BASE}/../kos-ports/zlib-1.2.3 -I${KOS_BASE}/../kos-ports/include/modplug"
The game seems to compile now but when the linker is called i get:

Code: Select all

...
/tinyxml.o src/bulletml/tinyxml/tinyxmlerror.o src/bulletml/tinyxml/tinyxmlparser.o romdisk.o -lpng -lz -lSDL_mixer -lSDL_image -lSDL  -lm -lstdc++ -Wl,--start-group -lkallisti -lc -lgcc -Wl,--end-group
/usr/local/dc/sh-elf/lib/gcc/sh-elf/3.4.4/../../../../sh-elf/bin/ld: cannot find -lSDL_mixer
collect2: ld returned 1 exit status
make: *** [noiz2sa.elf] Error 1
Again, sdl_mixer. My environ_dreamcast.sh has also:

Code: Select all

export KOS_LDFLAGS="${KOS_LDFLAGS} ${KOS_INC_PATHS} -ml -m4-single-only -Wl,-Ttext=0x8c010000"
I'm missing the paths somewhere but the only site speaking about the LD_FLAGS seems to be the environ_dreamcash.sh. I tend to be a bit scatterbrained (allways), lol
thanks
Post Reply