Coder Social home page Coder Social logo

pkg-config settings missing libs about glfw HOT 10 CLOSED

glfw avatar glfw commented on May 11, 2024
pkg-config settings missing libs

from glfw.

Comments (10)

elmindreda avatar elmindreda commented on May 11, 2024

Indeed it should. I added a dependency on the xi package. Thank you!

from glfw.

chriscamacho avatar chriscamacho commented on May 11, 2024

did you commit you changes?

after pulling I still see linking error for the following libs
Xxf86vm Xrandr Xi
when using

pkg-config...

from glfw.

elmindreda avatar elmindreda commented on May 11, 2024

583c8a8

from glfw.

chriscamacho avatar chriscamacho commented on May 11, 2024

sorry markdown is broken if you reply by mail... see next comment

from glfw.

chriscamacho avatar chriscamacho commented on May 11, 2024

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  

from glfw.

chriscamacho avatar chriscamacho commented on May 11, 2024

ah I see the problem, requires.private means you only get the libs when
compiling statically, would be nice to have the dependencies when compiling
shared too...

On 22 May 2013 00:14, Chris Camacho [email protected] wrote:

it doesn't seem to be working...here is what I did...

chris@chris-LIFEBOOK-AH532 ~/development/glfw $ git pull
Already up-to-date.
chris@chris-LIFEBOOK-AH532 ~/development/glfw $ make clean
chris@chris-LIFEBOOK-AH532 ~/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
chris@chris-LIFEBOOK-AH532 ~/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 <snip> warning: ignoring unsupported tagEXTRA_SEARCH_MAPPINGS =' at line 1287,
file Doxyfile
[100%] Built target docs
chris@chris-LIFEBOOK-AH532 ~/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 <snip> warning: ignoring unsupported tagEXTRA_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
chris@chris-LIFEBOOK-AH532 ~/development/glfw $ pkg-config glfw3 --libs
*-L/usr/local/lib -lglfw3 *

On 22 May 2013 00:04, Camilla Berglund [email protected] wrote:

583c8a8583c8a8


Reply to this email directly or view it on GitHubhttps://github.com//issues/27#issuecomment-18247466
.

Disclaimer:
By sending an email to ANY of my addresses you are agreeing that:

  1. I am by definition, "the intended recipient"
  2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it where I please.
  3. I may take the contents as representing the views of your company.
  4. This overrides any disclaimer or statement of confidentiality that may be included on your message.

Disclaimer:
By sending an email to ANY of my addresses you are agreeing that:

  1. I am by definition, "the intended recipient"
  2. All information in the email is mine to do with as I see fit and
    make such financial profit, political mileage, or good joke as it
    lends itself to. In particular, I may quote it where I please.
  3. I may take the contents as representing the views of your company.
  4. This overrides any disclaimer or statement of confidentiality
    that may be included on your message.

from glfw.

elmindreda avatar elmindreda commented on May 11, 2024

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.

from glfw.

chriscamacho avatar chriscamacho commented on May 11, 2024

It complains about not being able to link xranr Xi etc that I'm not
directly using (but glfw is) ...
On 22 May 2013 12:35, "Camilla Berglund" [email protected] wrote:

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.


Reply to this email directly or view it on GitHubhttps://github.com//issues/27#issuecomment-18272608
.

from glfw.

elmindreda avatar elmindreda commented on May 11, 2024

You're linking only against the GLFW shared library?

from glfw.

chriscamacho avatar chriscamacho commented on May 11, 2024

Yes but being as glfw's shared dependencies are different on different
platforms I was looking to pkg-config to provide a platform independent
method of specifying the correct libs needed for glfw on that platform
rather than needing a makefile with conditional clauses
On 22 May 2013 12:52, "Camilla Berglund" [email protected] wrote:

You're linking only against the GLFW shared library?


Reply to this email directly or view it on GitHubhttps://github.com//issues/27#issuecomment-18273239
.

from glfw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.