Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Link GSL into Qt Creator
Qt 6.11 is out! See what's new in the release blog

Link GSL into Qt Creator

Scheduled Pinned Locked Moved 3rd Party Software
3 Posts 3 Posters 6.8k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi guys,

    I have installed QtSDK 1.2.1-1 on my windows PC, which includes Qt4.8.1 and Qt Creator4.7.3-2.
    For the GSL, I have downloaded gsl-1.15, and compiled in to "libgsl.a" et al, and installed using Cygwin. The installation dir is C:\GSL_lib.

    So my question is that how can I include this GSL library into my Qt desktop project?

    I tried to add the following into the .pro file, but it doesn't work.
    INCLUDEPATH += C:/GSL_lib
    LIBS += -LC:/GSL_lib/.libs libgsl

    Any suggestion is appreciated!

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      the include path should be where the headers are located (where you will find the files you do #include on) and on the other one you usally do this

      LIBS += -L$path$ -l$libname$

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Can you elaborate "but it doesn’t work" a bit more? Some error messages?

        1 Reply Last reply
        0

        • Login

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