Closed limitLiu closed 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.
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
May be the order of the libs (if you don't have lto enabled).
OS
vitasdk
CMakeList.txt content(base samples/sdl2/redrectangle)
make logs