Can't find valid kit on Ubuntu 16.04
I am facing the problem of no valid kit found if i am choose the Qt quick application ,and my current version of qt creator 4.8 on Ubuntu 16.04 LTS 64 bit . I am trying to open Qt quick application for doing some qml application project as well as grid view programming adding ,editing and deleting data from MSSQL server database ..please any one guide me in right direction ......and how to upgrade the qt version 4.8 to qt version 5.5 using terminal on ubuntu ...........
I've forked your question. necro-posting is usually a bad idea even if your question is similar you'll be less likely to get answers.
In your case, did you install both the Qt 4 and Qt 5 development packages from your distribution ?
I am trying to install latest Qt creator on ubuntu 16.04 LTS 64 bit using online qt run installed successfully....after trying connect mssql server using qt application i am getting this error
"Cannot mix incompatible Qt library (version 0x50701) with this library (version 0x50800)
The program has unexpectedly finished."
I have solved the odbc driver issue ....
Try to use ldd on your exe and see what so files it wants to pull in.
Also if you make a normal standard GUI project , will it then run ?
@veera How do you start your app? From QtCreator?
@jsulm yes installed latest g++ compiler and usually after building the qt application will just running it...
and normal gui application will running correctly ....when it comes to interfacing with MS Sql server i am getting the error of intermixing of qt versions....
Also try to set QT_DEBUG_PLUGINS=1 before running your app to see which plug-ins are loaded (my guess is that your app tries to load MSSQL plugin from another Qt version).
An educated guess: the installed version of the MySQL librairies doesn't match the one used to build Qt 5.8 so the plugin fails to load and it tries to load the one from your distribution installed Qt.
Therefore you will need to re-build the MySql plugin for your Qt 5.8 (only the plugin, there's no need to re-build all of Qt). There are already numerous threads about that specific topic. It boils down to:
- install the development package for MySQL from your distribution
- grab Qt's sources from the Maintenance Tool
- build the plugin following Qt's documentation
@SGaist He is actually talking about "MS Sql server"
you are correct when i ll run qmake --version it is showing that qt version is 5.5.1
but when i see the QT installed directory there are lot of versions 5.5,184.108.40.206,5.8 versions are there .....now what to do shall i remove qt versions except 5.5.1
@veera Just use qmake from the Qt version you want to use. It is perfectly valid to have more than one Qt version.
Also try to set QT_DEBUG_PLUGINS=1 before running your app to see which plug-ins are loaded (my guess is that your app tries to load MSSQL plugin from another Qt version)."
Using terminal or through qt creator need to run qmake command and please post me the complete command of ldd to my project....
@veera Then run qmake, what is the problem? Use a complete path to qmake from Qt version you want to use:
What complete command for ldd do you need?
It is just
Okay thanks to all finally problem has solved after running qmake command ......
Then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)