Results 1 to 8 of 8

Thread: qmake not existing

  1. #1
    Join Date
    Nov 2011
    Posts
    51
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question qmake not existing

    Hi!

    I know this is a real newbie question, but what should I do in order to be able to compile with Qt Creator? I have just removed Qt library from my computer, and installer Qt Creator instead, since I realized Qt and Visual Studio wasn't a very good idea after having heard about Qt Creator. However, when I try to compile, I get the following build issue:

    Qt Code:
    1. The Qt version is invalid: qmake does not exist or is not executable
    To copy to clipboard, switch view to plain text mode 

    Also, many guides and tutorials for Qt Creator says that you should select Qt version by going into Tools->Options...->Qt4 and from there select the version after clicking the Add button, but they don't say where you look for it or how to get one if you don't have one. Other tutorials just don't mention it at all.

    Before, when I still had Qt library installed, I had selected a qmake.exe file but it was deleted when I removed Qt library, and there has never been any Qt versions auto-detected by Qt Creator. However, when I had qmake.exe on my computer, I still wasn't able to compile because it complained about not being able to find uic.exe.

    So, should I be able to compile after having installed Qt Creator only? In that case, where do I find qmake.exe or how can I fix that build issue? If I shouldn't be able to compile, what do I need to install more in order to be able to do that? I know that it will work if I just install Qt SDK, but it takes up so much space on the computer, and I'm kind of running out of hard disc space. A friend of mine said he had installed only Qt Creator and it worked for him, that's why I think it's strange that it doesn't work for me. Thanks in advance.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: qmake not existing

    If you are looking to compile a program using Qt libraries, then you should have Qt library installed (Download one and install).

  3. #3
    Join Date
    Nov 2011
    Posts
    51
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qmake not existing

    There are two versions for Windows, one VS2008 version and one minGW version, which one should I install? I do have Visual Studio 2010 on my computer but that's just a coincidence, I'm not gonna use it since I'm gonna use Qt Creator.

  4. #4
    Join Date
    Apr 2010
    Location
    Russian Federation, Kaluga
    Posts
    20
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qmake not existing

    For working in Qt Creator you need minGW version (VS2008 version for working with qt sdk through visual studio).

  5. #5
    Join Date
    Nov 2011
    Posts
    51
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qmake not existing

    Ok, I will install the minGW version of Qt library then. Will I have to configure and make it, and in that case what options can I use if I want to reduce the size of the final folder as much as possible? Or should it be fine if I just install it?

    By the way, is it possible to have both Qt library minGW and Qt library VS2008 installed at the same time in the same directory, or is that not to recommend?
    Last edited by Yes; 13th November 2011 at 20:48.

  6. #6
    Join Date
    Apr 2010
    Location
    Russian Federation, Kaluga
    Posts
    20
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qmake not existing

    I have both version installed - all works fine =).
    About install optimization for smaller size final folder - I don't know - I installed as it (next->next-next =) )

  7. #7
    Join Date
    Nov 2011
    Posts
    51
    Thanks
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qmake not existing

    So, I have just downloaded Qt library minGW and I'm currently installing it. It needed to have a path to a MinGW installation, so I downloaded and installed MinGW to be able to continue. I also added the bin folder to the PATH variable. However, when I continue the installation of Qt library I get a message box saying


    There is a problem with your MinGW installation:
    The installer could not find a valid
    C:\MinGW\include\w32api.h
    (Only versions with W32API3.13 are supported)
    Do you still want to continue? (Your installation may not work)


    I checked my MinGW installation; there is indeed a w32api.h file in the include folder, but the version is 3.17. How comes this version is not supported? I do not want to look for an older version of MinGW just to get the proper version of this file.

    Edit: I googled the message and found this mail conversation. Apparently, the Qt installer tries to match w32api.h against one version only, not that version or newer. And my conclusion is that although only W32API3.13 is tested with this version of Qt, newer versions will probably also work fine.

    Quote Originally Posted by grin View Post
    I have both version installed - all works fine =).
    About install optimization for smaller size final folder - I don't know - I installed as it (next->next-next =) )
    Okay, seems nice!


    Added after 18 minutes:


    After selecting the qmake.exe that is in the bin folder of Qt library (minGW) in the Qt version option in Qt Creator, I can finally compile and run my program. Thanks!
    Last edited by Yes; 13th November 2011 at 21:22.

  8. #8
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,240
    Thanks
    303
    Thanked 865 Times in 852 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: qmake not existing

    Be aware that there is no restriction on using the Microsoft C++ toolchain within Qt Creator - you do not have to use minGW and the gcc compilers. You need to configure Qt Creator to use the appropriate toolchain kit when you build. I have toolchains installed for several versions of VC++ (2008, 2012, and 2015) as well as minGW/gcc and two Android cross-compilers. I simply choose the kit I want to use when building a particular project.

    You also have the ability to switch among multiple Qt distributions as well.

    The same is true for Visual Studio - I can choose which Qt distribution I use when building a project.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. How to link an existing .exe to a DLL?
    By babygal in forum Qt Programming
    Replies: 23
    Last Post: 27th April 2010, 08:08
  2. adding dll to existing project...
    By aj2903 in forum Qt Programming
    Replies: 1
    Last Post: 1st December 2009, 09:35
  3. Add existing project
    By danesh in forum Qt Programming
    Replies: 12
    Last Post: 23rd April 2009, 19:47
  4. postEvent() to a non-existing receiver
    By Artschi in forum Qt Programming
    Replies: 7
    Last Post: 1st June 2006, 14:44
  5. Installing Qt 4 with existing Qt3
    By Honestmath in forum Installation and Deployment
    Replies: 2
    Last Post: 27th March 2006, 21:00

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.