Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdl2.pc contains incorrect build prefix #2

Open
cgutman opened this issue Apr 2, 2023 · 0 comments
Open

sdl2.pc contains incorrect build prefix #2

cgutman opened this issue Apr 2, 2023 · 0 comments

Comments

@cgutman
Copy link

cgutman commented Apr 2, 2023

As of v0.7.1-engineering-release-wayland, the pkg-config file of for SDL2 contains an incorrect prefix path that is pointing to /opt/SDL/build/out instead of /usr or /usr/local (there are 2 copies of the SDL libraries, for some reason). As a result, building applications against SDL with pkg-config will fail due to being unable to find libraries and headers.

There also appears to be 2 copies of the incorrect sdl2.pc at /usr/lib/pkgconfig/sdl2.pc and /usr/local/lib/pkgconfig/sdl2.pc.

$ cat /usr/lib/pkgconfig/sdl2.pc
# sdl pkg-config source file

prefix=/opt/SDL/build/out
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: sdl2
Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
Version: 2.0.22
Requires:
Conflicts:
Libs: -L${libdir} -Wl,-rpath,${libdir} -Wl,--enable-new-dtags -lSDL2
Libs.private:  -lm -ldl -lpthread -lrt
Cflags: -I${includedir}/SDL2   -D_REENTRANT

Adjusting the prefix value to the proper installation directory fixes building SDL applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant