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. Am I getting the correct version of Qt?
Forum Updated to NodeBB v4.3 + New Features

Am I getting the correct version of Qt?

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 3 Posters 1.7k Views 3 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Hi -

    I'm still trying to master the installation and administration of Qt. I've been playing around a little, and I'm not sure I'm getting the right version of Qt from the command line.

    From a directory containing one file (hello.cpp) I issue the qmake -install command, and get a makefile. The header gives me reason for concern:

    #############################################################################
    # Makefile for building: hello
    # Generated by qmake (2.01a) (Qt 4.8.6) on: Tue Feb 28 08:41:23 2017
    # Project:  hello.pro
    # Template: app
    # Command: /usr/lib/x86_64-linux-gnu/qt4/bin/qmake -o Makefile hello.pro
    #############################################################################
    

    Qt4? I just installed this a couple weeks ago. I'm sure I have Qt5 on my system.

    In my earlier experimentation, I had a few false starts with Qt. Is there some way to to a master cleanup of Qt to eradicate any old stuff? I've run the maintenance tool, and that hasn't solved this issue.

    Thanks.

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

      Hi,

      You are likely calling your distribution provided Qt.

      Always use the full path of the one you intend to use.

      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
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        Hi Rgaist -

        I'm not sure I know what you mean by "distribution provided," but yes, I'm finding my way to the wrong qmake.

        mzimmers@debian:~/QtStuff/hello$ which qmake
        /usr/bin/qmake
        mzimmers@debian:~/QtStuff/hello$
        

        The qmake I want is in /opt/Qt/5.8/gcc_64/bin/.

        I looked in /usr/bin, and there's a bunch of Qt stuff in there. I never specified /usr/bin as an install location, so I'm not sure how it all got there. Are these files even necessary? I'm the only user on this system.

        Thanks...

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

          That's the standard path for your distribution Qt installation.

          Don't worry about that, that's 100% fine.

          Therefore my recommendation: when your using a terminal, just use the full path to the qmake version you want to use. That way you ensure that you are calling the one you need/want.

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

          mzimmersM 1 Reply Last reply
          1
          • mzimmersM mzimmers

            Hi Rgaist -

            I'm not sure I know what you mean by "distribution provided," but yes, I'm finding my way to the wrong qmake.

            mzimmers@debian:~/QtStuff/hello$ which qmake
            /usr/bin/qmake
            mzimmers@debian:~/QtStuff/hello$
            

            The qmake I want is in /opt/Qt/5.8/gcc_64/bin/.

            I looked in /usr/bin, and there's a bunch of Qt stuff in there. I never specified /usr/bin as an install location, so I'm not sure how it all got there. Are these files even necessary? I'm the only user on this system.

            Thanks...

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

            @mzimmers
            Hi
            For ubuntu I had to do
            http://askubuntu.com/questions/820054/selecting-qt5-using-qtchooser
            Not sure it applies to a pure debian :)
            https://packages.debian.org/jessie/qtchooser

            Also , for Mint 18, i had to use
            https://packages.debian.org/jessie/qt5-default

            1 Reply Last reply
            1
            • SGaistS SGaist

              That's the standard path for your distribution Qt installation.

              Don't worry about that, that's 100% fine.

              Therefore my recommendation: when your using a terminal, just use the full path to the qmake version you want to use. That way you ensure that you are calling the one you need/want.

              mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #6

              @SGaist do I correctly understand that the standard Debian installation includes a version of Qt?

              And I surmise that it's probably better if I don't go into /usr/bin and try to clean it up myself, right?

              Hi, mrjj - I saw the chooser and was thinking about using it. I'll report back on how it works with Debian if I find anything wrong.

              Thanks...

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

                Debian provides both Qt 4 and Qt 5 but AFAIK, the default is still Qt 4.

                Indeed, don't go there moving stuff around, there's nothing to clean. You'll just break your co-worker setup.

                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
                • mzimmersM mzimmers

                  @SGaist do I correctly understand that the standard Debian installation includes a version of Qt?

                  And I surmise that it's probably better if I don't go into /usr/bin and try to clean it up myself, right?

                  Hi, mrjj - I saw the chooser and was thinking about using it. I'll report back on how it works with Debian if I find anything wrong.

                  Thanks...

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

                  @mzimmers
                  Hi
                  well something like
                  qtchooser -list-versions
                  is not dangerous :)

                  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