Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
32 user(s) are online (20 user(s) are browsing Forums)

Members: 0
Guests: 32

more...

Headlines




« 1 ... 47 48 49 (50) 51 52 53 ... 55 »


Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@Capehill

Do our SDL2.0.14 feature SDL_OpenUrl?
(It seems to have been introduced/implemented into 2.0.14 just lately, Feb 10, see https://github.com/libsdl-org/SDL/issues/1690)

ScummVM also lately introduced support for it and now i'm getting undefined references on compiling.

Quote:

backends/platform/sdl/sdl.o: In function `OSystem_SDL::initBackend()':
./backends/platform/sdl/sdl.h:58: undefined reference to `SDL_OpenURL'


Here is the ScummVM PR

Do you want me to open an issue in SDL2 or are you already on it?

Thank you

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: SDL2
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1351
@Raziel

I missed it in 2.0.14 but it has been implemented in master, so 2.0.16 will have it.

If you build the current master you will have something like "2.0.15" version which can be used for development but is not necessarily stable.

   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@Capehill

OK, no problem.

No ScummVM due anyway.
I'll wait for .16 RC

Thank you

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: SDL2
Just popping in
Joined:
2012/7/16 18:57
From Istanbul
Posts: 221
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 ?

_________________
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/2/6 13:57
From Donostia (SPAIN)
Posts: 659
@SinanSam460

I use this on ZGloom:

LIBS = -athread=native -lSDL2_image -ltiff -lwebp -lpng -ljpeg -lz -lm -lSDL2_mixer -lxmp -lmikmod -lmodplug -lFLAC -lsmpeg2 -lvorbisfile -lvorbis -logg -lSDL2

as you already know position is important, try with the above (and add other linklibs if you need).

   Report Go to top

Re: SDL2
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 7068
@Sinan
To add to what Javier say: to note that for sdl2 you had to link with smpeg2, not with smpeg as on sdl1

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: SDL2
Just popping in
Joined:
2012/7/16 18:57
From Istanbul
Posts: 221
@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

_________________
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
   Report Go to top

Re: SDL2
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 7068
@sinan
_Z*** errors coming from missing -lz and __cxa errors coming from the missing -lstdc++ (or alternatively you can link by g++ instead of gcc, so there will be no needs for manual -lstdc++ to be added).

I.e. your line will be or:

Quote:

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 -lz -lstdc++


or

Quote:

ppc-amigaos-g++ -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 -lz

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: SDL2
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1351
Those starting with _Z are actually C++ operator new and delete. You can check (or demangle) those using c++filt command.

I'm not sure, but it could really be the issue of not linking with -lstdc++ (or rather use g++) as kas1e suggested.

   Report Go to top

Re: SDL2
Quite a regular
Joined:
2007/2/6 13:57
From Donostia (SPAIN)
Posts: 659
@SinanSam460

You can jut copy
include/interfaces/xmp.h
include/proto/xmp.h
include/xmp.h

and libxmp.a
in your game build path and just add to compiler build (makefile) "-I. -L." so it will search in these paths.

or to SDK:Local (include & lib), but IIRC this xmp version is rather old.

   Report Go to top

Re: SDL2
Just popping in
Joined:
2012/7/16 18:57
From Istanbul
Posts: 221
@all

Thanks for your suggestions..I have compiled DungeonRush and it works well. I have uploaded the port to OS4Depot.

Now I set my target as compiling KoboRedux
https://github.com/olofson/koboredux

I think it depends on Audiality2

How can I port Audiality2 to AmigaOS4 ?
https://github.com/olofson/audiality2

Is this too much for a beginner ?

_________________
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@SinanSam460

You may need to write your own makefile since cmake doesn't work on amigaos4 last I checked.

You could try to run configure first and see if it throws something.

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: SDL2
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 7068
@Sinan
If you on crosscompiler, then CMAKE works as expected, if you compile things on OS4 native, then you will have problems and will be in needs compile all manually: as Raziel says making own makefiles, or just some bat scripts.

As for porting any library : all you need to know/find if it use or not some OS specific parts (like win32 api, or some internal unix apis). If no, and all coded cross-platform (like SDL/SDL2 or pure C/C++), then it can be ported very easy. But gf it have specific usage of APIs from other OSes , then you will be out of luck most of time (as it mean some rewriting, and usually quite a lot and hard).

But this library looks like can be ported easy, as it can use SDL2 for audio output , so pretty possible it will be just compile and put to SDK.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: SDL2
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1351
There is now an updated version of 2.0.14: https://github.com/AmigaPorts/SDL/rele ... /v2.0.14-update1-amigaos4

Quote:

Implement SDL_OpenURL
Open screens with SA_LikeWorkbench
Use smart refresh also in fullscreen mode
Give screens a title for identification purposes
Compile with GCC10




   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@Capehill

I'm struggling with a new error since this 2.0.14 release.

I'm either getting it on linking the executable or (in the case of the sdl2 static build) right after configure checks for sdl2
g++ -lpthread -athread=native -Wl,--export-dynamic -L/sdk/local/newlib/lib -std=gnu++11  -U__STRICT_ANSI__ --Wno-unused-parameter -Wno-empty-body -fno-operator-names -std=c++11 -gstabs -fvar-tracking-assignments -pedantic -Wno-long-long -Wno-format ./scummvm-conf.cpp -./scummvm-conf -L/SDK/local/newlib/lib -lSDL2 -I/SDK/local/newlib/include/SDL2 -D_REENTRANT
/SDK/local/newlib/lib/libSDL2.a(SDL_os4library.o): In function `OS4_OpenLibrary':
src/video/amigaos4/SDL_os4library.c:66: multiple definition of 
`IExec'
/SDK/newlib/lib/crtbegin.o:(.sbss+0x8): first defined here
/SDK/local/newlib/lib/libSDL2.a(SDL_os4library.o): In function `OS4_OpenLibrary'
:
src/video/amigaos4/SDL_os4library.c:66multiple definition of `INewlib'
/SDK/newlib/lib/crtbegin.o:(.sbss+0x0): first defined here
return code: 1

Any help greatly appreciated

libSDL2.a 5018574 ----rw-d Yesterday 20:00:06

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: SDL2
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1351
@Raziel

My bad, I tested only dynamic linking.

Somehow symbol types in libSDL2.a changed during compiler switch. I will build SDL2 again tomorrow using GCC8 and hopefully make another release.

(and continue investigating GCC10 build later)

   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@Capehill

Oh goody...I thought I broke something (again)

I'll wait for the bee release

Thank you

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: SDL2
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1351

   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@Capehill

Thank you, will report back asap

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: SDL2
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 4323
@Capehill

Hmm, now the shared build refuse to see sdl_openurl, while static is fine :-/

backends/platform/sdl/sdl.oIn function 'OSystem_SDL::openUrl(common::String const&)';
backends/platform/sdl/sdl.cpp:664undefined reference to 'SDL_OpenURL'
backends/platform/sdl/sdl.oIn function 'OSystem_SDL::getSystemLanguage()const':
./
backends/platform/sdl/sdl.h:69undefined reference to 'SDL_OpenURL'

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top


« 1 ... 47 48 49 (50) 51 52 53 ... 55 »



[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project