Problems on compiling Qt4.8 on Windows 7 x64 with VC2008
Dear All,
I'm trying to compile Qt 4.8.0 with Webkit using VC2008 on Windows 7 x64 with the following configure options with shadow build.
source reside in d:\devel\bin\qt\4.8.0\src
build path in d:\devel\bin\qt\4.8.0\win32-msvc2008
Perl Path has been added to PATH d:\devel\bin\perl\x86
QTDIR has been set to d:\devel\bin\qt\4.8.0\win32-msvc2008
%QTDIR%\bin has been added to PATH
OpenSSL is using Win32OpenSSL-1_0_0g from http://www.slproweb.com/products/Win32OpenSSL.html
cd /d d:\devel\bin\qt\4.8.0\win32-msvc2008
..\src\configure -opensource -shared -release -prefix d:\devel\bin\qt\4.8.0\win32-msvc2008 -platform win32-msvc2008 -fast -openssl -I D:\devel\bin\openssl\x32\include -L d:\devel\bin\openssl\x32\lib\VC -qt-zlib -qt-sql-odbc -plugin-sql-odbc -qt-sql-sqlite -plugin-sql-sqlite -qt-libpng -qt-libjpeg -qt-libmng -qt-libtiff -phonon -phonon-backend -webkit -script -scripttools -declarative -no-dbus -no-qt3support -no-mp -no-ltcg
after an hour or some, I've got the following error.
.
.
.
d:\devel\bin\qt\4.8.0\src\src\3rdparty\webkit\Sour ce\WebCore\platform\DefaultLocalizationStrategy.cp p(327) : error C2001: newline in constant
d:\devel\bin\qt\4.8.0\src\src\3rdparty\webkit\Sour ce\WebCore\platform\DefaultLocalizationStrategy.cp p(327) : fatal error C1057: unexpected end of file in macro
.
.
.
NMAKE : fatal error U1077: 'cl.EXE' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'nmake.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'nmake.exe' : return code '0x2'
Stop.
I've tried to build inside the source path with/without OpenSSL setup, still got the error.
NB: Sometimes will get another error
LINK : fatal error LNK1181: cannot open input file 'tmp\obj\release_shared\SH4Assembler.obj'
NMAKE : fatal error U1077: 'lib.EXE' : return code '0x49d'
Stop.
NMAKE : fatal error U1077: 'nmake.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Can anyone help to solve the issue?
Thanks a lot.
zac
Re: Problems on compiling Qt4.8 on Windows 7 x64 with VC2008
I have exactly the same problem. My platform is Windows XP Professional SP3, Visual studio 2008. My Qt options are:
configure.exe -debug-and-release -opensource -shared -no-ltcg -no-fast -exceptions -qt-sql-sqlite -stl -opengl desktop -platform win32-msvc2008 -qt-zlib -qt-libpng -qt-libmng -qt-libjpeg -qt-libtiff -plugin-manifests -phonon -phonon-backend -multimedia -audio-backend -webkit -script -scripttools -declarative -arch windows -qmake -process -buildkey ba-ba-ba
I've found SH4Assembler.h file in src\3rdparty\webkit\Source\JavaScriptCore\assemble r subfolder. So it might be it could be built without webkit. I'll try and report about result.
Re: Problems on compiling Qt4.8 on Windows 7 x64 with VC2008
Yes, it appears to be as I supposed. Without WebKit I've built 4.8.0 without problems.
Re: Problems on compiling Qt4.8 on Windows 7 x64 with VC2008
Then how nokia have the pre-compiled libraries for download? Does anyone have knowledge of the platform specifications and environment settings for building their pre-compiled libraries with webkit support?
Thanks in advance.
zac
Re: Problems on compiling Qt4.8 on Windows 7 x64 with VC2008
SH4Assembler.obj, same problem with VS 2010 on win 7 64 bit.
Any solution?
Re: Problems on compiling Qt4.8 on Windows 7 x64 with VC2008
Problem solved.
I've reinstalled everything and download the latest source package from nokia and now it is ok. I'm not sure what causing the issue, may be I've used mklink to map a UNC path to a local folder. Also, after detail checking of the documentation, it seems DirectX and Windows Server 2008 SDK are required by phonon which may be referenced by QtWebkit. So I've them installed also.
The following are my latest settings for your reference.
- Windows 7 x64 with SP1
- Visual Studio 2008 Professional with SP1
- Microsoft DirectX SDK 2010 June
- Microsoft Windows Server 2008 Platform SDK
- ActivePerl-5.12.0.1200-MSWin32-x86-292396
- Win32OpenSSL-1_0_0g.exe
To build the library:
call dx_setenv.cmd x86
call vcvars32.bat
set PERLDIR=C:\devel\bin\perl\x32
set OPENSSL=C:\devel\bin\openssl\x32
set PATH=%PERLDIR%\bin;%PATH%
set PATH=%OPENSSL%\bin;%PATH%
set QMAKESPEC=win32-msvc2008
set QTSRC=C:\devel\bin\qt\qt-4.8.0-src
set QTDIR=C:\devel\bin\qt\qt-4.8.0-dev-win32-msvc2008
set PATH=%QTDIR%\bin;%PATH%
set LIB=%QTDIR%\src\3rdparty\webkit\Source\JavaScriptC ore\release;%LIB%
set LIB=%QTDIR%\src\3rdparty\webkit\Source\JavaScriptC ore\debug;%LIB%
set LIB=%LIB%;%QTDIR%\src\3rdparty\webkit\Source\WebCo re\release
set LIB=%LIB%;%QTDIR%\src\3rdparty\webkit\Source\WebCo re\debug
C:\devel\bin\qt\qt-4.8.0-src\configure -confirm-license -opensource -openssl -I C:\devel\bin\openssl\x32\include -L C:\devel\bin\openssl\x32\lib\VC -shared -release -platform win32-msvc2008 -prefix C:\devel\bin\qt\qt-4.8.0-dev-win32-msvc2008 -fast -webkit -script -scripttools -declarative -qt-sql-odbc -plugin-sql-odbc -qt-sql-sqlite -plugin-sql-sqlite -qt-zlib -qt-libpng -qt-libjpeg -qt-libmng -qt-libtiff -phonon -phonon-backend -nomake demos -nomake docs -nomake examples -nomake translations -no-dsp -no-vcproj -no-qt3support -no-mp -no-ltcg
cd /d %QTDIR%\src
nmake
hope this may help others with similar issue.
zac
Re: Problems on compiling Qt4.8 on Windows 7 x64 with VC2008
Quote:
Originally Posted by
LeyS
SH4Assembler.obj, same problem with VS 2010 on win 7 64 bit.
Any solution?
Then how nokia have the pre-compiled libraries for download? Does anyone have knowledge of the platform specifications and environment settings for building their pre-compiled libraries with webkit support?