Qt 5.3 and mysql
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))"
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
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)?
Did you install Qt's sources ?