Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Can't find valid kit on Ubuntu 16.04
QtWS25 Last Chance

Can't find valid kit on Ubuntu 16.04

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
17 Posts 4 Posters 5.1k Views
  • 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

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

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #3

    @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
    0
    • V Offline
      V Offline
      veera
      wrote on last edited by
      #4

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

      mrjjM jsulmJ 2 Replies Last reply
      0
      • V veera

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

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #5

        @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
        0
        • V veera

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #6

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

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

          1 Reply Last reply
          0
          • jsulmJ jsulm

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

            V Offline
            V Offline
            veera
            wrote on last edited by
            #7

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

            jsulmJ 1 Reply Last reply
            0
            • V veera

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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @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
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #9

                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

                jsulmJ 1 Reply Last reply
                0
                • SGaistS SGaist

                  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
                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

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

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

                  V 1 Reply Last reply
                  0
                  • jsulmJ jsulm

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

                    V Offline
                    V Offline
                    veera
                    wrote on last edited by
                    #11

                    @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

                    jsulmJ 2 Replies Last reply
                    0
                    • V veera

                      @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

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      @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
                      1
                      • V veera

                        @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

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        @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
                        0
                        • V Offline
                          V Offline
                          veera
                          wrote on last edited by
                          #14

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

                          jsulmJ 1 Reply Last reply
                          0
                          • V veera

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

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #15

                            @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
                            2
                            • V Offline
                              V Offline
                              veera
                              wrote on last edited by
                              #16

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

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

                                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
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved