Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. linux mint - Qt Creator "error: libglfw3 development package not found"
QtWS25 Last Chance

linux mint - Qt Creator "error: libglfw3 development package not found"

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sotrh
    wrote on 16 Sept 2016, 03:27 last edited by
    #1

    I've run sudo apt install libglfw3-dev and the program recognizes #include <GLFW/glfw3.h>, but I can't figure out how to link the library. I could downgrade to glfw2, but that's not a permanent solution. My project uses qmake, and I'm run Linux Mint 18.

    J 1 Reply Last reply 16 Sept 2016, 04:13
    0
    • S Offline
      S Offline
      sotrh
      wrote on 17 Sept 2016, 00:28 last edited by sotrh
      #4

      The solution was to use unix: PKGCONFIG += glfw3. I had tried libglfw3, libglfw, and libgfw3-dev.

      1 Reply Last reply
      0
      • S sotrh
        16 Sept 2016, 03:27

        I've run sudo apt install libglfw3-dev and the program recognizes #include <GLFW/glfw3.h>, but I can't figure out how to link the library. I could downgrade to glfw2, but that's not a permanent solution. My project uses qmake, and I'm run Linux Mint 18.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 16 Sept 2016, 04:13 last edited by
        #2

        @sotrh Please read http://doc.qt.io/qt-5/qmake-project-files.html#declaring-other-libraries
        This is an example how to add a library in .pro file:

        LIBS += -L/usr/local/lib -lmath
        

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sotrh
          wrote on 16 Sept 2016, 23:39 last edited by
          #3

          I added the following lines separately then together into the .pro file, but the error persists.

          LIBS += -L/urs/local/lib -glfw3
          INCLUDEPATH = /usr/include
          
          1 Reply Last reply
          0
          • S Offline
            S Offline
            sotrh
            wrote on 17 Sept 2016, 00:28 last edited by sotrh
            #4

            The solution was to use unix: PKGCONFIG += glfw3. I had tried libglfw3, libglfw, and libgfw3-dev.

            1 Reply Last reply
            0

            3/4

            16 Sept 2016, 23:39

            • Login

            • Login or register to search.
            3 out of 4
            • First post
              3/4
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved