Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Linking qsqlibase4.dll in Qt 4.8.4 (Win 10/VS2008)
Forum Updated to NodeBB v4.3 + New Features

Linking qsqlibase4.dll in Qt 4.8.4 (Win 10/VS2008)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 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.
  • SurlyS Offline
    SurlyS Offline
    Surly
    wrote on last edited by
    #1

    I know this can be done because I did it 6 years ago, the only problem is that a lot has happened in 6 years, so I am hoping for some insight. I am on Window 10 using VS2008 and Qt 4.8.4. I have installed the 32-bit version of Firebird 2.5.2.26540 into C:/Apps/Firebird_2_5. Then I run the following script:

    set FIREBIRDqt=C:/Apps/Firebird_2_5
    qmake -o Makefile "INCLUDEPATH+=%FIREBIRDqt%/include" "LIBS+=-LD:%FIREBIRDqt%/lib" "LIBS+=-lfbclient_ms" ibase.pro
    nmake
    

    And I get this error:

    link /LIBPATH:"c:\qt\4.8.4\lib" /LIBPATH:"c:\qt\4.8.4\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\debug_shared\qsqlibased.intermediate.manifest" /VERSION:4.84 /OUT:..\..\..\..\plugins\sqldrivers\qsqlibased4.dll @C:\Users\SAM\AppData\Local\Temp\nmC169.tmp
    

    What I noticed is that C:\Apps\Firebird_2_5\lib is NOT in the library path. I went in and hacked the Makefile.Debug and Makefile.Release and added it, both compiled fine now. What is the correct way to add the library to the libpath?

    jsulmJ 1 Reply Last reply
    0
    • SurlyS Surly

      I know this can be done because I did it 6 years ago, the only problem is that a lot has happened in 6 years, so I am hoping for some insight. I am on Window 10 using VS2008 and Qt 4.8.4. I have installed the 32-bit version of Firebird 2.5.2.26540 into C:/Apps/Firebird_2_5. Then I run the following script:

      set FIREBIRDqt=C:/Apps/Firebird_2_5
      qmake -o Makefile "INCLUDEPATH+=%FIREBIRDqt%/include" "LIBS+=-LD:%FIREBIRDqt%/lib" "LIBS+=-lfbclient_ms" ibase.pro
      nmake
      

      And I get this error:

      link /LIBPATH:"c:\qt\4.8.4\lib" /LIBPATH:"c:\qt\4.8.4\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\debug_shared\qsqlibased.intermediate.manifest" /VERSION:4.84 /OUT:..\..\..\..\plugins\sqldrivers\qsqlibased4.dll @C:\Users\SAM\AppData\Local\Temp\nmC169.tmp
      

      What I noticed is that C:\Apps\Firebird_2_5\lib is NOT in the library path. I went in and hacked the Makefile.Debug and Makefile.Release and added it, both compiled fine now. What is the correct way to add the library to the libpath?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Surly said in Linking qsqlibase4.dll in Qt 4.8.4 (Win 10/VS2008):

      "LIBS+=-LD:%FIREBIRDqt%/lib"

      D:%FIREBIRDqt%/lib is not a valid path. In .pro files you can use / instead of \ even on Windows. So, check your .pro file.

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

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

        Hi and welcome to devnet,

        Is FIREBIRDqt an environment variable ?

        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