Results 1 to 4 of 4

Thread: Problem with compiling MySQL Plugin (Win7 x64)

  1. #1
    Join Date
    Mar 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem with compiling MySQL Plugin (Win7 x64)

    I have an problem with compiling MySQL Plugin. I've done bellow steps:

    1. Installed latest Qt SDK
    2. Installed MinGW Utils
    3. Installed MySQL 5.1.56 (also tried latest)
    4. reimp -d libmysql.lib
    5. dlltool -k -d libmysql.def -l libmysql.a
    6. qmake "INCLUDEPATH +=c:\mysql51\include" "LIBS +=c:\mysql51\lib\opt\libmysql.lib" mysql.pro
    7. mingw32-make


    And on the last step (in red) gives me a lot of errors:
    Qt Code:
    1. mingw32-make -f Makefile.Debug all
    2. mingw32-make[1]: Entering directory `C:/Qt/2010.05/qt/src/plugins/sqldrivers/mys
    3. ql'
    4. g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    5. oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\2010.05\qt\plugins\sqldrivers\li
    6. bqsqlmysqld4.a -o ..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll tmp/obj/debug_s
    7. hared/main.o tmp/obj/debug_shared/qsql_mysql.o tmp/obj/debug_shared/moc_qsql_mys
    8. ql.o -L"c:\Qt\2010.05\qt\lib" -L"c:\Qt\2010.05\qt\lib" tmp\obj\debug_shared\qsq
    9. lmysqld_resource_res.o c:\mysql51\lib\opt\libmysql.lib -lQtSqld4 -lQtCored4
    10. Creating library file: c:\Qt\2010.05\qt\plugins\sqldrivers\libqsqlmysqld4.a
    11. tmp/obj/debug_shared/main.o: In function `ZN18QMYSQLDriverPlugin6createERK7QStri
    12. ng':
    13. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/main.cpp:63: undefined reference t
    14. o `__gxx_personality_sj0'
    15. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/main.cpp:63: undefined reference t
    16. o `_Unwind_SjLj_Register'
    17. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/main.cpp:65: undefined reference t
    18. o `_Unwind_SjLj_Resume'
    19. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/main.cpp:68: undefined reference t
    20. o `_Unwind_SjLj_Unregister'
    21. tmp/obj/debug_shared/main.o: In function `ZNK18QMYSQLDriverPlugin4keysEv':
    22. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/main.cpp:72: undefined reference t
    23. o `__gxx_personality_sj0'
    24. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/main.cpp:72: undefined reference t
    25. o `_Unwind_SjLj_Register'
    26.  
    27. ...
    28.  
    29. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../s
    30. rc/corelib/thread/qbasicatomic.h:(.text$_ZN19QMYSQLResultPrivateD0Ev[QMYSQLResul
    31. tPrivate::~QMYSQLResultPrivate()]+0x31): undefined reference to `_Unwind_SjLj_Re
    32. gister'
    33. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../s
    34. rc/corelib/thread/qbasicatomic.h:(.text$_ZN19QMYSQLResultPrivateD0Ev[QMYSQLResul
    35. tPrivate::~QMYSQLResultPrivate()]+0x8c): undefined reference to `_Unwind_SjLj_Re
    36. sume'
    37. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../s
    38. rc/corelib/thread/qbasicatomic.h:(.text$_ZN19QMYSQLResultPrivateD0Ev[QMYSQLResul
    39. tPrivate::~QMYSQLResultPrivate()]+0xc2): undefined reference to `_Unwind_SjLj_Un
    40. register'
    41. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../s
    42. rc/corelib/thread/qbasicatomic.h:(.text$_ZN19QMYSQLResultPrivateD1Ev[QMYSQLResul
    43. tPrivate::~QMYSQLResultPrivate()]+0xc): undefined reference to `__gxx_personalit
    44. y_sj0'
    45. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../s
    46. rc/corelib/thread/qbasicatomic.h:(.text$_ZN19QMYSQLResultPrivateD1Ev[QMYSQLResul
    47. tPrivate::~QMYSQLResultPrivate()]+0x31): undefined reference to `_Unwind_SjLj_Re
    48. gister'
    49. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../s
    50. rc/corelib/thread/qbasicatomic.h:(.text$_ZN19QMYSQLResultPrivateD1Ev[QMYSQLResul
    51. tPrivate::~QMYSQLResultPrivate()]+0x8c): undefined reference to `_Unwind_SjLj_Re
    52. sume'
    53. C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysql/../../../../include/QtCore/../../s
    54. rc/corelib/thread/qbasicatomic.h:(.text$_ZN19QMYSQLResultPrivateD1Ev[QMYSQLResul
    55. tPrivate::~QMYSQLResultPrivate()]+0xc2): undefined reference to `_Unwind_SjLj_Un
    56. register'
    57. collect2: ld returned 1 exit status
    58. mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll] Error 1
    59. mingw32-make[1]: Leaving directory `C:/Qt/2010.05/qt/src/plugins/sqldrivers/mysq
    60. l'
    61. mingw32-make: *** [debug-all] Error 2
    To copy to clipboard, switch view to plain text mode 

    I've cutted out large part of it, because it's nearly the same.

    Google gives me answer that it might be problem with two different MinGW installed (i have installed DevCpp), so i cutted out oldest MinGW from PATH, but still the same...

    What else may be wrong?

  2. #2
    Join Date
    Mar 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem with compiling MySQL Plugin (Win7 x64)

    Anyone can help me?

  3. #3
    Join Date
    Mar 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem with compiling MySQL Plugin (Win7 x64)

    I'm fighting with that for 3 weeks, nothing helps. Anyone has the solution?

  4. #4
    Join Date
    Mar 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem with compiling MySQL Plugin (Win7 x64)

    Problem solved!

    I used mysql-essential-5.1.56-win32, copied libmysql.lib into plugin directory, executed reimp and dlltool in this directory and executed: qmake "INCLUDEPATH +=c:\mysql51\include" "LIBS +=-L./" mysql.pro

    Also i configured mysql server after installation

Similar Threads

  1. Compiling Qt with VS2010 and MySQL
    By ruda in forum Installation and Deployment
    Replies: 0
    Last Post: 17th March 2011, 17:43
  2. Mysql plugin on Linux problem
    By .:saeed:. in forum Newbie
    Replies: 1
    Last Post: 20th January 2011, 17:03
  3. Replies: 0
    Last Post: 17th August 2010, 15:35
  4. problem with plugin mysql
    By jose.va18 in forum Installation and Deployment
    Replies: 2
    Last Post: 19th September 2007, 12:12
  5. issues compiling Qt4.1 with mysql
    By patcito in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2006, 22:41

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.