Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
71 user(s) are online (60 user(s) are browsing Forums)

Members: 1
Guests: 70

Skateman, more...

Support us!

Headlines

Report message:*
 

Re: SDL2

Subject: Re: SDL2
by SinanSam460 on 2021/3/23 17:38:27

@kas1e @javier

How do you install xmp on cross-compiler, xmp archive @ OS4depot doesn't have any SDK directory

Now I use

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

But smpeg2 and modplug creates lots of errors:

/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(modplug.o): In function `ModPlug_Unload':
modplug.cpp:(.text+0x7dc): undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(modplug.o): In function `ModPlug_Load':
modplug.cpp:(.text+0xaf4): undefined reference to `_Znwj'
modplug.cpp:(.text+0xb84): undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(sndfile.o): In function `_ZN10CSoundFile15AllocatePatternEjj':
sndfile.cpp:(.text+0x2f58): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(sndfile.o): In function `_ZN10CSoundFile14SetPatternNameEjPKc':
sndfile.cpp:(.text+0x30dc): undefined reference to `_Znaj'
sndfile.cpp:(.text+0x3174): undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(sndfile.o): In function `_ZN10CSoundFile11FreePatternEPv':
sndfile.cpp:(.text+0x3234): undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(sndfile.o): In function `_ZN10CSoundFile7DestroyEv':
sndfile.cpp:(.text+0x5500): undefined reference to `_ZdaPv'
sndfile.cpp:(.text+0x554c): undefined reference to `_ZdaPv'
sndfile.cpp:(.text+0x561c): undefined reference to `_ZdlPv'
sndfile.cpp:(.text+0x5710): undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_xm.o): In function `_ZN10CSoundFile6ReadXMEPKhj':
load_xm.cpp:(.text+0x1330): undefined reference to `_Znwj'
load_xm.cpp:(.text+0x2c04): undefined reference to `_Znaj'
load_xm.cpp:(.text+0x2e88): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_ult.o): In function `_ZN10CSoundFile7ReadUltEPKhj':
load_ult.cpp:(.text+0x164): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_mtm.o): In function `_ZN10CSoundFile7ReadMTMEPKhj':
load_mtm.cpp:(.text+0xb20): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_med.o): In function `_ZN10CSoundFile7ReadMedEPKhj':
load_med.cpp:(.text+0x10cc): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_mdl.o): In function `_ZN10CSoundFile7ReadMDLEPKhj':
load_mdl.cpp:(.text+0x1118): undefined reference to `_ZdaPv'
load_mdl.cpp:(.text+0x1124): undefined reference to `_Znaj'
load_mdl.cpp:(.text+0x1430): undefined reference to `_Znwj'
load_mdl.cpp:(.text+0x18a0): undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_it.o): In function `_ZN10CSoundFile14LoadMixPluginsEPKvj':
load_it.cpp:(.text+0x1058): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_it.o): In function `_ZN10CSoundFile6ReadITEPKhj':
load_it.cpp:(.text+0x2dec): undefined reference to `_Znaj'
load_it.cpp:(.text+0x3434): undefined reference to `_Znaj'
load_it.cpp:(.text+0x3bb4): undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_far.o): In function `_ZN10CSoundFile7ReadFAREPKhj':
load_far.cpp:(.text+0x34c): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_dmf.o): In function `_ZN10CSoundFile7ReadDMFEPKhj':
load_dmf.cpp:(.text+0x77c): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_dbm.o): In function `_ZN10CSoundFile7ReadDBMEPKhj':
load_dbm.cpp:(.text+0x58c): undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_ams.o): In function `_Z9AMSUnpackPKcjPcjc':
load_ams.cpp:(.text+0x3c): undefined reference to `_Znaj'
load_ams.cpp:(.text+0x3f4): undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_ams.o): In function `_ZN10CSoundFile8ReadAMS2EPKhj':
load_ams.cpp:(.text+0x78c): undefined reference to `_Znwj'
load_ams.cpp:(.text+0xee8): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_ams.o): In function `_ZN10CSoundFile7ReadAMSEPKhj':
load_ams.cpp:(.text+0x1ddc): undefined reference to `_Znaj'
load_ams.cpp:(.text+0x1fa0): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_amf.o): In function `_ZN10CSoundFile7ReadAMFEPKhj':
load_amf.cpp:(.text+0x1910): undefined reference to `_Znaj'
load_amf.cpp:(.text+0x1c98): undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_669.o): In function `_ZN10CSoundFile7Read669EPKhj':
load_669.cpp:(.text+0x610): undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_mt2.o): In function `_ZN10CSoundFile7ReadMT2EPKhj':
load_mt2.cpp:(.text+0x718): undefined reference to `_Znaj'
load_mt2.cpp:(.text+0xfe0): undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_pat.o): In function `_ZN10CSoundFile7ReadPATEPKhj':
load_pat.cpp:(.text+0x2518): undefined reference to `_Znwj'
load_pat.cpp:(.text+0x2938): undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libmodplug.a(load_pat.o): In function `PAT_Load_Instruments':
load_pat.cpp:(.text+0x3d64): undefined reference to `_Znwj'
load_pat.cpp:(.text+0x3ed8): undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(smpeg.o): In function `SMPEG_delete':
/home/Michael/smpeg2-2.0.0/smpeg.cpp:215: undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(smpeg.o): In function `SMPEG_new_descr':
/home/Michael/smpeg2-2.0.0/smpeg.cpp:101: undefined reference to `_Znwj'
/home/Michael/smpeg2-2.0.0/smpeg.cpp:102: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(smpeg.o): In function `SMPEG_new':
/home/Michael/smpeg2-2.0.0/smpeg.cpp:82: undefined reference to `_Znwj'
/home/Michael/smpeg2-2.0.0/smpeg.cpp:83: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(smpeg.o): In function `SMPEG_new_rwops':
/home/Michael/smpeg2-2.0.0/smpeg.cpp:142: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(smpeg.o):/home/Michael/smpeg2-2.0.0/smpeg.cpp:143: more undefined references to `_Znwj' follow
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEG.o): In function `~MPEG':
/home/Michael/smpeg2-2.0.0/MPEG.cpp:158: undefined reference to `_ZdaPv'
/home/Michael/smpeg2-2.0.0/MPEG.cpp:159: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEG.cpp:158: undefined reference to `_ZdaPv'
/home/Michael/smpeg2-2.0.0/MPEG.cpp:158: undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEG.o): In function `_ZN4MPEG4InitEP9SDL_RWopsib':
/home/Michael/smpeg2-2.0.0/MPEG.cpp:92: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEG.o): In function `MPEG':
/home/Michael/smpeg2-2.0.0/MPEG.cpp:66: undefined reference to `_Znaj'
/home/Michael/smpeg2-2.0.0/MPEG.cpp:66: undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGring.o): In function `~MPEG_ring':
/home/Michael/smpeg2-2.0.0/MPEGring.cpp:124: undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGstream.o): In function `_ZN10MPEGstream13delete_markerEP17MPEGstream_marker':
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:223: undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGstream.o): In function `_ZN10MPEGstream15garbage_collectEv':
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:331: undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGstream.o): In function `_ZN10MPEGstream10new_markerEi':
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:180: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGstream.o): In function `MPEGstream':
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:35: undefined reference to `_Znwj'
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:35: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGstream.o): In function `_ZN10MPEGstream12reset_streamEv':
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:77: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:79: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:81: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGstream.o): In function `~MPEGstream':
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:59: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:61: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:59: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGstream.cpp:61: undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGsystem.o): In function `~MPEGsystem':
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:485: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:490: undefined reference to `_ZdaPv'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:491: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:485: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:490: undefined reference to `_ZdaPv'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:485: undefined reference to `_ZdlPv'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:490: undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGsystem.o): In function `MPEGsystem':
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:403: undefined reference to `_Znaj'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:425: undefined reference to `_Znwj'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:403: undefined reference to `_Znaj'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:425: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGsystem.o): In function `_ZN10MPEGsystem10FillBufferEv':
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:820: undefined reference to `_Znwj'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:828: undefined reference to `_Znwj'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:855: undefined reference to `_Znwj'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:847: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGsystem.o): In function `_ZN10MPEGsystem16TimeElapsedAudioEi':
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:1120: undefined reference to `_Znaj'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:1168: undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGsystem.o): In function `_ZN10MPEGsystem9TotalTimeEv':
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:976: undefined reference to `_Znaj'
/home/Michael/smpeg2-2.0.0/MPEGsystem.cpp:1074: undefined reference to `_ZdaPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGaudio.o): In function `_ZN9MPEGaudio13StartDecodingEv':
/home/Michael/smpeg2-2.0.0/audio/MPEGaudio.cpp:167: undefined reference to `_Znwj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGaudio.o): In function `~MPEGaudio':
/home/Michael/smpeg2-2.0.0/audio/MPEGaudio.cpp:104: undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGaudio.o):(.rodata._ZTV15MPEGaudioaction[_ZTV15MPEGaudioaction]+0x10): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGaudio.o):(.rodata._ZTV15MPEGaudioaction[_ZTV15MPEGaudioaction]+0x14): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGaudio.o):(.rodata._ZTV15MPEGaudioaction[_ZTV15MPEGaudioaction]+0x18): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGaudio.o):(.rodata._ZTV15MPEGaudioaction[_ZTV15MPEGaudioaction]+0x1c): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGaudio.o):(.rodata._ZTV15MPEGaudioaction[_ZTV15MPEGaudioaction]+0x20): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGaudio.o):(.rodata._ZTV15MPEGaudioaction[_ZTV15MPEGaudioaction]+0x28): more undefined references to `__cxa_pure_virtual' follow
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGvideo.o): In function `~MPEGvideo':
/home/Michael/smpeg2-2.0.0/video/MPEGvideo.cpp:210: undefined reference to `_ZdlPv'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGvideo.o):(.rodata._ZTV15MPEGvideoaction[_ZTV15MPEGvideoaction]+0x10): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGvideo.o):(.rodata._ZTV15MPEGvideoaction[_ZTV15MPEGvideoaction]+0x14): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGvideo.o):(.rodata._ZTV15MPEGvideoaction[_ZTV15MPEGvideoaction]+0x18): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGvideo.o):(.rodata._ZTV15MPEGvideoaction[_ZTV15MPEGvideoaction]+0x1c): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGvideo.o):(.rodata._ZTV15MPEGvideoaction[_ZTV15MPEGvideoaction]+0x20): undefined reference to `__cxa_pure_virtual'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGvideo.o):(.rodata._ZTV15MPEGvideoaction[_ZTV15MPEGvideoaction]+0x28): more undefined references to `__cxa_pure_virtual' follow
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGlist.o): In function `_ZN8MPEGlist5AllocEj':
/home/Michael/smpeg2-2.0.0/MPEGlist.cpp:31: undefined reference to `_Znwj'
/home/Michael/smpeg2-2.0.0/MPEGlist.cpp:35: undefined reference to `_Znaj'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libsmpeg2.a(MPEGlist.o): In function `~MPEGlist':
/home/Michael/smpeg2-2.0.0/MPEGlist.cpp:19: undefined reference to `_ZdaPv'
/home/Michael/smpeg2-2.0.0/MPEGlist.cpp:19: undefined reference to `_ZdaPv'
collect2: error: ld returned 1 exit status


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project