Не получается собрать qt-win-commercial-3.3.3 с Visual Studio 2008 SP1.
Среда:
C:\Program Files\Microsoft SDKs\Windows\v7.1 (WinSDK 7.1)
C:\WinDDK\7600.16385.1 (WDK 7.1)
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin (Visual Studio 2008 SP1 - trial 90 дней полная версия)
Windows XP SP3 ENG
0. В переменных окружения указаны:
LIB: C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib
INCLUDE: C:\Program Files\Microsoft SDKs\Windows\v7.1\Include
1. Запускаю qt-win-commercial-3.3.3.exe.
2. На 4 шаге выбираю:
Путь установки: C:\Qt\3.3.3
Skip Buid Step - ставлю галочку
Compiller Options - MS VC++.NET (aka 2008 aka 7.1)
Integrate with IDE - снимаю галочку.
3. Согласно советам этого форума, добавляю запуск bat-файла переменных окружения в файл
C:\Qt\3.3.3\build.bat
Было по умолчанию:
C:
cd %QTDIR%
C:\Qt\3.3.3\bin\configure.exe -redo
nmake.exe
Стало:
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
set QTDIR=C:\Qt\3.3.3
set QMAKESPEC=win32-msvc2008
set Path=%Path%;C:\Qt\3.3.3\bin
cd %QTDIR%
C:\Qt\3.3.3\bin\configure.exe -redo
nmake.exe
4. Копирую папку
C:\Qt\3.3.3\mkspecs\win32-msvc.net
в
C:\Qt\3.3.3\mkspecs\win32-msvc2008
5. Запускаю в консоли C:\Qt\3.3.3\build.bat
Имею:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Qt\3.3.3>build.bat
C:\Qt\3.3.3>call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.b
at"
C:\Qt\3.3.3>"C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32
.bat"
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Qt\3.3.3>set QTDIR=C:\Qt\3.3.3
C:\Qt\3.3.3>set QMAKESPEC=win32-msvc2008
C:\Qt\3.3.3>set Path=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:
\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Vis
ual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\
Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 9.0\
VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\WINDOWS\syste
m32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Visual Studio
9.0\VC\bin;;C:\Qt\3.3.3\bin
C:\Qt\3.3.3>cd C:\Qt\3.3.3
C:\Qt\3.3.3>C:\Qt\3.3.3\bin\configure.exe -redo
QMAKESPEC...................win32-msvc2008
Maketool....................make
Environment:
INCLUDE=
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include
LIB=
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib
C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib
PATH=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools
C:\WINDOWS\Microsoft.NET\Framework\v3.5
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
C:\Qt\3.3.3\bin
Configuration:
nocrosscompiler
canvas
dialogs
iconview
kernel
network
opengl
styles
table
tools
widgets
workspace
xml
minimal-config
small-config
medium-config
large-config
full-config
release
thread
accessibility
no-gif
zlib
jpeg
png
bigcodecs
no-tablet
Debug symbols...............no
Thread support..............yes
Accessibility support.......yes
Big Textcodecs..............yes
Tablet support..............no
STL support.................no
Additional exports..........no
Exception support...........no
RTTI support................no
OpenGL support..............yes
Image formats:
GIF support.............no
MNG support.............plugin
JPEG support............qt
PNG support.............qt
Styles:
Windows.................yes
Windows XP..............no
Motif...................plugin
Platinum................plugin
MotifPlus...............plugin
CDE.....................plugin
SGI.....................plugin
Sql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................no
Interbase...............no
Sources are in..............C:\Qt\3.3.3
Install prefix..............C:\Qt\3.3.3
Headers installed to........C:\Qt\3.3.3\include
Libraries installed to......C:\Qt\3.3.3\lib
Plugins installed to........C:\Qt\3.3.3\plugins
Binaries installed to.......C:\Qt\3.3.3\bin
Docs installed to...........C:\Qt\3.3.3\doc
Data installed to...........C:\Qt\3.3.3
Translations installed to...C:\Qt\3.3.3\translations
Creating qmake...
'make' is not recognized as an internal or external command,
operable program or batch file.
Building qmake failed, return code 1
C:\Qt\3.3.3>nmake.exe
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
makefile(5) : fatal error U1023: syntax error in expression
Stop.
C:\Qt\3.3.3>