RSS
 

QT3 Visual C++ 2005 Express Edition Beta compiling

24

Requirements

Windows 2000 or XP
Microsoft Visual C++ 2005 Express Edition Beta
Platform SDK
Qt-3/Win Free sources

Installing “Microsoft Visual C++ 2005 Express Edition Beta” (MSVC8)

download the ISO image from lab.msdn.microsoft.com/express/maninstall/.
or install it online from lab.msdn.microsoft.com/express/visualc.

Installing the Platform SDK

Download all files (342 MB) from www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
Extract the files as described and run “Setup.exe”: Install the “Core SDK”.
Get the Qt3/Win Free sources
by downloading a Qt-3 source snapshot from the KDE-Cygwin snapshot area.
or from the cvs repository:
first connect to the cvs server

C:\source> cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/kde-cygwin loginenter empty password
then checkout the sources with
C:\source> cvs -z6 -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/kde-cygwin co -r QT_WIN32_3_3_BRANCH qt-3

Compiling Qt with command line tools

Open a cmd shell
Setup your compiler environment
“C:\source>C:\Programme\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat”Setup Qt environment (here sources in C:\source\qt-3, please adjust the path to your needs)
C:\source> set QTDIR=C:\source\qt-3
C:\source> set PATH=%QTDIR%\bin;%PATH%
C:\source> set QMAKESPEC=win32-msvc.netConfigure and build the source
The script first creates link_includes.exe and configure.exe which are needed for bootstrap the build process. link_includes copies all relevant Qt-headers into the include-directory. configure.exe is the replacement for the ./configure-script under Unix/Linux. After that, qmake.exe is build and the compilation gets started.
C:\source> cd C:\source\qt-3
C:\source\qt-3> configure.bat [-fast] [-verbose]configure knows some of the parameters of the x11 release configure script like -fast or -verbose.
For a full list see bin\configure.exe -help.

This should build the whole Qt release. If it breaks you can restart compiling with

C:\source\qt-3> nmake [< target >]for a list of all available targets see the toplevel Makefile

Start Qt applications
C:\source\qt-3> designer
C:\source\qt-3> assistant
C:\source\qt-3> linguist
C:\source\qt-3> cd tutorial\t1
C:\source\qt-3\tutorial\t1> t1

Compiling Qt with the IDE

Setup Qt environment in Arbeitsplatz/Eigenschaften/Umgebungsvariablen (german windows)
QTDIR=C:\source\qt-3
QMAKESPEC=win32-msvc.netand add C:\source\qt-3\bin to the PATH variable
Add the Platform SDK path (e.g. C:\Programme\Microsoft SDK\Include) at the end of the list to the options in
menu: Tools/Options: Projects and Solutions/VC++ Directories/Incude Files.

add also in “/Library Files” the library path (e.g. C:\Programme\Microsoft SDK\Lib)
run the configure.bat until it has builded the moc tool and stop it then
open and compile the C:\sources\qt-3\src\qt_mt.vcproj and qtmain.vcproj with the IDE
use other *.vcproj files

Notes

Do not use spaces in the qt source path, it will produce weired results
incremental link does not work
use static linkage for faster link processes
You don't have to download all the files – it is sufficent to go to http://www.microsoft.com/msdownload/platformsdk/sdkupdate and tell it to install the Core SDK (you have to use IE). So you don't have to fetch all of the 340 MB. Provided of course you trust Microsoft not to transfer whatever from your computer to somewhere else ;-)
The Beta has a Time bomb – it only a works 365 DAYS FROM THE DATE FIRST INSTALLED. This is in the License Agreement (they know why they put it there as nobody reads that – I only did because I wondered whether there actually was a time bomb…)
The eula says:
(b) Time Sensitive Prerelease Code
(i) PORTIONS OF THE SOFTWARE ARE DESIGNED TO CEASE FUNCTIONING ON MAY 1, 2006. OTHER PORTIONS OF THE SOFTWARE ARE DESIGNED TO CEASE FUNCTIONING 365 DAYS FROM THE DATE FIRST INSTALLED. NOTICE OF EXPIRATION WILL NOT BE GIVEN, SO RECIPIENT NEEDS TO PLAN FOR THE EXPIRATION DATE AND REMOVE RECIPIENT’S DATA PRIOR TO SUCH EXPIRATION. This Agreement may terminate prior to expiration of the time-sensitive portions of the SOFTWARE. A later expiration date does not extend the term of this Agreement or Recipient’s license under this Agreement.




相关文章:

 
评论关闭

Posted by mallocfeng in 软件新闻

 

Tags:

Comments are closed.