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![]()



Reply With Quote


I have to disapoint you, this won't work. Set all those variables you modified to empty values, then run configure.exe after you have changed the directory name, then cd into qmake directory and run mingw32-make clean and mingw32-make. Afterwards your qmake should understand the new paths.




Bookmarks