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. I can't get gsl library dll's (or static for that matter) to work with Qt

I can't get gsl library dll's (or static for that matter) to work with Qt

Scheduled Pinned Locked Moved 3rd Party Software
gslexternal librarqt5.5
2 Posts 2 Posters 1.8k 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.
  • ndt_mikeN Offline
    ndt_mikeN Offline
    ndt_mike
    wrote on last edited by ndt_mike
    #1

    Wondering what I am doing wrong, I must admit.

    I have tried a number of things but no luck. Right now I have this in the .pro file, but can't figure out why it's not locating the libgsl.dll file?

    
    win32: LIBS += -L"D:\Qt\Projects\GSL_Test\gsl\bin" -llibgsl.dll
    
    INCLUDEPATH += $$PWD/../gsl/include
    DEPENDPATH += $$PWD/../gsl/include
    
    

    Here's the compiler output,

    mingw32-make[1]: Entering directory 'D:/Qt/Projects/GSL_Test/build-GSL_Test-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
    g++ -Wl,-subsystem,console -mthreads -o debug\GSL_Test.exe debug/main.o  -LD:\Qt\Projects\GSL_Test\gsl\bin -llibgsl.dll -LD:/Qt/Projects/GSL_Test/GSL_Test/../gsl/bin/ -llibgslcblas.dll -LD:/Qt/5.5/mingw492_32/lib -lQt5Cored 
    Makefile.Debug:77: recipe for target 'debug\GSL_Test.exe' failed
    D:/Qt/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibgsl.dll
    D:/Qt/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibgslcblas.dll
    collect2.exe: error: ld returned 1 exit status
    mingw32-make[1]: *** [debug\GSL_Test.exe] Error 1
    mingw32-make: *** [debug] Error 2
    

    Any idea's?

    Has anybody gotten gsl to work with Qt in Windows?

    Thanks really like the platform. Pretty sure I am using Qt 5.5.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You don't link to dlls but to lib files but you don't use the file extension.

      So essentially:

      LIBS += -lgsl -lgslcblas
      

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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