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. After build from source, and install, getting errors trying to use it in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

After build from source, and install, getting errors trying to use it in Qt Creator

Scheduled Pinned Locked Moved Solved Installation and Deployment
9 Posts 2 Posters 2.1k 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.
  • J Offline
    J Offline
    JonathanA
    wrote on 1 Mar 2019, 19:59 last edited by JonathanA 3 Jan 2019, 20:00
    #1

    After I do the "configure", "jom" and "jom install" steps, I get a Qt build in the -prefix folder. But if I try to manually create a Qt kit using that folder, I always get a

    Qt version is not properly installed. please run make install
    

    Error in the Qt Versions tab of the Manage Kits dialog inside of Qt Creator. If I expand it to see the details, it says "Invalid Qt Version".

    Am I supposed to move that somewhere so Qt Creator is happy? What is it looking for exactly that it isn't find? I would also like to share this build with my fellow developers. Can I just zip the folder up and give it to them to unzip onto their hard drive?

    Mind you, I am getting the aforementioned install errors (see my previous post). But as it is complaining about files already there, I'm thinking that isn't my problem here.

    Jonathan

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Mar 2019, 20:18 last edited by
      #2

      Hi,

      Did you first add a new Qt version using your self built Qt ?
      What parameters did you pass exactly to configure ?

      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
      • J Offline
        J Offline
        JonathanA
        wrote on 1 Mar 2019, 20:30 last edited by
        #3

        Yes, this is the error I'm getting when I try to Add.. from the Qt Versions tab. Here's my configure line (it's a big one because I'm skipping a bunch of modules):

        %_ROOT%\configure -prefix %_ROOT%\..\5.12.1-32-release -nomake examples -nomake tests -skip qtandroidextras -skip qtgamepad -skip qtmacextras -skip qtquickcontrols -skip qt3d -skip qtcanvas3d -skip qtx11extras -skip qtactiveqt -skip qtcharts -skip qtdatavis3d -skip qtpurchasing -skip qtquickcontrols2 -skip qtvirtualkeyboard -skip qtwayland -opensource -opengl dynamic -confirm-license
        

        And I'm trying to use the qmake found in the 5.12.1-32-release/bin folder.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 1 Mar 2019, 20:32 last edited by
          #4

          What do you get if your run qmake directly from the command line ?

          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
          • J Offline
            J Offline
            JonathanA
            wrote on 1 Mar 2019, 21:09 last edited by
            #5

            So if I run this:

            F:\Qt\5.12.1\msvc2017_32\bin>qmake --version          
            QMake version 3.1                                     
            Using Qt version 5.12.1 in c:/5.12.1-32-release/lib   
            

            that looks like the problem. As you can see, the qmake is in a different folder than where it is looking. It should be looking in F:\Qt\5.12.1\msvc2017_32\lib, because I moved it to a different computer. Is there anyway to have it so Qt isn't looking in a hardcoded path, but rather relative (which was how I thought it always worked).

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 1 Mar 2019, 21:15 last edited by
              #6

              I meant running qmake from your custom Qt build.

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

              J 1 Reply Last reply 1 Mar 2019, 21:21
              0
              • S SGaist
                1 Mar 2019, 21:15

                I meant running qmake from your custom Qt build.

                J Offline
                J Offline
                JonathanA
                wrote on 1 Mar 2019, 21:21 last edited by
                #7

                @SGaist yeah, sorry the path looked weird, I moved it around. That is my custom Qt build qmake.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 1 Mar 2019, 21:25 last edited by
                  #8

                  And there's your problem, you can't just move your Qt installation around like that. There are paths hard coded in qmake. IIRC there's a relocate tool but I don't remember its exact name.

                  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
                  1
                  • J Offline
                    J Offline
                    JonathanA
                    wrote on 1 Mar 2019, 21:41 last edited by
                    #9

                    Yup, that's it. Turns out I can add a qt.conf file "next" to the qmake.exe with the following in it:

                    [Paths]
                    Prefix = f:/5.12.1-32-release
                    

                    And now I get:

                    F:\5.12.1-32-release\bin>qmake --version              
                    QMake version 3.1                                     
                    Using Qt version 5.12.1 in f:/5.12.1-32-release/lib   
                    

                    And Qt Creator is very happy.

                    1 Reply Last reply
                    1

                    1/9

                    1 Mar 2019, 19:59

                    • Login

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