PDA

View Full Version : Compiling from source Qt 4.7.3 with win32-msvc2010 in Win7x64



rvc
2nd August 2011, 16:56
Newbie here.

I've followed several tutorials, including this one:
http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/

To compile a 32 bit version of qt 4.7.3 on my windows 7 x64 machine with visual studio 2010.

But I get the following error:

D:\Projects\c++\qt-src-4.7.3>configure -debug-and-release -opensource -platform
win32-msvc2010

This is the Qt for Windows Open Source Edition.

You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) version 2.1
or the GNU General Public License (GPL) version 3.

Type '3' to view the GNU General Public License version 3 (GPLv3).
Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.

Do you accept the terms of the license?
y
Environment:
INCLUDE=
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include

LIB=
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib

PATH=
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework\v3.5
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages
C:\Program Files (x86)\HTML Help Workshop
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance
Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin
C:\Program Files (x86)\AMD APP\bin\x86_64
C:\Program Files (x86)\AMD APP\bin\x86
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static
C:\Program Files\TortoiseSVN\bin
D:\Projects\c++\qt-src-4.7.3\bin
You are licensed to use this software under the terms of the GNU GPL version 3.Y
ou are licensed to use this software under the terms of the Lesser GNU LGPL vers
ion 2.1.
See D:/Projects/c++/qt-src-4.7.33

or D:/Projects/c++/qt-src-4.7.3L

Configuration:
minimal-config
small-config
medium-config
large-config
full-config
build_all
debug
Qt Configuration:
release
debug
zlib
png
accessibility
qt3support
opengl
s60
ipv6
script
scripttools
xmlpatterns
phonon
phonon-backend
multimedia
audio-backend
declarative
native-gestures
svg
minimal-config
small-config
medium-config
large-config
full-config

QMAKESPEC...................win32-msvc2010 (commandline)
Architecture................windows
Maketool....................nmake
Debug symbols...............yes
Link Time Code Generation...no
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................yes
3DNOW support...............yes
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
OpenVG support..............no
OpenSSL support.............no
QtDBus support..............no
QtXmlPatterns support.......yes
Phonon support..............yes
QtMultimedia support........yes
WebKit support..............yes
Declarative support.........yes
Declarative debugging.......yes
QtScript support............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........yes

Third Party Libraries:
ZLIB support............qt
GIF support.............plugin
TIFF support............plugin
JPEG support............plugin
PNG support.............yes
MNG support.............plugin
FreeType support........no

Styles:
Windows.................yes
Windows XP..............yes
Windows Vista...........yes
Plastique...............yes
Cleanlooks..............yes
Motif...................yes
CDE.....................yes
Windows CE..............no
Windows Mobile..........no
S60.....................no

Sql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................plugin (qt)
SQLite2.................no
InterBase...............no

Sources are in..............D:\Projects\c++\qt-src-4.7.3
Build is done in............D:\Projects\c++\qt-src-4.7.3
Install prefix..............D:\Projects\c++\qt-src-4.7.3
Headers installed to........D:\Projects\c++\qt-src-4.7.3\include
Libraries installed to......D:\Projects\c++\qt-src-4.7.3\lib
Plugins installed to........D:\Projects\c++\qt-src-4.7.3\plugins
Imports installed to........D:\Projects\c++\qt-src-4.7.3\imports
Binaries installed to.......D:\Projects\c++\qt-src-4.7.3\bin
Docs installed to...........D:\Projects\c++\qt-src-4.7.3\doc
Data installed to...........D:\Projects\c++\qt-src-4.7.3
Translations installed to...D:\Projects\c++\qt-src-4.7.3\translations
Examples installed to.......D:\Projects\c++\qt-src-4.7.3\examples
Demos installed to..........D:\Projects\c++\qt-src-4.7.3\demos

Creating qmake...

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

Creating makefiles in src...
Generating Visual Studio project files...
execute: File or path is not found (D:\Projects\c++\qt-src-4.7.3\bin\qmake)
Qmake failed, return code -1

Generating Makefiles...
execute: File or path is not found (D:\Projects\c++\qt-src-4.7.3\bin\qmake)
Qmake failed, return code -1


However if I copy the \qmake\ folder to the \bin\ folder, I get this:

....

Sources are in..............D:\Projects\c++\qt-src-4.7.3
Build is done in............D:\Projects\c++\qt-src-4.7.3
Install prefix..............D:\Projects\c++\qt-src-4.7.3
Headers installed to........D:\Projects\c++\qt-src-4.7.3\include
Libraries installed to......D:\Projects\c++\qt-src-4.7.3\lib
Plugins installed to........D:\Projects\c++\qt-src-4.7.3\plugins
Imports installed to........D:\Projects\c++\qt-src-4.7.3\imports
Binaries installed to.......D:\Projects\c++\qt-src-4.7.3\bin
Docs installed to...........D:\Projects\c++\qt-src-4.7.3\doc
Data installed to...........D:\Projects\c++\qt-src-4.7.3
Translations installed to...D:\Projects\c++\qt-src-4.7.3\translations
Examples installed to.......D:\Projects\c++\qt-src-4.7.3\examples
Demos installed to..........D:\Projects\c++\qt-src-4.7.3\demos

Creating qmake...

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

Creating makefiles in src...
Generating Visual Studio project files...
execute: Unknown error
(-nodepend)
(-tp)
(vc)
(-r)
(D:/Projects/c++/qt-src-4.7.3/projects.pro)
(-o)
(D:/Projects/c++/qt-src-4.7.3)
Qmake failed, return code -1

Generating Makefiles...
execute: Unknown error
(-r)
(D:/Projects/c++/qt-src-4.7.3/projects.pro)
(-o)
(D:/Projects/c++/qt-src-4.7.3)
Qmake failed, return code -1

Could anybody help me please?

Thanks in advanced.

rvc
12th August 2011, 14:23
help please :(

rvc
15th August 2011, 12:19
Found the problem.

Apparently I can't use '++' in the path. :(