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
pkg-config settings missing libs #27
Comments
Indeed it should. I added a dependency on the |
did you commit you changes? after pulling I still see linking error for the following libs pkg-config... |
sorry markdown is broken if you reply by mail... see next comment |
it doesn't seem to be working...here is what I did... ~/development/glfw $ git pull Already up-to-date. ~/development/glfw $ make clean ~/development/glfw $ cmake . -DGLFW_USE_EGL=true -DGLFW_CLIENT_LIBRARY=glesv2 -- NOTE: Examples and tests require OpenGL -- Using X11 for window creation -- Using EGL for context creation -- Configuring done -- Generating done -- Build files have been written to: /home/chris/development/glfw ~/development/glfw $ make [ 5%] Building C object src/CMakeFiles/glfw.dir/clipboard.c.o [ 94%] Building C object src/CMakeFiles/glfw.dir/egl_context.c.o Linking C static library libglfw3.a [ 94%] Built target glfw [100%] Generating HTML documentation warning: ignoring unsupported tag `AUTOLINK_SUPPORT =' at line 260, file Doxyfile warning: ignoring unsupported tag `EXTRA_SEARCH_MAPPINGS =' at line 1287, file Doxyfile [100%] Built target docs ~/development/glfw $ sudo make install [sudo] password for chris: [ 94%] Built target glfw [100%] Generating HTML documentation warning: ignoring unsupported tag `AUTOLINK_SUPPORT =' at line 260, file Doxyfile warning: ignoring unsupported tag `EXTRA_SEARCH_MAPPINGS =' at line 1287, file Doxyfile [100%] Built target docs Install the project... -- Install configuration: "" -- Installing: /usr/local/include/GL -- Up-to-date: /usr/local/include/GL/glfw3.h -- Up-to-date: /usr/local/include/GL/glfw3native.h -- Up-to-date: /usr/local/lib/cmake/glfw/glfwConfig.cmake -- Up-to-date: /usr/local/lib/cmake/glfw/glfwConfigVersion.cmake -- Up-to-date: /usr/local/lib/cmake/glfw/glfwTargets.cmake -- Installing: /usr/local/lib/cmake/glfw/glfwTargets-noconfig.cmake -- Up-to-date: /usr/local/lib/pkgconfig/glfw3.pc -- Installing: /usr/local/lib/libglfw3.a ~/development/glfw $ pkg-config glfw3 --libs -L/usr/local/lib -lglfw3 |
ah I see the problem, requires.private means you only get the libs when On 22 May 2013 00:14, Chris Camacho codifies@gmail.com wrote:
Disclaimer:
|
You don't need to link against libXi when using GLFW as a shared library, unless you're calling XInput directly. That's why it's in the private section. |
It complains about not being able to link xranr Xi etc that I'm not
|
You're linking only against the GLFW shared library? |
Yes but being as glfw's shared dependencies are different on different
|
I'm using pkg-config back ticked in a makefile, however I find I also have to do something like this...
opengl compiled glfw
#EXTRAGLFWLIBS=-lGL -lXrandr -lXi
GLESv2 compiled glfw
EXTRAGLFWLIBS=-lXxf86vm -lXrandr -lXi
LIBS=
pkg-config --libs glfw3
$(EXTRAGLFWLIBS)regardless how glfw's compile has been setup the pkg-config settings should reflect this
The text was updated successfully, but these errors were encountered: