Results 1 to 6 of 6

Thread: qmake enviroment variables

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2011
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy qmake enviroment variables

    Hey guys,

    I have done following steps :

    - I downloaded "qt-everywhere-opensource-src-4.7.1.zip"
    - I compiled it with mingw with gcc version 4.5.2
    - I successfully compiled my first code.

    - I suddenly wanted to rename the Qt directory to something else. At this step nothing worked !
    - Using online resources I did "qmake -query" and I noticed that if I change the name of Qt installation nothing would work since the internal variables are set to that. I used "qmake -set <variable> <value>" to fix this and I set all variable I saw with "qmake -query" to the new directory (the new name) .

    - I am not yet able to get "qmake" work
    - when I do "qmake -query" I see the old and new environment variables listed.
    - I tried to find out where these variables are saved, but so far nothing found. I guess they are somewhere encoded. in the qmake manual it says these variables are persistent ! so if they are persistent there should be a way to delete/set them.

    To be more precise : "qmake" generates "Makefile" which contains include/lib paths. These paths are set using the environment variables of "qmake". The Include/Lib paths are still pointed to the old paths not the new ones I set ! That's why I could not compile my code again.

    FYI : I could not compile my code that used "fstream" with the executable SDK provided by Qt since there are things broken in their mingw build. so I had/have to compile the Qt again
    Last edited by qtarian; 28th February 2011 at 12:30.

Similar Threads

  1. qmake: how to supply multiple variables via command-line?
    By eyeofhell in forum Qt Programming
    Replies: 1
    Last Post: 6th July 2014, 02:58
  2. Paths & enviroment settings
    By SteveH in forum Installation and Deployment
    Replies: 4
    Last Post: 23rd November 2010, 18:09
  3. Replies: 2
    Last Post: 25th June 2009, 19:47
  4. Order of qmake variables
    By babu198649 in forum Newbie
    Replies: 3
    Last Post: 29th June 2008, 09:02
  5. Replies: 3
    Last Post: 6th February 2008, 12:53

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.