Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Linking qsqlibase4.dll in Qt 4.8.4 (Win 10/VS2008)
Surly last edited by
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 22.214.171.124540 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?
D:%FIREBIRDqt%/lib is not a valid path. In .pro files you can use / instead of \ even on Windows. So, check your .pro file.
Hi and welcome to devnet,
FIREBIRDqtan environment variable ?