Windows XP qt4.8.0 compilation Error

Source: Internet
Author: User
Tags install perl visual studio 2010

Compiler is mingw32-gcc-4.4.0

Perl not found in environment-cannot run syncqt.

Solution: you can either go to into the QT folder and look for a directory Called bin and delete these two files:
Syncqt
Syncqt. bat

Or download and install Perl from ActivePerl * Note once you have installed Perl you must close and reopen the Visual Studio 2010 command prompt, and make sure you select the one that starts the Intel compiler.

From: http://jamiehutton.com/tag/4-8-0/

Building QT 4.8.0 with Intel Compiler

Posted on December 20th, 2011 by Jamie huton

Qt has just released the latest version 4.8.0, if you wowould like to compile this version using an Intel compiler the steps are listed below.

Requirements
  • Visual Studio 2010 or 2008
  • Intel compiler 12.1

I assume you will have these two pieces of software already installed, if not Do install them now
.

Downloading QT 4.8.0to start you will need to download the source code as a zip by going to
Qt download page.

* *** Extract the contents of the zip to anywhere you like, but make sure the length of the path is not too long. otherwise you will get an error randomly throughout your QT build, and it might happen hours after you started!

NMAKE : fatal error U1077:
Building QT

You will now need to go to your start bar and open a program called IA-32 Visual Studio 2010 mode.

This is a special command prompt which has all the variables set for building with Visual Studio 2010 tools using the Intel compiler.

You will now need to change directory to the location of the QT configure.exe. An example of the location of mine is show below.

1 cd C:\qt-4.8.0\

Once you have done that you need to choose a platform to select Win32 with the intel compiler simply type:

1 configure -platform win32-icc

To select a win64 platform with the intel compiler, you will want to open the Intel 64 Visual Studio 2010 MODE Command Prompt instead and run:

1 configure -platform win64-icc

If you want to make a more streamline build you may want to consider some of the following options:

1234567 -no-qt3support       
//Disables the qt 3 support functionality-no-opengl           
// Disables OpenGL functionality-mp                  
// use multiple processors for compiling-ltcg                
// This tells the linker to call the compiler                      // and perform whole program optimization                      // which may improve performance however                      // increase the time to build release builds

Now at this point if the console returns:

Perl not found in environment - cannot run syncqt.

You can either go to into the QT folder and look for a directory Called bin and delete these two files:

syncqtsyncqt.bat

Or download and install Perl from
ActivePerl * Note once you have installed Perl you must close and reopen the Visual Studio 2010 command prompt, and make sure you select the one that starts the Intel compiler.

Once configure is successful the console will return:

QT is now configured for building. Just run nmake.
To reconfigure, run nmake confclean and configure.

Finally to build the QT library type

1 nmake

This will start building the entire of QT using the Intel Compiler which takes a little while, possibly 12-16 hours depending on your machine. However, this is normal I suggest you go to sleep!

Setting Environment Variables

Basically, we are done you now have compiled QT with an Intel compiler. All you need to do is to set your environment variables (qtdir and Path), which
Tell programs where to find QT. If you are on Windows 7, you can use the following command to set qtdir to your installation dir.

1 setx QTDIR c:\Qt-4.8.0

Also add the QT/bin to your path.

You can now install
Visual Studio add-in, and start a QT project.

Enjoy!

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.