Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using Qt to get 64 bit programs
Forum Updated to NodeBB v4.3 + New Features

Using Qt to get 64 bit programs

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    ranger0
    wrote on last edited by
    #1

    Hi,

    After a week of hard work I found out how to compile Qt 4.8.4 in order to use minGW-64 as toolchain.

    To achieve that I ran configure -fast -qt-style-windowsxp -no-xmlpatterns -no-webkit -plugin-sql-mysql

    I could successfuly compile my app, but when it tries to connect to mysql databank (db.open()), my app crashes.

    Debuger points to file qsql_mysql.cpp line 1276:

    @
    if ((d->mysql = mysql_init((MYSQL*) 0)) &&
    mysql_real_connect(d->mysql,
    host.isNull() ? static_cast<const char *>(0)
    : host.toLocal8Bit().constData(),
    user.isNull() ? static_cast<const char *>(0)
    : user.toLocal8Bit().constData(),
    password.isNull() ? static_cast<const char *>(0)
    : password.toLocal8Bit().constData(),
    db.isNull() ? static_cast<const char *>(0)
    : db.toLocal8Bit().constData(),
    (port > -1) ? port : 0,
    unixSocket.isNull() ? static_cast<const char *>(0)
    : unixSocket.toLocal8Bit().constData(),
    optionFlags))
    @

    Is there any thing I could do to fix this? Is this a bug related to 64bits compilation on windows? Does anyone could use qt and mingw-w64 to an application like mine ? How?

    Thanks.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Peter K
      wrote on last edited by
      #2

      What are the errors that are generated upon crashing?

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ranger0
        wrote on last edited by
        #3

        Hi Peter,

        At debugger I just could see a segmentation fault warning.

        Thanks.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved