You are not logged in.
How to install SDL2 on arch properly?
I have installed via packer package (sdl2-2.0.9-1).
But I have "undefined reference" when trying to build something.
SDLPng.cpp:(.text+0x40): undefined reference to `IMG_Init'
/usr/bin/ld: SDLPng.cpp:(.text+0x57): undefined reference to `IMG_Load'
/usr/bin/ld: SDLPng.cpp:(.text+0xc1): undefined reference to `SDL_GetError'
/usr/bin/ld: SDLPng.cpp:(.text+0x174): undefined reference to `SDL_CreateTextureFromSurface'
/usr/bin/ld: SDLPng.cpp:(.text+0x1f9): undefined reference to `SDL_FreeSurface'
/usr/bin/ld: CMakeFiles/runSnakePlusPlusTests.dir/__/__/SDL2_Standardproject/SDL/SDLPng.cpp.o: in function `SDLPng::~SDLPng()':
Offline
Why is this in the AUR subforum? SDL2 is in [extra].
What is the "something" you are trying to build? Is that in the AUR? Post the complete command and output.
The error looks like LDLIBS was not properly set during some build process.
Last edited by Trilby (2019-07-17 13:16:12)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
The error looks like LDLIBS was not properly set during some build process.
Or they need one or more sdl2_* subpackages .
I agree with the rest of Trilby's post.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline