Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Solved Can't find valid kit on Ubuntu 16.04

    Tools
    4
    17
    4388
    Loading More Posts
    • 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.
    • V
      veera last edited by

      Hi All,
      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 ...........

      jsulm 1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        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 ?

        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 Reply Quote 0
        • jsulm
          jsulm Lifetime Qt Champion @veera last edited by

          @veera To add to @SGaist : did you install C++ compiler (on Ubuntu install build-essential package)?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          V 1 Reply Last reply Reply Quote 0
          • V
            veera last edited by

            Hi ,
            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 ....

            mrjj jsulm 2 Replies Last reply Reply Quote 0
            • mrjj
              mrjj Lifetime Qt Champion @veera last edited by

              @veera
              Hi
              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 ?

              1 Reply Last reply Reply Quote 0
              • jsulm
                jsulm Lifetime Qt Champion @veera last edited by

                @veera How do you start your app? From QtCreator?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • V
                  veera @jsulm last edited by

                  @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....

                  jsulm 1 Reply Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @veera last edited by

                    @veera As @mrjj suggested you should do

                    ldd PATH_TO_YOUR_EXE
                    

                    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).

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      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:

                      1. install the development package for MySQL from your distribution
                      2. grab Qt's sources from the Maintenance Tool
                      3. build the plugin following Qt's documentation

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

                      jsulm 1 Reply Last reply Reply Quote 0
                      • jsulm
                        jsulm Lifetime Qt Champion @SGaist last edited by

                        @SGaist He is actually talking about "MS Sql server"

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          veera @jsulm last edited by

                          @jsulm
                          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,5.6.5.7,5.8 versions are there .....now what to do shall i remove qt versions except 5.5.1

                          jsulm 2 Replies Last reply Reply Quote 0
                          • jsulm
                            jsulm Lifetime Qt Champion @veera last edited by

                            @veera Just use qmake from the Qt version you want to use. It is perfectly valid to have more than one Qt version.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply Reply Quote 1
                            • jsulm
                              jsulm Lifetime Qt Champion @veera last edited by

                              @veera Did you actually try to do what already was suggested?
                              "As @mrjj suggested you should do

                              ldd PATH_TO_YOUR_EXE

                              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)."

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply Reply Quote 0
                              • V
                                veera last edited by

                                Using terminal or through qt creator need to run qmake command and please post me the complete command of ldd to my project....

                                jsulm 1 Reply Last reply Reply Quote 0
                                • jsulm
                                  jsulm Lifetime Qt Champion @veera last edited by

                                  @veera Then run qmake, what is the problem? Use a complete path to qmake from Qt version you want to use:

                                  PATH_TO_QT/bin/qmake
                                  

                                  What complete command for ldd do you need?
                                  It is just

                                  ldd PATH_TO_YOUR_EXECUTABLE
                                  

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply Reply Quote 2
                                  • V
                                    veera last edited by

                                    Okay thanks to all finally problem has solved after running qmake command ......

                                    1 Reply Last reply Reply Quote 0
                                    • SGaist
                                      SGaist Lifetime Qt Champion last edited by

                                      Great !

                                      Then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                                      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 Reply Quote 0
                                      • First post
                                        Last post