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. Where is qmake.exe [SOLVED]

Where is qmake.exe [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
10 Posts 6 Posters 47.7k 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.
  • R Offline
    R Offline
    RoaringTitan
    wrote on last edited by
    #1

    This is really frustrating, I have been trying to find this executable for like an hour but still couldn't, I dunno why this is not that easy like in visual studio. okie what I have done so far,
    since I already have visual studio 2010 installed in my system, I downloaded and installed
    "Qt 5.3.1 for Windows 32-bit (VS 2010, OpenGL, 537 MB)" but I didn't install the OpenGL files (yeah I unticked the opengl box) and installed the QT and then ran the QT Creator then it says no valid kits found so I found ,I have to give the qtmake.exe file's location but I couldn't find this file. where can I download it? why it's not even autodetected? and I couldn't even find a simple explanation about this on net. I hope this will be more simple like visual studio because it makes people frustrate.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chrisaverage
      wrote on last edited by
      #2

      Hi, welcome to devnet.

      qmake.exe is in bin directory of your Qt installation folder (along with all the Qt dlls for deployment).

      Your compiler should be detected automatically (check the Tools > Options > Build & Run > Compilers tab).
      Next, check if your Qt installation is detected (Qt Versions tab).
      Next, check if there's a kit generated (Kits tab).

      Please give more info about the state of these tabs (what's in there) or refer to the associated help topics:
      "Adding compilers":http://qt-project.org/doc/qtcreator-3.2/creator-tool-chains.html
      "Adding Qt Versions":http://qt-project.org/doc/qtcreator-3.2/creator-project-qmake.html
      "Adding Kits":http://qt-project.org/doc/qtcreator-3.2/creator-targets.html

      Btw. it's Qt. QT usually stands for Apple QuickTime.

      EDIT: What do you mean you unchecked the OpenGL component? Do you mean the "Qt -> Qt 5.3 -> msvc2010 32-bit OpenGL" checkbox? That's not an OpenGL component. That's the Qt library (built with desktop OpenGL support). If you unchecked that then all you installed is an IDE (Qt Creator) and you don't have Qt (the library) installed.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RoaringTitan
        wrote on last edited by
        #3

        after checking the Opengl checkbox (yeah the one you mentions) it works now, I think it's a bit confusing because it gives a wrong impression that these files are for OpenGL. anyway thanks for replying. I could install the QT Creator and also build 2 projects successfully but now when I run the program it says a DLL file is missing ,I guess you already answered for that question too [ in here -> along with all the Qt dlls for deployment). ] . thanks for that :)

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RoaringTitan
          wrote on last edited by
          #4

          one question, whenever I build a new executable ,I have to copy paste the necessary library files with the application ,I developed. is there anyway to automatically copy the necessary library files (of course dynamic linking) to the folder where my executable reside ,when the executable is built through release?

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RoaringTitan
            wrote on last edited by
            #5

            okie I solved it by myself too. it's pretty much easy. first build the executable through QTCreator -> Release (on QT Creator ,Project -> select "Release" in "Edit Build configuration" combo box and then select "Build Project "project name"" , it's in the menu bar of the QT Creator)

            after building the executable (release one) ,find the "Qt 5.3 32-bit for Desktop (MSVC 2010 OpenGL).exe file which resides in startmenu (it's a dos application) run it and then redirect the path to where your release file resides (example :
            cd c:\projectfile\myapp ) and then type the "windeployqt.exe ."
            yeah make sure to type the ending "." too but without quotation marks. it should be like this

            windeployqt.exe .
            then it will copy paste all necessary library files to the folder where the release executable resides.
            but before doing this ,run the qtenv2.bat file which resides in the
            "C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin" (C or wherever the QT is installed), it will register the QT path in the system so whenever an application is mentioned which resides in the aforesaid folder in the DOS prompt , the dos prompt will automatically find its path. ( [automatically find path]\filename.exe) example (C:\Qt\Qt5.3.1\5.3\msvc2010_opengl\bin\windeployqt.exe)

            1 Reply Last reply
            0
            • C Offline
              C Offline
              chrisaverage
              wrote on last edited by
              #6

              Great that you figured it out. Please prepend [Solved] to the topic title to let others know there's a solution here.

              About the package containing OpenGL in the name - it makes sense in the online installer, where you have more library versions to choose from (ANGLE, WinRT etc,). When you install a single package like the one you did it's stripped down to basically this single option so the name looses some context.

              More on the naming - again, it's Qt, not QT, and there is no DOS starting with Vista (the underlying OS called DOS was removed and replaced with NT kernel). It's just a command prompt that runs in text mode.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Props
                wrote on last edited by Props
                #7

                But I have no qmake.exe found in directory bin
                Useful information:

                • Version: 4.9.1
                • Qt Creator

                Can you guys sent me a qmake.exe file? Thank you

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

                  @Props Hi and welcome to devnet,

                  There's no Qt 4.9.1 version.

                  Please open a new thread stating exactly what your problem is, what version of Qt you installed, what OS you are using, etc.

                  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
                  • P Props

                    But I have no qmake.exe found in directory bin
                    Useful information:

                    • Version: 4.9.1
                    • Qt Creator

                    Can you guys sent me a qmake.exe file? Thank you

                    J Offline
                    J Offline
                    Joe D2020
                    wrote on last edited by
                    #9

                    @Props: Also me:

                    I just ran Windows installer, I am running windows 10 Pro-64bit Build 18362. I selected only devtools. In Qt Creator bin directory, I have qtcreator.exe. When I run this, I find I have version 4.11.2 (based on Qt 5.14.2 (MSVC 2017 , 32 bit).

                    There is no qmake.exe in the installation (anywhere).

                    Installed in C:\QT. In DOS:
                    cd C:\qt
                    dir/s qmake*.exe
                    No files found.

                    I don't want to download sources and build it.
                    How do I get qmake.exe?

                    jsulmJ 1 Reply Last reply
                    0
                    • J Joe D2020

                      @Props: Also me:

                      I just ran Windows installer, I am running windows 10 Pro-64bit Build 18362. I selected only devtools. In Qt Creator bin directory, I have qtcreator.exe. When I run this, I find I have version 4.11.2 (based on Qt 5.14.2 (MSVC 2017 , 32 bit).

                      There is no qmake.exe in the installation (anywhere).

                      Installed in C:\QT. In DOS:
                      cd C:\qt
                      dir/s qmake*.exe
                      No files found.

                      I don't want to download sources and build it.
                      How do I get qmake.exe?

                      jsulmJ Online
                      jsulmJ Online
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Joe-D2020 You did not install Qt itself. Please run maintenance tool from C:\QT and select a Qt version matching the compiler you want to use. You can for example select Qt for MinGW then compiler (MinGW) will be installed automatically.

                      "How do I get qmake.exe?" - qmake.exe is part of Qt, so install Qt first...

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

                      1 Reply Last reply
                      1

                      • Login

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