(24.08.2023 08:09)SWAT писал(а): Go to /usr/local/dc/kos/kos/ds/modules/ini/libini remove Makefile and try again. Looks like you build libini library for your host, not for sh4, maybe doesn't type "source /usr/local/dc/kos/kos/environ.sh" first time or something, because I build it fine right now.
You can just type make in /usr/local/dc/kos/kos/ds/modules/ini to test.
Hi SWAT
Again error, delete libini MakeFile and type make from ini folder, In the ini.cpp I don't find the config.h library that's why it doesn't compile
mmmm, ¿is this folder "/usr/local/dc/dc-elf" necessary?, I don't have it, it's from the toolchain?.
Making all in include
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
Making all in src
if /bin/sh ../libtool --mode=compile sh-elf-g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -fno-exceptions -MT ini.lo -MD -MP -MF ".deps/ini.Tpo" -c -o ini.lo ini.cpp; \
then mv -f ".deps/ini.Tpo" ".deps/ini.Plo"; else rm -f ".deps/ini.Tpo"; exit 1; fi
sh-elf-g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -fno-exceptions -MT ini.lo -MD -MP -MF .deps/ini.Tpo -c ini.cpp -o ini.o
headings.i: In function ‘section_tag* __ini_locateHeading(ini_t*, const char*)’:
ini.cpp:154:23: error: ‘_stricmp’ was not declared in this scope; did you mean ‘strncmp’?
154 | # define strcasecmp _stricmp
| ^~~~~~~~
headings.i:268:23: nota: en expansión de macro ‘strcasecmp’
268 | else if (!strcasecmp (current_h->heading, heading))
| ^~~~~~~~~~
keys.i: In function ‘key_tag* __ini_locateKey(ini_t*, const char*)’:
ini.cpp:154:23: error: ‘_stricmp’ was not declared in this scope; did you mean ‘strncmp’?
154 | # define strcasecmp _stricmp
| ^~~~~~~~
keys.i:306:27: nota: en expansión de macro ‘strcasecmp’
306 | else if (!strcasecmp (current_k->key, key))
| ^~~~~~~~~~
types.i: In function ‘int ini_readBool(ini_fd_t, int*)’:
ini.cpp:154:23: error: ‘_stricmp’ was not declared in this scope; did you mean ‘strncmp’?
154 | # define strcasecmp _stricmp
| ^~~~~~~~
types.i:391:14: nota: en expansión de macro ‘strcasecmp’
391 | if (!strcasecmp (buffer, "true"))
| ^~~~~~~~~~
make[2]: *** [ini.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [build_lib] Error 2
UPDATE THE EXAMPLES KOS, they also failed me
Will it have something to do with that?
cd /opt/toolchains/dc/kos/examples/dreamcast
make
kos-cc -o ghettoplay.elf ghettoplay.o texture.o bkg.o 3dutils.o songmenu.o romdisk.o -loggvorbisplay -lvorbis -logg -lm
/opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/13.1.0/../../../../sh-elf/bin/ld: it can not be found -loggvorbisplay: No such file or directory
/opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/13.1.0/../../../../sh-elf/bin/ld: it can not be found -lvorbis: No such file or directory
/opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/13.1.0/../../../../sh-elf/bin/ld: it can not be found -logg: No such file or directory