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. New install, error with "qmake".
Forum Updated to NodeBB v4.3 + New Features

New install, error with "qmake".

Scheduled Pinned Locked Moved Solved General and Desktop
24 Posts 7 Posters 24.4k Views 4 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.
  • jsulmJ jsulm

    @bogwon QtCreator does not use qmake from PATH - instead it uses qmake defined in the Kit you're using. The reason for this is that you can have as many different Qt versions installed as you need. Please check your Kit in "Tools/Options.../Build & Run/Kits" - are there any errors/warnings?
    "The QT package promises to include everything you need to build QT programs" - this is not correct. It promises to include its own tools, but compiler are not part of it (except MinGW on Windows). Make sure g++ is installed.

    B Offline
    B Offline
    bogwon
    wrote on last edited by bogwon
    #10

    @jsulm "Tools/Options.../Build & Run/Kits" looks fine. Screenshot: (http://imgur.com/PejHdgW)
    This forum's "insert image" widget does not seem to work with imgur.

    jsulmJ kshegunovK 2 Replies Last reply
    0
    • B bogwon

      @jsulm "Tools/Options.../Build & Run/Kits" looks fine. Screenshot: (http://imgur.com/PejHdgW)
      This forum's "insert image" widget does not seem to work with imgur.

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

      @bogwon There is no C++ compiler set, only C. You need C++ compiler. Check the Compilers tab.

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

      1 Reply Last reply
      0
      • B bogwon

        @jsulm "Tools/Options.../Build & Run/Kits" looks fine. Screenshot: (http://imgur.com/PejHdgW)
        This forum's "insert image" widget does not seem to work with imgur.

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #12

        From your screenshot it's apparent you have no c++ compiler.

        Read and abide by the Qt Code of Conduct

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

          To add to my fellows who already noted it and since you are on Linux, you need to install g++ as well.

          Note that I find it surprising that it's not already the case since you seem to have your distribution installed Qt development environment.

          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
          • B Offline
            B Offline
            bogwon
            wrote on last edited by
            #14

            OK, we're making progress. g++ was missing, installed it and the qmake error went away. Now when I try to build an example it complains about GL/gl.h missing.

            I have some OpenGL stuff installed, my old OpenGL program compiles and runs, so I am at a loss here as to what is needed.

            I could have sworn that in my last go-round with Linux the c++ compiler was installed by default, and may even have been the same as the C compiler.

            jsulmJ 1 Reply Last reply
            0
            • B bogwon

              OK, we're making progress. g++ was missing, installed it and the qmake error went away. Now when I try to build an example it complains about GL/gl.h missing.

              I have some OpenGL stuff installed, my old OpenGL program compiles and runs, so I am at a loss here as to what is needed.

              I could have sworn that in my last go-round with Linux the c++ compiler was installed by default, and may even have been the same as the C compiler.

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

              @bogwon C++ compiler is not the same as C compiler. GNU Compiler Collection (GCC) is a collection of different compilers, one of them is C++, it is called g++.
              Regarding the error: install mesa-common-dev and libgl1-mesa-dev packages

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

              mrjjM B 3 Replies Last reply
              1
              • jsulmJ jsulm

                @bogwon C++ compiler is not the same as C compiler. GNU Compiler Collection (GCC) is a collection of different compilers, one of them is C++, it is called g++.
                Regarding the error: install mesa-common-dev and libgl1-mesa-dev packages

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

                Besides qt5-default
                this works every time
                https://wiki.qt.io/Install_Qt_5_on_Ubuntu

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @bogwon C++ compiler is not the same as C compiler. GNU Compiler Collection (GCC) is a collection of different compilers, one of them is C++, it is called g++.
                  Regarding the error: install mesa-common-dev and libgl1-mesa-dev packages

                  B Offline
                  B Offline
                  bogwon
                  wrote on last edited by
                  #17

                  @jsulm That did it! Thanks.

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

                    Great !

                    Then please mark the thread as soled 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
                    1
                    • jsulmJ jsulm

                      @bogwon C++ compiler is not the same as C compiler. GNU Compiler Collection (GCC) is a collection of different compilers, one of them is C++, it is called g++.
                      Regarding the error: install mesa-common-dev and libgl1-mesa-dev packages

                      B Offline
                      B Offline
                      bogwon
                      wrote on last edited by
                      #19

                      @jsulm C & c++ compilers are different animals now, but I am pretty sure that not too long ago there was one compiler that did both. Albeit, 'not too long ago' might mean ten or 20 years.

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        bogwon
                        wrote on last edited by
                        #20

                        I got a blog post out of this, if you are curious.

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          rohan22
                          wrote on last edited by
                          #21

                          ""........Error while building/deploying project project_2 (kit: Desktop Qt 5.8.0 MSVC2015_64bit)
                          When executing step "qmake".........""
                          am using windows os..i am new to this help me

                          mrjjM 1 Reply Last reply
                          0
                          • R rohan22

                            ""........Error while building/deploying project project_2 (kit: Desktop Qt 5.8.0 MSVC2015_64bit)
                            When executing step "qmake".........""
                            am using windows os..i am new to this help me

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

                            @rohan22
                            HI
                            Did you install the Qt visual 2015 packet ?

                            Also, did you go download the actual visual studio compiler from microsoft site ?

                            It must match. Qt version and Visual studio version

                            So it wont work if u installed say vs 2013 or vs 2017

                            1 Reply Last reply
                            0
                            • R Offline
                              R Offline
                              rohan22
                              wrote on last edited by
                              #23

                              @mrjj
                              i am trying to install that pacaket.but i think it has different extension ".vsix" so i don"t know how to do it..
                              there is microsoft visual c++ 2015 showing in my pc"s control panel..

                              mrjjM 1 Reply Last reply
                              0
                              • R rohan22

                                @mrjj
                                i am trying to install that pacaket.but i think it has different extension ".vsix" so i don"t know how to do it..
                                there is microsoft visual c++ 2015 showing in my pc"s control panel..

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

                                @rohan22

                                Hi
                                Not sure what that is.
                                Make sure you check on C++ in VS installer. Its not on pr default.
                                Also no debugger pr default . must also be installed.
                                the b4 bit version
                                and make sure the Qt version macth your compiler.
                                https://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-msvc2015_64-5.8.0.exe

                                If all fails and you really just wanted to use Qt and not have to use Visual Studio
                                then try
                                https://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-mingw530-5.8.0.exe
                                It has compiler and debugger with :)

                                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