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. Mysql does not work when I compile statically
Forum Updated to NodeBB v4.3 + New Features

Mysql does not work when I compile statically

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 981 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
    ReDKiiL
    wrote on last edited by
    #1

    I create a qt's static using this tutorial:

    http://qt-project.org/wiki/How-to-build-a-static-Qt-for-Windows-MinGW

    More when I run my application mysql does not work
    When I run the dynamic environment/debug, works normally.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      moravas
      wrote on last edited by
      #2

      Hi,

      it's a bit broad range of point of failure, but first of all: did you compile the MySQL source as well into the static build of Qt? You yould have something like that: QtSQL.library

      Regards,
      Norbert

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Are you setting up your code/pro file to make use of static plugins ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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