Results 1 to 2 of 2

Thread: building plugin for mysql?

  1. #1
    Join Date
    Dec 2007
    Posts
    129
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question building plugin for mysql?

    im using qt/mingw (windows) and im trying to build a mysql plugin cause i only have odbc and sqllite i try to use the steps in the documentation but in some reasons i got errors..

    here are the steps:
    cd %QTDIR%\src\plugins\sqldrivers\mysql
    qmake -o Makefile "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MySQL\lib\opt\libmysql.lib" mysql.pro
    nmake
    and here are the errors:

    mingw32-make -f Makefile.Debug all
    mingw32-make[1]: Entering directory `C:/Qt/4.3.5/src/plugins/sqldrivers/mysql'
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.3.5\plugins\sqldrivers\libqsql
    mysqld4.a -o ..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll tmp/obj/debug_shared
    /main.o tmp/obj/debug_shared/qsql_mysql.o tmp/obj/debug_shared/moc_qsql_mysql.o
    -L"c:\Qt\4.3.5\lib" -L"c:\MinGW\lib" -L"c:\Qt\4.3.5\lib" -L"c:\Qt\4.3.5\lib" tm
    p\obj\debug_shared\qsqlmysqld_resource_res.o C:\MYSQL\LIB\OPT\libmysql.lib -lQtS
    qld4 -lQtCored4
    Creating library file: c:\Qt\4.3.5\plugins\sqldrivers\libqsqlmysqld4.a


    tmp/obj/debug_shared/qsql_mysql.o(.text+0x10d): In function `Z5codecP8st_mysql':

    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:213: undefined reference to `mysql_character_set_name@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x18a): In function `Z10qMakeErrorRK7QSt
    ringN9QSqlError9ErrorTypeEPK19QMYSQLDriverPrivate' :
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:224: undefined reference to `mysql_error@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x19d):C:/Qt/4.3.5/src/plugins/sqldriver
    s/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:225: undefined reference to `m
    ysql_errno@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0xc5d): In function `ZN12QMYSQLResult7cl
    eanupEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:404: undefined reference to `mysql_free_result@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0xdbb): In function `ZN12QMYSQLResult5fe
    tchEi':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:481: undefined reference to `mysql_data_seek@12'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0xdd5):C:/Qt/4.3.5/src/plugins/sqldriver
    s/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:482: undefined reference to `m
    ysql_fetch_row@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0xe4b): In function `ZN12QMYSQLResult9fe
    tchNextEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:501: undefined reference to `mysql_fetch_row@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0xf19): In function `ZN12QMYSQLResult9fe
    tchLastEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:525: undefined reference to `mysql_num_rows@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x1250): In function `ZN12QMYSQLResult4d
    ataEi':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:566: undefined reference to `mysql_fetch_lengths@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x1dbc): In function `ZN12QMYSQLResult5r
    esetERK7QString':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:623: undefined reference to `mysql_real_query@12'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x1f34):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:628: undefined reference to `
    mysql_store_result@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x1f60):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:629: undefined reference to `
    mysql_field_count@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x2114):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:634: undefined reference to `
    mysql_field_count@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x216e):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:637: undefined reference to `
    mysql_affected_rows@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x21bc):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:640: undefined reference to `
    mysql_fetch_field_direct@8'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x2319): In function `ZN12QMYSQLResult4s
    izeEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:658: undefined reference to `mysql_num_rows@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x237e): In function `ZNK12QMYSQLResult1
    2lastInsertIdEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:680: undefined reference to `mysql_insert_id@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x2461): In function `ZNK12QMYSQLResult6
    recordEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:700: undefined reference to `mysql_errno@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x247f):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:701: undefined reference to `
    mysql_field_seek@8'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x248d):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:702: undefined reference to `
    mysql_fetch_field@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x253e):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:705: undefined reference to `
    mysql_fetch_field@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x2563):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:708: undefined reference to `
    mysql_field_seek@8'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x3512): In function `ZN12QMYSQLDriver4o
    penERK7QStringS2_S2_S2_iS2_':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:1107: undefined reference to `mysql_init@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x37a3):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1107: undefined reference to
    `mysql_real_connect@32'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x39ef):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1122: undefined reference to
    `mysql_select_db@8'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x3cc9):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1125: undefined reference to
    `mysql_close@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x3f91):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1132: undefined reference to
    `mysql_close@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x4144): In function `ZN12QMYSQLDriver5c
    loseEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:1159: undefined reference to `mysql_close@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x42cb): In function `ZNK12QMYSQLDriver6
    tablesEN4QSql9TableTypeE':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:1178: undefined reference to `mysql_list_tables@8'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x4300):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1182: undefined reference to
    `mysql_data_seek@12'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x430e):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1183: undefined reference to
    `mysql_fetch_row@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x43c4):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1189: undefined reference to
    `mysql_free_result@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x4f00): In function `ZNK12QMYSQLDriver6
    recordERK7QString':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:1224: undefined reference to `mysql_list_fields@12'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x4f5a):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1229: undefined reference to
    `mysql_fetch_field@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x501e):C:/Qt/4.3.5/src/plugins/sqldrive
    rs/mysql/../../../sql/drivers/mysql/qsql_mysql.cpp:1231: undefined reference to
    `mysql_free_result@4'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x5124): In function `ZN12QMYSQLDriver16
    beginTransactionEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:1249: undefined reference to `mysql_query@8'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x52e2): In function `ZN12QMYSQLDriver17
    commitTransactionEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:1266: undefined reference to `mysql_query@8'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x54a0): In function `ZN12QMYSQLDriver19
    rollbackTransactionEv':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:1283: undefined reference to `mysql_query@8'
    tmp/obj/debug_shared/qsql_mysql.o(.text+0x598e): In function `ZNK12QMYSQLDriver1
    1formatValueERK9QSqlFieldb':
    C:/Qt/4.3.5/src/plugins/sqldrivers/mysql/../../../sql/drivers/mysql/qsql_mysql.c
    pp:1308: undefined reference to `mysql_real_escape_string@16'
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll] Error 1
    mingw32-make[1]: Leaving directory `C:/Qt/4.3.5/src/plugins/sqldrivers/mysql'
    mingw32-make: *** [debug-all] Error 2
    help please..

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: building plugin for mysql?

    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 15:13
  2. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 20:05
  3. Qt4 win opensource + mysql plugin
    By vr in forum Installation and Deployment
    Replies: 3
    Last Post: 25th May 2007, 10:01
  4. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 16:38
  5. Building of MySQL plugin fails
    By janca in forum Installation and Deployment
    Replies: 2
    Last Post: 21st January 2006, 09:23

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.