I'm trying to make psql driver available in Qt 4.7 but still no luck.
I manage to compile the driver and build it, all go well, the driver and the libraries were created, but still isn't in the list of available drivers.
Then I make a configure -debug-and-release -platform win32-g++ -qt-sql-psql -I C:\PostgreSQL\9.0\include -L C:\PostgreSQL\9.0\lib, and then mingw32-make, using a Qt commanda prompt and all goes well 'till the psql driver compilation, it gave and error.
I went to the qt\src\plugins\sqldrivers\psql\ and execute mingw32-make Makefile.Debug all (which is exactly where the other make file gave an error) and the make finish ok, the go to qt\ and execute mingw32-make again and this time gave an error on the sqlite driver compìlation; repeat the above steps go to the src\plugins .. and again build ok.
Execute again mingw32-make in the qt\ directory and gave an error in the bearer\generic plugin, again if I go to the directory and build it, the build goes ok;
this keep happening to all plugins, i get tired in the imageformats\gif. This are the errors:
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_DLL -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\.
.\include\QtCore" -I"..\..\..\..\include\QtGui" -I"..\..\..\..\include" -I"c:\Po
stgreSQL\9.0\include" -I"..\..\..\gui\image" -I"..\..\..\..\include\ActiveQt" -I
"tmp\moc\debug_shared" -I"..\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared
\qgifhandler.o ..\..\..\gui\image\qgifhandler.cpp
g++: CreateProcess: No such file or directory
mingw32-make[4]: *** [tmp/obj/debug_shared/qgifhandler.o] Error 1
mingw32-make[4]: Leaving directory `C:/Qt/2010.05/qt/src/plugins/imageformats/gif'
mingw32-make[3]: *** [debug-all] Error 2
mingw32-make[3]: Leaving directory `C:/Qt/2010.05/qt/src/plugins/imageformats/gif'
mingw32-make[2]: *** [sub-gif-make_default] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/2010.05/qt/src/plugins/imageformats'
mingw32-make[1]: *** [sub-imageformats-make_default] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/2010.05/qt/src/plugins'
mingw32-make: *** [sub-plugins-make_default-ordered] Error 2
And still the qpsql driver isn't available. Does anybody find a solution for this.
Thanks.
Bookmarks