So what are my options now?
It's late in the game do I punt or pass?
So what are my options now?
It's late in the game do I punt or pass?
Well I deleted QT & minWG and reinstalled everything. I ran configure (contents of configure.cache are as follows)
-platform
win32-g++
-debug-and-release
-plugin-sql-mysql
-plugin-sql-psql
-plugin-sql-sqlite
-no-qt3support
-qt-style-windows
-saveconfig
Then I ran the (Build Debug Libraries). After 30-45 minutes or so I'm greated with the folowing errors.
mingw32-make[5]: Entering directory `C:/Qt/4.2.1/src/plugins/sqldrivers/psql'
g++ -c -g -g -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_
CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_COR
E_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/
QtCore" -I"C:/Qt/4.2.1/include/QtSql" -I"C:/Qt/4.2.1/include/QtSql" -I"C:/Qt/4.2
.1/include" -I"C:/Qt/4.2.1/include/ActiveQt" -I"tmp\moc\debug_shared" -I"." -I".
.\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
----------------------
HAD TO REMOVE SEVERAL LINES BECAUSE IT EXCEED THE CHARTER LIMIT FOR THE POST.
----------------------
mingw32-make[5]: *** [tmp\obj\debug_shared\qsql_psql.o] Error 1
mingw32-make[5]: Leaving directory `C:/Qt/4.2.1/src/plugins/sqldrivers/psql'
mingw32-make[4]: *** [debug-all] Error 2
mingw32-make[4]: Leaving directory `C:/Qt/4.2.1/src/plugins/sqldrivers/psql'
mingw32-make[3]: *** [sub-psql-make_default] Error 2
mingw32-make[3]: Leaving directory `C:/Qt/4.2.1/src/plugins/sqldrivers'
mingw32-make[2]: *** [sub-sqldrivers-make_default] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/4.2.1/src/plugins'
mingw32-make[1]: *** [sub-plugins-make_default] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/src'
mingw32-make: *** [sub-src-make_default-ordered] Error 2
I have a Linux server with both MySQL & Postgres running. I use them both daily, almost, and I have a copy of sqlite on my local machine. During the install the only database QT finds is sqlite and therefore it only builds driver for that database. The first question that comes to mind is why in the sam hill should QT can one way or another whether it can find databases before it will build the drivers? That makes absolutely no sense to me! Anyway, I change to the src/plugins/sqldrivers directory and attempt to build the MySql driver and I get the following errors:
C:\Qt\4.2.1\src\plugins\sqldrivers\mysql>mingw32-make
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/Qt/4.2.1/src/plugins/sqldrivers/mysql'
g++ -c -g -g -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_
CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -DQT_COR
E_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.2.1/include/QtCore" -I"C:/Qt/4.2.1/include/
QtCore" -I"C:/Qt/4.2.1/include/QtSql" -I"C:/Qt/4.2.1/include/QtSql" -I"C:/Qt/4.2
.1/include" -I"C:/Qt/4.2.1/include/ActiveQt" -I"tmp\moc\debug_shared" -I"." -I".
.\..\..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
In file included from main.cpp:26:
../../../sql/drivers/mysql/qsql_mysql.h:34:19: mysql.h: No such file or director
y
In file included from main.cpp:26:
../../../sql/drivers/mysql/qsql_mysql.h:85: error: expected `)' before '*' token
mingw32-make[1]: *** [tmp\obj\debug_shared\main.o] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/4.2.1/src/plugins/sqldrivers/mysql'
mingw32-make: *** [debug-all] Error 2
Then I try the postgres driver and I get a similar lenghty error.
I have been trying to get QT to install since last Friday and I don't feel I'm any better off that when I started. Will someone show some conpasion and just shoot me?
If you want to build those plugins you must tell Qt where it can find proper libraries. For example like this:(where C:\Postgres is a directory where PostgreSQL libraries were installed).configure -plugin-sql-psql -I C:\Postgres\include -L C:\Postgres\lib
make
Everything is explained here: http://doc.trolltech.com/4.2/sql-dri...-7-3-and-above
Note also that you can compile those plugins later (just remember that you shouldn't use paths with spaces).
But you're making a lot of progress. Now you have a working toolchain and you got past that problem with moc compilation.
This is true, however now qmake doesn't work. Before qmake worked to make the Makefile but minwg-32-make didn't now things are reversed and minwg-32-make works and qmake doesen't. So I can't even build the drivers.
Last edited by dKoder; 3rd November 2006 at 23:15.
Quick check of executables follows:
C:\Qt\projects\helloWorld>qmake
'qmake' is not recognized as an internal or external command,
operable program or batch file.
C:\Qt\projects\helloWorld>mingw32-make
mingw32-make: *** No targets specified and no makefile found. Stop.
To answer your question, no. However when I added "C:\QT\4.2.1\bin" to the path, run qmake and mingw32 I actually get an executable. "hello.exe" However when I run the executable I get several errors resulting in 'can find *.dll'. I tried moving the EXE to the QT directory, which is in the PATH, but I get the same errors. But, at least I'm creating an exe now. So there is now a dim light at the end of this very long tunnel.
Thanks for sticking with me!
Now I'm really getting somewhere. I have an working exe .
If you remember you had me to rerun Configure without any parameters. Do I dare run it again with the desired parameters?
Take a timeout! What are your other options? java? wxWidgets?
If you can spare it, and have experience with Visual Studio, get the commercial edition of Qt w/ the VS integration, it'll be wayyyy easier to use.
Software Engineer
Bookmarks