Results 1 to 4 of 4

Thread: Howcome Qmake can work without having QMAKSEPC defined in the enivronement variable.

  1. #1
    Join Date
    Feb 2013
    Location
    San Diego
    Posts
    37
    Thanks
    14
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Howcome Qmake can work without having QMAKSEPC defined in the enivronement variable.

    Hello,

    I'm running Qt5.0.0 msvc2010 using Qt creator for developping my projects.

    I realized that the QMAKESPEC environement variable in not defined on my system.
    When I type "QMAKESPEC" in the console it returns that it is not recognize, or if I look into System Properties/Advanced/Environement Variables... I cannot find it either.

    I'm able to generate makefiles and to compile my projets with Qt creator though.

    How come qmake is able to find the apropritate qmake.config without QMAKESPEC being defined?...I'm confused.
    If someone can help me to understand this that would be great!

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Howcome Qmake can work without having QMAKSEPC defined in the enivronement variab

    Most probably because your qmake is configured to use a default target in case the variable is not set.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Feb 2013
    Location
    San Diego
    Posts
    37
    Thanks
    14
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Howcome Qmake can work without having QMAKSEPC defined in the enivronement variab

    Yes, but how was the default target defined? How did it get the apropriate qmake.conf file. The standard Qt distribution comes with many of these files.
    Does Qt creator set it for qmake?

    I tried to dertermine what default qmake.conf it uses by doing:
    qmake -query QMAKESPEC
    in the console, and it returns **unknown**. It probably uses another variable name internally.

    Thanks!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Howcome Qmake can work without having QMAKSEPC defined in the enivronement variab

    Creator usually calls qmake and passes the spec info directly however for example on Linux there is a symlink in the mkspecs directory called "default" that points to the predetermined target, e.g. on my system:

    lrwxrwxrwx 1 root root 12 paź 2 13:06 default -> linux-g++-64
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. The following user says thank you to wysota for this useful post:

    Guett_31 (7th February 2013)

Similar Threads

  1. Replies: 10
    Last Post: 6th April 2011, 10:05
  2. Replies: 0
    Last Post: 19th February 2010, 16:33
  3. Get value for variable name defined as string
    By webquinty in forum General Programming
    Replies: 2
    Last Post: 18th November 2009, 10:30
  4. Problem Getting User-Defined Signals/Slots to Work
    By Radiotelephone in forum Newbie
    Replies: 2
    Last Post: 3rd August 2009, 07:14
  5. Qmake variable
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 29th July 2009, 14: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.