Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.3 and mysql
Forum Updated to NodeBB v4.3 + New Features

Qt 5.3 and mysql

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.0k 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.
  • O Offline
    O Offline
    orcav
    wrote on last edited by
    #1

    Greetings,

    I continue on my seemingly never ending quest to upgrade a Qt version and then never find an understandable way to 'get mysql to work'.

    I am using Ubuntu on a 386 machine and have just downloaded Qt 5.3 saving it in my user space.

    Now, I need to find the correct libsqlmysql.so file to match with the Qt 5.3 just off the web.

    I tried using the Ubuntu Software Center to install libqt5sql5-mysql which did put libqsqlmysql.so in my /usr/..../plugins/sqldrivers folder.

    Runniing a Qt mysql example program, I get run-time errors such as
    "Cannot mix incompatible Qt library (version 0x50100) with this library (version 0x50300))"

    Any suggestions?

    Val

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

      Hi,

      Don't mix your system Qt with the online version, the version don't match. Your distribution is providing Qt 5.1 and you are using 5.3.

      You need to build the plugin yourself. "Here":http://qt-project.org/doc/qt-5/sql-driver.html you have the guide

      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
      • O Offline
        O Offline
        orcav
        wrote on last edited by
        #3

        Hi, (Second attempt at a post on this problem)

        Where is the mysql plugin source code? The link says that "The driver source code is supplied" but I do not have any mysql c code in the current Qt download (Ubuntu 14.04).

        I used apt-get to install libmysqlclient-dev thinking it might have the plugin source code but no luck again.

        Where can I get the proper version of the plugin source code that matches the current Qt release (5.3)?

        Val

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

          Did you install Qt's sources ?

          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