Problem compiling QDB2 SQL driver



  • Hi,

    I use Qt 4.7.3 Opensource on Windows 7.
    I tried hard to build plugin QDB2 for IBM DB2 but have a many error.

    Now, I have problem with this :

    @C:\QtSDK2\QtSources\4.7.3\src\plugins\sqldrivers\db2>qmake "INCLUDEPATH+=C:/Progra~1/IBM/SQLLIB/include" "LIBS+=C:/PROGRA~1/IBM/SQLLIB/lib/db2cli.lib" db2.pro

    C:\QtSDK2\QtSources\4.7.3\src\plugins\sqldrivers\db2>mingw32-make
    mingw32-make -f Makefile.Debug all
    mingw32-make[1]: Entering directory C:/QtSDK2/QtSources/4.7.3/src/plugins/sqldrivers/db2' g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -shared -Wl,--out-implib,c:\QtSDK2\QtSources\4.7.3\plugins\sqldrivers\libqsqldb2d4.a -o ..\..\..\..\plugins\sqldrivers\qsqldb2d4.dll tmp/obj/debug_shared/main.o tmp/obj/debug_shared/qsql_db2.o tmp/obj/de bug_shared/moc_qsql_db2.o -L"c:\QtSDK2\QtSources\4.7.3\lib" -L"c:\PROGRA~1\IBM\SQLLIB\LIB" -L"c:\QtSDK2\QtSources\4.7.3\lib" tmp\obj\debug_shared\qsqldb2d_resource_res.o C:/PROGRA~1/IBM/SQLLIB/lib/db2cli.lib -lQtSqld -lQtCored c:/qtsdk2/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lQtSqld collect2: ld returned 1 exit status mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqldb2d4.dll] Error 1 mingw32-make[1]: Leaving directoryC:/QtSDK2/QtSources/4.7.3/src/plugins/sqldrivers/db2'
    mingw32-make: *** [debug-all] Error 2
    @

    Thank in advance.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.