Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake installed but not working
Forum Updated to NodeBB v4.3 + New Features

qmake installed but not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 3.7k Views 2 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.
  • A Offline
    A Offline
    abhay
    wrote on last edited by
    #1

    Hello!! I installed qt-creator and all the dependencies of qt.When I try to run command

    qmake 
    

    it says that

    The program 'qmake' is currently not installed. You can install it by typing:
    sudo apt-get install qtchooser
    
    

    but when I try to run the above command it gives the following reply

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    qtchooser is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    

    I think the packages are broken.Can anybody suggest how to install qmake again? Thanks!

    jsulmJ 1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! Go to https://www.qt.io/download/ and get the online installer. The online installer will install all necessary components and also allow to install optional components.

      1 Reply Last reply
      0
      • A abhay

        Hello!! I installed qt-creator and all the dependencies of qt.When I try to run command

        qmake 
        

        it says that

        The program 'qmake' is currently not installed. You can install it by typing:
        sudo apt-get install qtchooser
        
        

        but when I try to run the above command it gives the following reply

        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        qtchooser is already the newest version.
        0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
        

        I think the packages are broken.Can anybody suggest how to install qmake again? Thanks!

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

        @abhay Did you install Qt as well or only QtCreator?
        qmake is part of Qt, not QtCreator. And you should tell how you install: using apt-get, Qt offline installer, Qt online installer, ...?

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

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

          Hi,

          Did you install the Qt 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
          0
          • jsulmJ jsulm

            @abhay Did you install Qt as well or only QtCreator?
            qmake is part of Qt, not QtCreator. And you should tell how you install: using apt-get, Qt offline installer, Qt online installer, ...?

            A Offline
            A Offline
            abhay
            wrote on last edited by
            #5

            @jsulm I installed both Qt and Qt Creator(through offline installer).

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

              The installer doesn't install Qt and its binaries in a folder that is used in the PATH environment variable. Part of this to ensure that it doesn't clash with the distributions provided Qt and also to allow for development with several versions of Qt installed at the same time.

              If you want to use that version of Qt from the command line then use the complete path to qmake.

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

              A 1 Reply Last reply
              2
              • SGaistS SGaist

                The installer doesn't install Qt and its binaries in a folder that is used in the PATH environment variable. Part of this to ensure that it doesn't clash with the distributions provided Qt and also to allow for development with several versions of Qt installed at the same time.

                If you want to use that version of Qt from the command line then use the complete path to qmake.

                A Offline
                A Offline
                abhay
                wrote on last edited by
                #7

                @SGaist Hi..I think somehow I deleted the directory /usr/bin/qmake.I am sorry for not sharing this info with you.Now,can I make qmake installble again? Thanks!

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

                  Looks like you removed your distribution's qmake.

                  Re-install the corresponding package.

                  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