[Qt-interest] Problems Building QMYSQL plugin with MinGW
John Eke
johne at annidis.com
Mon Apr 27 16:51:17 CEST 2009
Hi Guys,
I am trying to build QMYSQL on a MinGW/Windows platform and its failing (please see below for the log).
I installed MinGW, then installed the qt-win-opensource-mingw.exe package.
I also followed the instructions here: http://www.jiggerjuice.net/software/qt-sql-drivers.html
And I got stuck once I ran make.
Thanks
C:\qt\4.4.3\src\plugins\sqldrivers\mysql>qmake -o Makefile "INCLUDEPATH+=C:\MYSQL\MYSQL\INCLUDE" "LIBS+=-LC:\MYSQL\MYSQL\LIB\OPT -lmysql" mysql.pro
C:\qt\4.4.3\src\plugins\sqldrivers\mysql>make
mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `C:/qt/4.4.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_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\
include\QtSql" -I"..\..\..\..\include" -I"c:\MYSQL\MYSQL\INCLUDE" -I"c:\qt\4.4.3\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\..\..\mkspe
cs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:50,
from ../../../../include/QtCore/../../src/corelib/global/qt_windows.h:52,
from ../../../../include/QtCore/qt_windows.h:1,
from ../../../sql/drivers/mysql/qsql_mysql.h:45,
from main.cpp:40:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1663: error: declaration of C function `LONG InterlockedCompareExchange(volatile L
ONG*, LONG, LONG)' conflicts with
../../../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:387: error: previous declaration `long int InterlockedCompareExchange(long int*, l
ong int, long int)' here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1667: error: declaration of C function `LONG InterlockedDecrement(volatile LONG*)'
conflicts with
../../../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:389: error: previous declaration `long int InterlockedDecrement(long int*)' here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1668: error: declaration of C function `LONG InterlockedExchange(volatile LONG*, L
ONG)' conflicts with
../../../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:390: error: previous declaration `long int InterlockedExchange(long int*, long int
)' here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1672: error: declaration of C function `LONG InterlockedExchangeAdd(volatile LONG*
, LONG)' conflicts with
../../../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:391: error: previous declaration `long int InterlockedExchangeAdd(long int*, long
int)' here
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1676: error: declaration of C function `LONG InterlockedIncrement(volatile LONG*)'
conflicts with
../../../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:388: error: previous declaration `long int InterlockedIncrement(long int*)' here
mingw32-make[1]: *** [tmp/obj/debug_shared/main.o] Error 1
mingw32-make[1]: Leaving directory `C:/qt/4.4.3/src/plugins/sqldrivers/mysql'
mingw32-make: *** [debug-all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090427/b6430d07/attachment.html
More information about the Qt-interest-old
mailing list