[Solved] Can't build Qt 4.8.2 msvc2010 x64 version



  • Hello,

    Qt Sdk was installed on the following location: c:\Dev\SDKs\QtSdk
    The location for the Qt 4.8.2 source files: c:\Dev\SDKs\QtSdk\Desktop\Qt\4.8.2\Sources

    I tried to build x64 version with msvc 2010
    Build path: c:\Dev\SDKs\QtSdk\Desktop\Qt\4.8.2\msvc2010x64

    Configuration parameters: configure.exe -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -debug-and-release -opensource -mp -platform win32-msvc2010

    As result i have the following errors:
    @ cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -MP -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..........\include\QtCore" -I"..........\include\QtNetwork" -I"..........\include\QtGui" -I"..........\include\QtDeclarative" -I"..........\include" -I"c:\Dev\SDKs\QtSDK\Desktop\Qt\4.8.2\sources\examples\helper\qmlapplicationviewer" -I"..........\include\ActiveQt" -I"tmp\moc\release_shared" -I"c:\Dev\SDKs\QtSDK\Desktop\Qt\4.8.2\sources\examples\declarative\cppextensions\qgraphicslayouts\qgraphicsgridlayout" -I"." -I"..........\mkspecs\win32-msvc2010" -Fotmp\obj\release_shared\ @c:\Temp\nm441.tmp
    moc_gridlayout.cpp
    moc_qmlapplicationviewer.cpp
    tmp\moc\release_shared\moc_gridlayout.cpp(10) : fatal error C1083: Cannot open include file: '../../../../../../../../../sources/examples/declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/gridlayout.h': No such file or directory
    NMAKE : fatal error U1077: 'C:\Dev\IDEs\VS_2010\VC\BIN\amd64\cl.EXE' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'C:\Dev\IDEs\VS_2010\VC\BIN\amd64\nmake.exe' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'C:\Dev\IDEs\VS_2010\VC\BIN\amd64\nmake.exe' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'C:\Dev\IDEs\VS_2010\VC\BIN\amd64\nmake.exe' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'C:\Dev\IDEs\VS_2010\VC\BIN\amd64\nmake.exe' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'C:\Dev\IDEs\VS_2010\VC\BIN\amd64\nmake.exe' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'C:\Dev\IDEs\VS_2010\VC\BIN\amd64\nmake.exe' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'C:\Dev\IDEs\VS_2010\VC\BIN\amd64\nmake.exe' : return code '0x2'
    Stop.

    c:\Dev\SDKs\QtSDK\Desktop\Qt\4.8.2\msvc2010x64>@

    As i know it is the problem with the very long relative path.
    Is it possible to fix it without any changes with the build path?

    Does anyone have Qt 4.8.2 x64 build ?

    Thank you,
    Alex.



  • Hi Alex,

    I did build x64 4.8.2 Qt last night but with slightly different configuration:
    @configure -debug-and-release -opensource -platform win32-msvc2010@

    I'll give a try with your flags over the weekend.

    The one thing I might have done differently is that I got the zipped source code from the download page.

    -Damien



  • Hi Damien,

    Sounds great. Is it possible to get your version of Qt 4.8.2 x64?

    Thank you,
    Alex.



  • It's not exactly that I wouldn't like to, but the size of the Qt folder after compilation is about 10GB :S

    So unless someone knows a trick how to cleanup the project while keeping the binaries there that's gona be difficult. Someone please?

    I could send you the DLLs but you'd also need the lib files, debugging information files, etc... to debug and link properly; that gets quite large too.

    Before we consider any transfer could you try to recompile with a clean version of the source from the download page.

    If you want to speedup the compilation you could use JOM as I saw you were using nmake.

    I followed "that post":http://www.holoborodko.com/pavel/2011/02/01/how-to-compile-qt-4-7-with-visual-studio-2010/, it was very helpful and the compilation didn't take too long on my office PC's i7... just couple of hours :)

    Let us know how it goes.

    Cheers,
    -Damien



  • Sure, i will try it
    thanks!



  • Thanks again,
    The library was successfully compiled with the following configuration:
    configure -debug-and-release -opensource -platform win32-msvc2010



  • BTW, as i know you can use jom confclean to reduce folder dramatically
    Do not forget to make a backup just in case :)



  • Very nice!

    Thanks a lot for the tip, I'll give it a try ASAP :-)



  • Hi Damien,
    I've just tried to reduce folder size with the confclean command.
    qmake.exe does not work correctly after that, so please do not try to do it
    Thank you,
    Alex.

    PS Short update
    nmake (jom) clean works fine



  • I have a simple brain, and my solution was simple, delete the source, and build upon a new one.



  • Hi RainBoy,

    I did not have time to test the compiled but now that you said it, I gave it a shot.

    I created a new project and did get an error:
    @1> moc_testqmake.cpp
    1>C:\Qt\4.8.2-icc\include\QtCore/qconfig.h(1): error : cannot open source file "../../src/corelib/global/qconfig.h"
    1> #include "../../src/corelib/global/qconfig.h"@

    My quick fix was to run another configure after cleaning so
    @configure -nomake examples -nomake demos -opensource -platform win32-msvc2010
    jom
    jom confclean
    configure -nomake examples -nomake demos -opensource -platform win32-msvc2010@

    I'll try the jom clean when I get a chance to run another compilation :)

    It would then changes my batch file to
    @configure -nomake examples -nomake demos -opensource -platform win32-msvc2010
    jom
    jom clean@

    Anyways it's been great learning! Thanks for the help!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.