Results 1 to 5 of 5

Thread: Error building MySQL pluggin on xp with mingw32-make

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Error building MySQL pluggin on xp with mingw32-make

    I keep getting errors trying to build the MySQL pluggin on XP. I finally found this tutorial which I followed. This is my setup
    Windows XP home on compaq presario amd
    MinGW 5.1.3 with the utils including reimp
    mysql-5.1.23-rc-win32 installed in C:\MySQL\
    Qt 4.3.4 installed in C:\Qt\4.3.4\

    The instructions followed are at: http://wiki.qtcentre.org/index.php?t...ws_using_MinGW

    The error I am now getting after reinstalling both mysql and Qt:

    C:\Qt\4.3.4\src\plugins\sqldrivers\mysql>mingw32-make
    mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory `C:/Qt/4.3.4/src/plugins/sqldrivers/mysql'
    g++ -c -O2 -Wall -fno-exceptions -fno-rtti -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO
    _CAST_FROM_ASCII -DQT_NO_DEBUG -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\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"release" -I"." -I"..\.
    .\..\..\mkspecs\default" -o release\main.o main.cpp
    g++ -c -O2 -Wall -fno-exceptions -fno-rtti -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO
    _CAST_FROM_ASCII -DQT_NO_DEBUG -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\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"release" -I"." -I"..\.
    .\..\..\mkspecs\default" -o release\qsql_mysql.o ..\..\..\sql\drivers\mysql\qsql_mysql.cpp
    C:/Qt/4.3.4/bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -D
    QT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"
    ..\..\..\..\include\QtCore" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\include\QtSql" -I"..\..\..\..\in
    clude" -I"c:\MySQL\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"release" -I"." -I"..\..\..\..\mkspecs\def
    ault" -D__GNUC__ -DWIN32 ..\..\..\sql\drivers\mysql\qsql_mysql.h -o release\moc_qsql_mysql.cpp
    g++ -c -O2 -Wall -fno-exceptions -fno-rtti -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO
    _CAST_FROM_ASCII -DQT_NO_DEBUG -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\include" -I"c:\Qt\4.3.4\include\ActiveQt" -I"release" -I"." -I"..\.
    .\..\..\mkspecs\default" -o release\moc_qsql_mysql.o release\moc_qsql_mysql.cpp
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -o release\qsql
    mysql.lib release/main.o release/qsql_mysql.o release/moc_qsql_mysql.o -L"c:\Qt\4.3.4\lib" C:\MySQL\lib\
    opt\liblibmysql.a -lQtSql4 -lQtCore4
    /mingw/lib/libmingw32.a(main.o):main.c:(.text+0x104): undefined reference to `WinMain@16'
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [release\qsqlmysql.lib] Error 1
    mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/src/plugins/sqldrivers/mysql'
    mingw32-make: *** [release] Error 2

    C:\Qt\4.3.4\src\plugins\sqldrivers\mysql>
    Can someone help ?
    Last edited by jpn; 24th March 2008 at 12:20. Reason: disabled smilies

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.