Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Problem building Qt 4.7 with QMySql driver.

    General and Desktop
    2
    2
    3061
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      deus_duke last edited by

      Hello I have been trying for 5 days now to the the QMySql driver compiled into qt.

      I am using mingw to compile.

      Here is what I entered:

      D:Qt4.7.0>configure.exe -debug-and-release -platform win32-g++ -qt-sql-mysql -
      l mysql -I C:Progra~1MySQLMySQLS~1.1include -L C:Progra~1MySQLMySQLS~1.1
      libopt

      ( above runs fine)

      D:Qt4.7.0>mingw32-make sub-src
      cd srctoolsbootstrap && mingw32-make

      d:MinGWlib/libstdc++.a(new_opv.o):new_opv.cc:(.text+0x34): undefined reference
      to _Unwind_SjLj_Register' d:MinGWlib/libstdc++.a(new_opv.o):new_opv.cc:(.text+0x54): undefined reference to _Unwind_SjLj_Unregister'
      d:MinGWlib/libstdc++.a(new_opv.o):new_opv.cc:(.text+0x7f): undefined reference
      to _Unwind_SjLj_Resume' d:MinGWlib/libstdc++.a(new_op.o):new_op.cc:(.text+0x34): undefined reference t o _Unwind_SjLj_Register'
      d:MinGWlib/libstdc++.a(new_op.o):new_op.cc:(.text+0x87): undefined reference t
      o _Unwind_SjLj_Unregister' d:MinGWlib/libstdc++.a(new_op.o):new_op.cc:(.text+0xb7): undefined reference t o _Unwind_SjLj_Resume'
      d:MinGWlib/libstdc++.a(eh_personality.o):eh_personality.cc:(.text+0x461): unde
      fined reference to _Unwind_SjLj_Register' d:MinGWlib/libstdc++.a(eh_personality.o):eh_personality.cc:(.text+0x5d4): unde fined reference to _Unwind_SjLj_Unregister'
      d:MinGWlib/libstdc++.a(eh_personality.o):eh_personality.cc:(.text+0x6c6): unde
      fined reference to _Unwind_SjLj_Unregister' d:MinGWlib/libstdc++.a(eh_personality.o):eh_personality.cc:(.text+0x92a): unde fined reference to _Unwind_SjLj_Resume'
      d:MinGWlib/libstdc++.a(eh_personality.o):eh_personality.cc:(.text+0x9b7): unde
      fined reference to _Unwind_SjLj_Register' d:MinGWlib/libstdc++.a(eh_personality.o):eh_personality.cc:(.text+0xa3b): unde fined reference to _Unwind_SjLj_Resume'
      d:MinGWlib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0x7b): undefined referen
      ce to __w32_sharedptr_unexpected' d:MinGWlib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0x8c): undefined referen ce to __w32_sharedptr_terminate'
      d:MinGWlib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0xa1): undefined referen
      ce to _Unwind_SjLj_RaiseException' d:MinGWlib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0xfa): undefined referen ce to _Unwind_SjLj_Resume_or_Rethrow'
      d:MinGWlib/libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x54): undefined referen
      ce to _Unwind_SjLj_Register' d:MinGWlib/libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x98): undefined referen ce to _Unwind_SjLj_Unregister'
      d:MinGWlib/libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x197): undefined refere
      nce to _Unwind_SjLj_Resume' d:MinGWlib/libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x1e4): undefined refere nce to _Unwind_SjLj_Register'
      d:MinGWlib/libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x252): undefined refere
      nce to _Unwind_SjLj_Unregister' d:MinGWlib/libstdc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x28f): undefined refere nce to _Unwind_SjLj_Resume'
      d:MinGWlib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x34): undefined
      reference to _Unwind_SjLj_Register' d:MinGWlib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x67): undefined reference to __w32_sharedptr_terminate'
      d:MinGWlib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x97): undefined
      reference to __w32_sharedptr_unexpected' d:MinGWlib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0xb3): undefined reference to __w32_sharedptr_terminate'
      d:MinGWlib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0xd3): undefined
      reference to __w32_sharedptr_unexpected' d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x4e): undefined ref erence to __w32_sharedptr'
      d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0xb4): undefined ref
      erence to _Unwind_SjLj_Register' d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0xb9): undefined ref erence to __w32_sharedptr'
      d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0xd1): undefined ref
      erence to _Unwind_SjLj_Unregister' d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x101): undefined re ference to _Unwind_SjLj_Unregister'
      d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x12c): undefined re
      ference to _Unwind_SjLj_Resume' d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x174): undefined re ference to _Unwind_SjLj_Register'
      d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x179): undefined re
      ference to __w32_sharedptr' d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x186): undefined re ference to __w32_sharedptr'
      d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x1b4): undefined re
      ference to _Unwind_SjLj_Unregister' d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x1e3): undefined re ference to __w32_sharedptr'
      d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x1ef): undefined re
      ference to __w32_sharedptr' d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x20d): undefined re ference to _Unwind_SjLj_Unregister'
      d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x238): undefined re
      ference to _Unwind_SjLj_Resume' d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x23d): undefined re ference to __w32_sharedptr'
      d:MinGWlib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x28a): undefined re
      ference to __w32_sharedptr' d:MinGWlib/libstdc++.a(eh_catch.o):eh_catch.cc:(.text+0x34): undefined referen ce to _Unwind_SjLj_Register'
      d:MinGWlib/libstdc++.a(eh_catch.o):eh_catch.cc:(.text+0x72): undefined referen
      ce to _Unwind_SjLj_Unregister' d:MinGWlib/libstdc++.a(eh_catch.o):eh_catch.cc:(.text+0xaa): undefined referen ce to _Unwind_SjLj_Unregister'
      d:MinGWlib/libstdc++.a(eh_catch.o):eh_catch.cc:(.text+0xee): undefined referen
      ce to _Unwind_SjLj_Resume' collect2: ld returned 1 exit status mingw32-make[2]: *** [......binmoc.exe] Error 1 mingw32-make[2]: Leaving directory D:/Qt/4.7.0/src/tools/moc'
      mingw32-make[1]: *** [release] Error 2
      mingw32-make[1]: Leaving directory `D:/Qt/4.7.0/src/tools/moc'
      mingw32-make: *** [sub-moc-sub_src_target_ordered] Error 2

      1 Reply Last reply Reply Quote 0
      • T
        tony last edited by

        Well,

        it seems related to your MinGW installation.

        Have you tried starting from scratch, downloading latest MinGW packages, and then build Qt from sources?

        Tony.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post