Compiling qt from git and errors



  • i use MSVC 2012 update 3 and win 8.1 64
    i use GitExtension to clone qt from git (release) then update/sync all submodules
    i use ms cmd from SYSWOW64
    run vsvarsall.bat x86 from vs2012 dir then run configure in qt dir
    then compile it with nmake.

    env and path (maybe useful)
    @
    Running configuration tests...
    Environment:
    INCLUDE=
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE
    C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE
    C:\Program Files (x86)\Windows Kits\8.0\include\shared
    C:\Program Files (x86)\Windows Kits\8.0\include\um
    C:\Program Files (x86)\Windows Kits\8.0\include\winrt

    LIB=
      C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\LIB
      C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB
      C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86
    
    PATH=
      C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow
      C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\
      C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSTSDB\Deploy
      C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\
      C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN
      C:\Program Files (x86)\Microsoft Visual Studio 11.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 11.0\VC\VCPackages
      C:\Program Files (x86)\HTML Help Workshop
      C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Performance Tools
      C:\Program Files (x86)\Windows Kits\8.0\bin\x86
      C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
      C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
      C:\Program Files\Python27\
      C:\Program Files\Python27\Scripts
      C:\Perl64\site\bin
      C:\Perl64\bin
      C:\Windows
      C:\Windows\System32
      C:\WINDOWS\system32
      C:\WINDOWS
      C:\WINDOWS\System32\Wbem
      C:\WINDOWS\System32\WindowsPowerShell\v1.0\
      C:\Qt\qtcreator-2.8.1\bin
      C:\Perl64\GnuWin32\bin
      C:\xampp\php
      C:\xampp\apache\bin
      C:\xampp\mysql\bin
      C:\Program Files\AMD\CodeAnalyst\bin
      C:\Program Files\Intel\WiFi\bin
      C:\Program Files\Java\jdk1.7.0_40\bin
      C:\Program Files\Java\jdk1.7.0_40\jre\bin
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\libnvvp\
      C:\Program Files\Microsoft\Web Platform Installer\
      C:\Program Files\Microsoft SQL Server\110\DTS\Binn\
      C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
      C:\Program Files (x86)\AMD APP\bin\x86_6
      C:\Program Files (x86)\Git\cmd
      C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86
      C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64
      C:\Program Files (x86)\KDiff3\bin
      C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin
      C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\
      C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\
      C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\
      C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\
      C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\
      C:\Program Files (x86)\NVIDIA Corporation\Cg\bi
      C:\Program Files (x86)\NVIDIA Corporation\Cg\bin.x64
      C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
      C:\Program Files (x86)\CMake 2.8\bin
      C:\Qt\GnuWin32\bin
      C:\Program Files (x86)\QuickTime\QTSystem\
      C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\
      %APPDATA%\Python\Scripts
      C:\Program Files\Intel\WiFi\bin\
      C:\Program Files\Common Files\Intel\WirelessCommon\
    

    @

    now the errors generated

    running
    @configure -platform win32-msvc2012 -opensource -confirm-license@

    would give me error

    @
    C:\Qt\qt5\qtbase\lib\QtXmlPatternsSDKd.dll : fatal error LNK1120: 32 unresolved
    externals
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
    \VC\BIN\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
    \VC\BIN\nmake.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    @

    changed to
    @configure -platform win32-msvc2012 -opensource -confirm-license -skip qtwebkit -skip qtxmlpatterns@

    give me error
    @
    NMAKE : fatal error U1073: don't know how to make 'qml\qqmlabstracturlinterceptor.h'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
    \VC\BIN\nmake.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    @

    what should i remove next?, thanks before.


  • Moderators

    QtQuick module depends on QtXmlPatterns. It should be a soft dependency, but that's not completely resolved yet.



  • [quote author="sierdzio" date="1384710975"]QtQuick module depends on QtXmlPatterns. It should be a soft dependency, but that's not completely resolved yet.[/quote]

    managed to compile it with -skip qtquick1
    thanks


Log in to reply
 

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