vitasdk / packages

56 stars 52 forks source link

I can't link SDL2_image and SDL2_mixer #93

Closed limitLiu closed 4 years ago

limitLiu commented 4 years ago

OS

macOS 10.15.6

vitasdk

Built at 2020-07-28 16:34:07
newlib            5f72bac408530964cf33d0ac3fedf009dcd55351
pthread-embedded  fe75d65760f0dff2e29e5d5932d7377bb02bbeab
samples           c8fd6f1fd0e8608c839dea65ac9e7bfca730258c
vita-headers      dd5ab4856828f5ff5086b9d12077bfdc7bd28a6b
vita-toolchain    e6795c3f416d3c2cad687c64c75d7e6dbe1508c9

CMakeList.txt content(base samples/sdl2/redrectangle)

#...
target_link_libraries(${PROJECT_NAME}
        SDL2
        SDL2_mixer
        SDL2_image
        vita2d
        SceDisplay_stub
        SceCtrl_stub
        SceAudio_stub
        SceSysmodule_stub
        SceGxm_stub
        SceCommonDialog_stub
        SceAppMgr_stub
        SceTouch_stub
        SceHid_stub
        m
        stdc++
        pthread
        )
#...

make logs

/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/lib/libSDL2_mixer.a(mixer.o): in function `Mix_LoadWAV_RW':
(.text+0x242): undefined reference to `SDL_LoadWAV_RW'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/lib/libSDL2_mixer.a(music_flac.o): in function `FLAC_Load':
(.text+0x10): undefined reference to `FLAC__stream_decoder_delete'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x14): undefined reference to `FLAC__stream_decoder_new'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x1a): undefined reference to `FLAC__stream_decoder_new'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x1e): undefined reference to `FLAC__stream_decoder_delete'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x26): undefined reference to `FLAC__stream_decoder_init_stream'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2a): undefined reference to `FLAC__stream_decoder_finish'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2e): undefined reference to `FLAC__stream_decoder_init_stream'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x32): undefined reference to `FLAC__stream_decoder_finish'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x36): undefined reference to `FLAC__stream_decoder_flush'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e): undefined reference to `FLAC__stream_decoder_process_single'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x42): undefined reference to `FLAC__stream_decoder_flush'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x46): undefined reference to `FLAC__stream_decoder_process_single'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x4e): undefined reference to `FLAC__stream_decoder_process_until_end_of_metadata'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x52): undefined reference to `FLAC__stream_decoder_process_until_end_of_stream'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x56): undefined reference to `FLAC__stream_decoder_process_until_end_of_metadata'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x5a): undefined reference to `FLAC__stream_decoder_process_until_end_of_stream'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x62): undefined reference to `FLAC__stream_decoder_seek_absolute'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x6e): undefined reference to `FLAC__stream_decoder_get_state'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x72): undefined reference to `FLAC__stream_decoder_seek_absolute'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x76): undefined reference to `FLAC__stream_decoder_get_state'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/lib/libSDL2_mixer.a(music_mikmod.o): in function `MIKMOD_Load':
(.text+0x10): undefined reference to `MikMod_Exit'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x14): undefined reference to `MikMod_InfoDriver'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x1a): undefined reference to `MikMod_Exit'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x20): undefined reference to `MikMod_InfoDriver'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x24): undefined reference to `MikMod_InfoLoader'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2e): undefined reference to `MikMod_Init'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x32): undefined reference to `MikMod_strerror'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x36): undefined reference to `MikMod_InfoLoader'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3a): undefined reference to `MikMod_Init'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e): undefined reference to `MikMod_strerror'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x46): undefined reference to `MikMod_free'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x4c): undefined reference to `Player_Active'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x50): undefined reference to `MikMod_free'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x54): undefined reference to `Player_Active'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x5c): undefined reference to `Player_LoadGeneric'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x60): undefined reference to `Player_LoadGeneric'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x64): undefined reference to `Player_Free'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x6a): undefined reference to `Player_Free'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x6e): undefined reference to `Player_SetPosition'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x72): undefined reference to `Player_SetVolume'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x78): undefined reference to `Player_SetPosition'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x7c): undefined reference to `Player_SetVolume'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x80): undefined reference to `Player_Start'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x88): undefined reference to `Player_Start'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x8c): undefined reference to `drv_nos'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x92): undefined reference to `drv_nos'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x96): undefined reference to `md_device'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x9a): undefined reference to `md_mixfreq'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xa0): undefined reference to `md_device'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xa4): undefined reference to `md_mixfreq'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xa8): undefined reference to `md_mode'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xb0): undefined reference to `md_mode'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xb4): undefined reference to `MikMod_RegisterAllLoaders'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xba): undefined reference to `MikMod_RegisterAllLoaders'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xc6): undefined reference to `MikMod_RegisterDriver'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xca): undefined reference to `MikMod_errno'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xce): undefined reference to `MikMod_RegisterDriver'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xda): undefined reference to `MikMod_errno'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xf8): undefined reference to `Player_Stop'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x104): undefined reference to `VC_WriteBytes'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x108): undefined reference to `Player_Stop'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x114): undefined reference to `VC_WriteBytes'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x11c): undefined reference to `md_pansep'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x124): undefined reference to `md_musicvolume'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x128): undefined reference to `md_musicvolume'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x12c): undefined reference to `md_pansep'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x138): undefined reference to `md_reverb'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x140): undefined reference to `md_sndfxvolume'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x144): undefined reference to `md_reverb'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x148): undefined reference to `md_sndfxvolume'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x158): undefined reference to `md_volume'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x15c): undefined reference to `md_volume'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/lib/libSDL2_mixer.a(music_mpg123.o): in function `MPG123_Load':
(.text+0x10): undefined reference to `mpg123_delete'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x14): undefined reference to `mpg123_close'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x1a): undefined reference to `mpg123_close'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x1e): undefined reference to `mpg123_delete'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x26): undefined reference to `mpg123_exit'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2a): undefined reference to `mpg123_format'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2e): undefined reference to `mpg123_exit'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x32): undefined reference to `mpg123_format'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x36): undefined reference to `mpg123_format_none'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e): undefined reference to `mpg123_getformat'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x42): undefined reference to `mpg123_format_none'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x46): undefined reference to `mpg123_getformat'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x4e): undefined reference to `mpg123_init'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x52): undefined reference to `mpg123_new'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x56): undefined reference to `mpg123_init'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x5a): undefined reference to `mpg123_new'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x5e): undefined reference to `mpg123_open_handle'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x66): undefined reference to `mpg123_plain_strerror'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x6a): undefined reference to `mpg123_open_handle'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x6e): undefined reference to `mpg123_plain_strerror'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x76): undefined reference to `mpg123_rates'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x7a): undefined reference to `mpg123_read'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x7e): undefined reference to `mpg123_rates'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x82): undefined reference to `mpg123_read'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x8a): undefined reference to `mpg123_replace_reader_handle'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x96): undefined reference to `mpg123_seek'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x9a): undefined reference to `mpg123_strerror'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x9e): undefined reference to `mpg123_replace_reader_handle'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xaa): undefined reference to `mpg123_seek'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0xae): undefined reference to `mpg123_strerror'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/lib/libSDL2_mixer.a(music_ogg.o): in function `OGG_Load':
(.text+0x10): undefined reference to `ov_info'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x14): undefined reference to `ov_clear'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x1a): undefined reference to `ov_clear'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x1e): undefined reference to `ov_info'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x26): undefined reference to `ov_comment'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2a): undefined reference to `ov_open_callbacks'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2e): undefined reference to `ov_comment'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x32): undefined reference to `ov_open_callbacks'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x36): undefined reference to `ov_pcm_total'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e): undefined reference to `ov_read'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x42): undefined reference to `ov_pcm_total'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x46): undefined reference to `ov_read'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x4e): undefined reference to `ov_time_seek'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x52): undefined reference to `ov_pcm_seek'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x56): undefined reference to `ov_time_seek'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x5a): undefined reference to `ov_pcm_seek'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x62): undefined reference to `ov_pcm_tell'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x6e): undefined reference to `ov_pcm_tell'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/lib/libSDL2_image.a(IMG_jpg.o): in function `IMG_InitJPG':
(.text+0x23e): undefined reference to `jpeg_calc_output_dimensions'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x242): undefined reference to `jpeg_CreateDecompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x248): undefined reference to `jpeg_calc_output_dimensions'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x24e): undefined reference to `jpeg_CreateDecompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x252): undefined reference to `jpeg_destroy_decompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x25c): undefined reference to `jpeg_finish_decompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x260): undefined reference to `jpeg_read_header'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x264): undefined reference to `jpeg_destroy_decompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x268): undefined reference to `jpeg_finish_decompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x26c): undefined reference to `jpeg_read_header'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x274): undefined reference to `jpeg_read_scanlines'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x27a): undefined reference to `jpeg_resync_to_restart'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x27e): undefined reference to `jpeg_read_scanlines'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x282): undefined reference to `jpeg_resync_to_restart'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x28a): undefined reference to `jpeg_CreateCompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x28e): undefined reference to `jpeg_CreateCompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x292): undefined reference to `jpeg_start_compress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x298): undefined reference to `jpeg_set_quality'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x29c): undefined reference to `jpeg_start_compress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2a0): undefined reference to `jpeg_set_quality'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2a8): undefined reference to `jpeg_start_decompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2ac): undefined reference to `jpeg_write_scanlines'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2b0): undefined reference to `jpeg_start_decompress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2b4): undefined reference to `jpeg_write_scanlines'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2bc): undefined reference to `jpeg_set_defaults'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2c0): undefined reference to `jpeg_std_error'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2c4): undefined reference to `jpeg_set_defaults'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2c8): undefined reference to `jpeg_std_error'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2d0): undefined reference to `jpeg_finish_compress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2e0): undefined reference to `jpeg_destroy_compress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2e4): undefined reference to `jpeg_finish_compress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x2e8): undefined reference to `jpeg_destroy_compress'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/lib/libSDL2_image.a(IMG_png.o): in function `IMG_InitPNG':
(.text+0x3e10): undefined reference to `png_create_info_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e14): undefined reference to `png_create_read_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e1a): undefined reference to `png_create_info_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e20): undefined reference to `png_create_read_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e24): undefined reference to `png_destroy_read_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e2e): undefined reference to `png_get_IHDR'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e32): undefined reference to `png_get_io_ptr'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e36): undefined reference to `png_destroy_read_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e3a): undefined reference to `png_get_IHDR'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e3e): undefined reference to `png_get_io_ptr'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e46): undefined reference to `png_get_channels'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e4c): undefined reference to `png_get_PLTE'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e50): undefined reference to `png_get_channels'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e54): undefined reference to `png_get_PLTE'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e5c): undefined reference to `png_get_valid'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e60): undefined reference to `png_get_valid'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e64): undefined reference to `png_read_image'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e6a): undefined reference to `png_read_info'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e6e): undefined reference to `png_read_image'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e72): undefined reference to `png_read_info'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e7a): undefined reference to `png_set_expand'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e7e): undefined reference to `png_set_expand'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e82): undefined reference to `png_get_tRNS'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e88): undefined reference to `png_set_gray_to_rgb'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e8c): undefined reference to `png_set_packing'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e90): undefined reference to `png_get_tRNS'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e94): undefined reference to `png_set_gray_to_rgb'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3e98): undefined reference to `png_set_packing'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3ea0): undefined reference to `png_set_strip_16'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3ea6): undefined reference to `png_read_update_info'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3eaa): undefined reference to `png_read_update_info'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3eae): undefined reference to `png_set_strip_16'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3eb4): undefined reference to `png_set_read_fn'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3eba): undefined reference to `png_create_write_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3ebe): undefined reference to `png_set_read_fn'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3ec2): undefined reference to `png_create_write_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3ec8): undefined reference to `png_sig_cmp'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3ece): undefined reference to `png_set_longjmp_fn'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3ede): undefined reference to `png_sig_cmp'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3ee2): undefined reference to `png_set_longjmp_fn'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f26): undefined reference to `png_destroy_write_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f2a): undefined reference to `png_destroy_write_struct'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f32): undefined reference to `png_set_write_fn'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f36): undefined reference to `png_set_write_fn'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f3e): undefined reference to `png_set_IHDR'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f44): undefined reference to `png_set_IHDR'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f4a): undefined reference to `png_write_info'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f4e): undefined reference to `png_write_info'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f56): undefined reference to `png_set_rows'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f5a): undefined reference to `png_write_png'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f5e): undefined reference to `png_set_rows'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f62): undefined reference to `png_write_png'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f72): undefined reference to `png_set_PLTE'
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.1.0/../../../../arm-vita-eabi/bin/ld: (.text+0x3f78): undefined reference to `png_set_PLTE'
joel16 commented 4 years ago

You need to link libpng and libjpeg when using SDL2_image. As for SD2_mixer, you need libflac, mikmod, mpg123 and libvorbis.

limitLiu commented 4 years ago

I have resolved SDL2_image link error.

target_link_libraries(${PROJECT_NAME}
        SDL2
        SDL2_image
        png
        png16
        jpeg
        z
        #...
        )

It doesn't work with append flac mikmod mpg123 vorbis to target_link_libraries, so I just use lib soloud to play audio files. @joel16

Rinnegatamante commented 4 years ago

May be the order of the libs (if you don't have lto enabled).