If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Welcome to Qt Centre.

Qt Centre is a community site devoted to programming in C++ using the Qt framework. Over 90 percent of questions asked here gets answered. If you are looking for information about Qt related issue — register and post your question.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Building Qt 4.6 on Windows (msvs 2008)

Hi all.
I decided to look at kinetik, so I downloaded it. It needs Qt 4.6 (there is qcontiguouscache.h included), so I downloaded it also. I have allready Qt 4.5.1 installed (qt creator, and integrated into vs2008). When I run configure.exe from visual studio command promt I get error. This is the part of log

Why it says sources are in D:\Qt\qt-qt-4.6-stable? They should be in D:\Qt\qt-qt-4.6-stable\src, aren't they? What path need I to set to %INCLUDE%? I think qstringlist.h must be from 4.6 package, not from 4.5.1. It located in D:\Qt\qt-qt-4.6-stable\src\corelib\tools - is it means i should add this path to %INCLUDE%? '
There is a qt patch for windows on sourceforge, but there is no patch for 4.6 version

Re: Building Qt 4.6 on Windows (msvs 2008)

1. I tried with many parameters. -static and shared, setting platform to win32-msvc and using default (QMAKESPEC not settted, but when run configure from Visual Studio command promt it does not ask platform). I run configure from D:\Qt\qt-qt-4.6-stable
When run from another directory it says "Error: Creating a shadow build of Qt requires perl to be in the PATH environment". I dont want to install ActivePerl, I think it is not nessesary.
2. Also, I tried with and without setting %QTDIR% to D:\Qt\qt-qt-4.6-stable. No result.

I thought problem is in my system or studio environment, but 4.5.1 compiled fine. I compiled the same source (4.6 stable) on my openSuse 11 - it also configured and compiled fine.

Re: Building Qt 4.6 on Windows (msvs 2008)

Done, I' have unsetted all Qt-specific variables. I cannot do confclean -
fatal error U1073: don't know how to make 'confclean' so, for clean resuts, I deleted folder, and unpacked tarball again.
The same results. Any more ideas?

Re: Building Qt 4.6 on Windows (msvs 2008)

Perl used for shadow build only. The problem is not in perl absense, it is obviously. The problem is that configure.exe works incorrect, so nmake cannot find sources to build qmake. I think 4.6 needs a windows patch, but there is no patch for this version yet.

Re: Building Qt 4.6 on Windows (msvs 2008)

countercraft, thank you very much. I installed ActivePerl, it seems build started. I believe it will ends in a few (or not few hours. I didn't thought problem was in perl, because configure says nothing about perl, and other Qt versions did not required perl. Did they changed a build process?

Re: Building Qt 4.6 on Windows (msvs 2008)

Perl is necessary for running the syncqt script, it's in the bin folder. This script searches the headers in the src folder and create them on the include folder. I believe that when the trolls release a new version of Qt, they already did run the syncqt script, and release the tarballs with the headers in the right place. But we are getting it from GIT... so I believe that we need to run syncqt by ourselves.