After installing qt-sdk-win-opensource-2009.01.exe, you will find a compilation error when you enable QT-creator to set the QT path. Always prompts that this version is not installed.
When you use qtcreator to build a project, the error "no valid QT version set. Set one in tools/options" is reported.
Solution:
1. Install the qt sdk (assuming the installation path is c: \ QT \)
2. Download tool junction (Http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx)
3. Open cmd cd c :\
4. Create a directory
Mkdir c: \ QT-greenhouse \ trolltech \ code_less_create_more \ troll \
5. Use junction for symbolic links
Junction c: \ QT-greenhouse \ trolltech \ code_less_create_more \ troll \ 4.5.0 C: \ QT \ (Syntax: QT installation directory created by junction)
6. After the installation is complete, go to options again to set the qt4 option. At this time, the system will no longer prompt that the qt4 option is not installed.
7. Select the GIT option and select environment variables. Click form system.
8. Return to the main interface and compile the project. The error "no valid QT version set. Set one in tools/options" is not displayed.
9, but the following message may be prompted:
Cocould not find make command: mingw32-make.exe In the Build Environment
Error while building project T1
When executing build step 'make'
Canceled build.
In System Environment Variables
Create a new qtdir value: C: \ QT
Add c: \ QT \ bin; C: \ QT \ mingw \ bin; C: \ QT \ Lib to path.
Now the problem is completely solved.
The following steps re-compile the QT Library:
1. Enter the QT directory for configure.
Cd c: \ QT
Configure-release-static-fast-Accessibility-no-qt3support-no-STL-no-phonon-no-scripttools-no-OpenSSL-no-OpenGL
Configure-static
2. Run
Mingw32-make
3. Complete finished