Hello!
I have problem with Qt creator. My Qt creator's qmake evaluator cannot read 
enviroment variables. I have this code lines in my project file:

win32:RISDIR = $$system(echo %RIS_DIR%)

include($$RISDIR/src/servis/ris.pri)

When I execute qmake from windows command line, environment variable is 
successfully read and include evaluated, but when i put this *.pro file in Qt 
Creator, it cannot read environment variable. Then I try replace lines:

win32:RISDIR = $$system(echo %RIS_DIR%)

include($$RISDIR/src/servis/ris.pri)

with lines:

win32:RISDIR = C:/ris

include($$RISDIR/src/servis/ris.pri)

and then Qt Creator evaluate include successfully.

Another problem with environment variable is in debugger. When I use debugger 
option "Start and debug external application", the started application also 
cant read environment variables.

Interesting thing is, that in project configuration tab, in Qt Creator sidebar 
menu, successfully read and display all my environment variables including 
mentioned 'RIS_DIR'.

I am using:
* Qt Creator 2.3.0
* Windows 7 Professional
* Qt 4.7.0 with MSVC 2008

Any ideas will be appreciated. Thanks a lot.

Petr
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to