[Qt-interest] Problems Building QMYSQL plugin with MinGW
Christopher Rasch-Olsen Raa
christopher at technophile.info
Tue Apr 28 07:40:47 CEST 2009
Hi,
Have a look at the howto on http://christopher.rasch-olsen.no/2009/04/14/qt-45-and-mysql-plugin-with-mingw-on-windows-xp/ .
It has been reported to work. :)
--
Christopher
On Mon, 27 Apr 2009 10:51:17 -0400, "John Eke" <johne at annidis.com> wrote:
> 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
More information about the Qt-interest-old
mailing list