Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
37 user(s) are online (26 user(s) are browsing Forums)

Members: 1
Guests: 36

flash, more...

Support us!

Headlines

Report message:*
 

Re: SDL2

Subject: Re: SDL2
by SinanSam460 on 2021/3/23 13:59:51

Dear all

As a newbie, now I'm trying to compile DungeonRush to AmigaOS4

https://github.com/Rapiz1/DungeonRush

Using following command line,

ppc-amigaos-gcc -athread=native *.c -o DRush -lSDL2_mixer -lmikmod -lmpg123 -lflac -lvorbisfile -lvorbis -logg -lSDL2 -lSDL2_image -ljpeg -lSDL2_ttf -lfreetype -lpng -lwebp -ltiff -lSDL2_net -lm -lz -lpthread

I have narrowed down the errors to this:

/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libSDL2_mixer.a(dynamic_modplug.o): In function `Mix_InitModPlug':
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:98: undefined reference to `ModPlug_Load'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:98: undefined reference to `ModPlug_Load'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:99: undefined reference to `ModPlug_Unload'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:99: undefined reference to `ModPlug_Unload'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:100: undefined reference to `ModPlug_Read'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:100: undefined reference to `ModPlug_Read'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:101: undefined reference to `ModPlug_Seek'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:101: undefined reference to `ModPlug_Seek'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:102: undefined reference to `ModPlug_GetSettings'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:102: undefined reference to `ModPlug_GetSettings'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:103: undefined reference to `ModPlug_SetSettings'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:103: undefined reference to `ModPlug_SetSettings'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:104: undefined reference to `ModPlug_SetMasterVolume'
/home/Michael/SDL2_mixer-2.0.1/dynamic_modplug.c:104: undefined reference to `ModPlug_SetMasterVolume'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libSDL2_mixer.a(dynamic_mp3.o): In function `Mix_InitMP3':
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:153: undefined reference to `SMPEG_actualSpec'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:153: undefined reference to `SMPEG_actualSpec'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:154: undefined reference to `SMPEG_delete'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:154: undefined reference to `SMPEG_delete'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:155: undefined reference to `SMPEG_enableaudio'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:155: undefined reference to `SMPEG_enableaudio'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:156: undefined reference to `SMPEG_enablevideo'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:156: undefined reference to `SMPEG_enablevideo'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:157: undefined reference to `SMPEG_new_rwops'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:157: undefined reference to `SMPEG_new_rwops'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:158: undefined reference to `SMPEG_play'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:158: undefined reference to `SMPEG_play'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:159: undefined reference to `SMPEG_playAudio'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:159: undefined reference to `SMPEG_playAudio'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:160: undefined reference to `SMPEG_rewind'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:160: undefined reference to `SMPEG_rewind'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:161: undefined reference to `SMPEG_setvolume'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:161: undefined reference to `SMPEG_setvolume'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:162: undefined reference to `SMPEG_skip'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:162: undefined reference to `SMPEG_skip'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:163: undefined reference to `SMPEG_status'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:163: undefined reference to `SMPEG_status'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:164: undefined reference to `SMPEG_stop'
/home/Michael/SDL2_mixer-2.0.1/dynamic_mp3.c:164: undefined reference to `SMPEG_stop'

If I enable -lsmpeg and -lmodplug, I get many undefined errors. are libsmpeg and -lmodplug too old for new SDL2 port ?

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project