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. QT and GDAL linking issue
Qt 6.11 is out! See what's new in the release blog

QT and GDAL linking issue

Scheduled Pinned Locked Moved Solved 3rd Party Software
3 Posts 2 Posters 1.1k 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.
  • Q Offline
    Q Offline
    QT_plt
    wrote on last edited by
    #1

    i am having a trouble with linking GDAL (compiled with MSVc2017 ; X64) with QT (using as well the MSVC 2017),after adding the gdal_i.lib in the external libraries (using the Qt GUI) and having this code in the .pro file :
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    win32:CONFIG(release, debug|release): LIBS += -LR:/Lib_vc15/GDAL/lib/ -lgdal_i
    else:win32:CONFIG(debug, debug|release): LIBS += -LR:/Lib_vc15/GDAL/lib/ -lgdal_id
    else:unix:!macx: LIBS += -LR:/Lib_vc15/GDAL/lib/ -lgdal_i
    INCLUDEPATH += R:/Lib_vc15/GDAL/include
    DEPENDPATH += R:/Lib_vc15/GDAL/include
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    i still have this error while building the project

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    the error :LINK : fatal error LNK1104: cannot open file 'gdal_id.lib'
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    anyone has a recommendation ?

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

      Hi,

      Something strange here, you added gdal_i yet you have an error about gdal_id. Is it a typo ? If not, did you make a debug build of that library ?

      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
      • Q Offline
        Q Offline
        QT_plt
        wrote on last edited by
        #3

        hi all thank zou for participating , actually when creating the project there was a checkbox for the prefixes , by creating a new project and un-checking that the problem was solved

        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