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

Missing libraries to build snes9x-gtk #2

Closed
benoitryder opened this issue Mar 19, 2011 · 1 comment
Closed

Missing libraries to build snes9x-gtk #2

benoitryder opened this issue Mar 19, 2011 · 1 comment

Comments

@benoitryder
Copy link

When attempting to build snes9x-gtk with default configuration (no option provided to configure) the build fails due to the following missing libraries: libX11, libdl, libXext.

Moreover, it is not possible to add them by setting LIBS when calling configure because the value is overriden by OpenGL libs (the simple patch below fixes this).

diff --git a/gtk/configure.ac b/gtk/configure.ac
index c03db53..77339b4 100644
--- a/gtk/configure.ac
+++ b/gtk/configure.ac
@@ -186,7 +186,7 @@ if test yes = "$with_opengl" ; then
     AC_CHECK_LIB(GL,glGetString,[
         OPENGL=yes
         CFLAGS="$CFLAGS -DUSE_OPENGL"
-        LIBS="-lGL"
+        LIBS="$LIBS -lGL"
     ],[
         OPENGL=0
     ])
@ghost
Copy link

ghost commented Apr 12, 2011

pkg-config should be handling the inclusion of those libraries with gdk-x11, so I'm not sure why they're not being added. I've added a fixed inclusion of them just in case, and fixed the overwriting issue you mentioned.

This issue was closed.
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