![Quote](images/misc/quote_icon.png)
Originally Posted by
ChrisW67
Are you deliberately building a static version of Qt?
Yes, I do.
![Quote](images/misc/quote_icon.png)
Originally Posted by
ChrisW67
Do you want a dynamically loadable plugin or a built-in driver?
Think I want built-in driver, not sure what you mean by that.
![Quote](images/misc/quote_icon.png)
Originally Posted by
ChrisW67
We are told Windows, but which version of Qt?
I'm using Qt 4.7.3 now (installed new version today).
![Quote](images/misc/quote_icon.png)
Originally Posted by
ChrisW67
The MingW bundled in the Qt SDK, or another?
Another one, the one I used previously (before I've installed Qt).
It is:
C:\Users\Tomek>mingw32-make -v
GNU Make 3.82
Built for i386-pc-mingw32
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
C:\Users\Tomek>mingw32-make -v
GNU Make 3.82
Built for i386-pc-mingw32
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
To copy to clipboard, switch view to plain text mode
![Quote](images/misc/quote_icon.png)
Originally Posted by
ChrisW67
Have you bothered to look at the lines before 108 (which incidentally looks nothing like that in my sources)?
Seems like I was looking for it in wrong file previously, it's QMYSQLDriver class. I don't see anything wrong with it tho, here it is: http://pastebin.com/raw.php?i=ecNjUy0x
![Quote](images/misc/quote_icon.png)
Originally Posted by
ChrisW67
Have you tried anything else in the last few days?
Yeah I did, I've messed up everything so bad I decided to re-install Qt (using newest version now, as I wrote earlier).
![Quote](images/misc/quote_icon.png)
Originally Posted by
ChrisW67
Tried to follow these steps: http://www.qtcentre.org/threads/2397...551#post116551
But still same output, here's my console session log:
Setting up a MinGW/Qt only environment...
-- QTDIR set to E:\Qt\4.7.3
-- PATH set to E:\Qt\4.7.3\bin
-- Adding D:\Services\MinGW\bin to PATH
-- Adding C:\Windows\System32 to PATH
-- QMAKESPEC set to win32-g++
E:\Qt\4.7.3>D:
D:\>cd services/mingw
D:\Services\MinGW>cd %QTDIR%/src/plugins/sqldrivers/mysql
D:\Services\MinGW>cd %QTDIR%/src/plugins/sqldrivers/mysql
D:\Services\MinGW>E:
E:\Qt\4.7.3\src\plugins\sqldrivers\mysql>qmake -o Makefile "INCLUDEPATH+=D:\Serv
ices\MinGW\include" "LIBS+=D:\Services\MinGW\lib\libmysql.a" mysql.pro
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
E:\Qt\4.7.3\src\plugins\sqldrivers\mysql>qmake -o Makefile "INCLUDEPATH+=D:\\Ser
vices\\MinGW\\include" "LIBS+=D:\\Services\\MinGW\\lib\\libmysql.a" mysql.pro
E:\Qt\4.7.3\src\plugins\sqldrivers\mysql>mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `E:/Qt/4.7.3/src/plugins/sqldrivers/mysql'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -
DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_H
AVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\inclu
de\QtSql" -I"..\..\..\..\include" -I"d:\Services\MinGW\include" -I"..\..\..\..\i
nclude\ActiveQt" -I"debug" -I"..\..\..\..\mkspecs\win32-g++" -o debug\main.o mai
n.cpp
In file included from main.cpp:44:0:
../../../sql/drivers/mysql/qsql_mysql.h:108:33: error: expected ')' before '*' t
oken
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make[1]: Leaving directory `E:/Qt/4.7.3/src/plugins/sqldrivers/mysql'
mingw32-make: *** [debug] Error 2
E:\Qt\4.7.3\src\plugins\sqldrivers\mysql>
Setting up a MinGW/Qt only environment...
-- QTDIR set to E:\Qt\4.7.3
-- PATH set to E:\Qt\4.7.3\bin
-- Adding D:\Services\MinGW\bin to PATH
-- Adding C:\Windows\System32 to PATH
-- QMAKESPEC set to win32-g++
E:\Qt\4.7.3>D:
D:\>cd services/mingw
D:\Services\MinGW>cd %QTDIR%/src/plugins/sqldrivers/mysql
D:\Services\MinGW>cd %QTDIR%/src/plugins/sqldrivers/mysql
D:\Services\MinGW>E:
E:\Qt\4.7.3\src\plugins\sqldrivers\mysql>qmake -o Makefile "INCLUDEPATH+=D:\Serv
ices\MinGW\include" "LIBS+=D:\Services\MinGW\lib\libmysql.a" mysql.pro
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
WARNING: (internal):1: Unescaped backslashes are deprecated.
E:\Qt\4.7.3\src\plugins\sqldrivers\mysql>qmake -o Makefile "INCLUDEPATH+=D:\\Ser
vices\\MinGW\\include" "LIBS+=D:\\Services\\MinGW\\lib\\libmysql.a" mysql.pro
E:\Qt\4.7.3\src\plugins\sqldrivers\mysql>mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `E:/Qt/4.7.3/src/plugins/sqldrivers/mysql'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_SQL_LIB -
DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_H
AVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\inclu
de\QtSql" -I"..\..\..\..\include" -I"d:\Services\MinGW\include" -I"..\..\..\..\i
nclude\ActiveQt" -I"debug" -I"..\..\..\..\mkspecs\win32-g++" -o debug\main.o mai
n.cpp
In file included from main.cpp:44:0:
../../../sql/drivers/mysql/qsql_mysql.h:108:33: error: expected ')' before '*' t
oken
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make[1]: Leaving directory `E:/Qt/4.7.3/src/plugins/sqldrivers/mysql'
mingw32-make: *** [debug] Error 2
E:\Qt\4.7.3\src\plugins\sqldrivers\mysql>
To copy to clipboard, switch view to plain text mode
Bookmarks