Results 1 to 7 of 7

Thread: Problems on compiling Qt4.8 on Windows 7 x64 with VC2008

  1. #1
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question 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
    zac

  2. #2
    Join Date
    Feb 2012
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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.

  3. #3
    Join Date
    Feb 2012
    Posts
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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.

  4. The following user says thank you to z80 for this useful post:

    zac (10th February 2012)

  5. #4
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 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
    zac

  6. #5
    Join Date
    Feb 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default 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?

  7. #6
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 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
    zac

  8. #7
    Join Date
    Jan 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Problems on compiling Qt4.8 on Windows 7 x64 with VC2008

    Quote Originally Posted by LeyS View Post
    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?

Similar Threads

  1. Replies: 2
    Last Post: 23rd February 2011, 14:37
  2. Problems while compiling QT on Windows with MS VC2008 support
    By csantos in forum Installation and Deployment
    Replies: 2
    Last Post: 11th September 2010, 07:37
  3. deploying QtSql app, Windows, VC2008
    By cyrfer in forum Qt Programming
    Replies: 1
    Last Post: 26th January 2010, 06:40
  4. problems with compiling in qt4.6
    By nataly in forum Qt Programming
    Replies: 0
    Last Post: 14th December 2009, 12:09
  5. Compiling and efficiency problems
    By aarelovich in forum Qt Programming
    Replies: 12
    Last Post: 2nd October 2009, 16:38

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.