Qt 4.5 Windows Installation and junction usage

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.