You are not logged in.

#1 2019-07-17 13:00:34

Horki
Member
Registered: 2019-05-09
Posts: 1

[REQUEST] sdl2 package problems

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

#2 2019-07-17 13:11:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [REQUEST] sdl2 package problems

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

Online

#3 2019-07-18 09:38:47

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [REQUEST] sdl2 package problems

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

Board footer

Powered by FluxBB