Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building error when try build qt static from source
Forum Updated to NodeBB v4.3 + New Features

Building error when try build qt static from source

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    h5nc
    wrote on 23 Jul 2014, 08:36 last edited by
    #1

    Hi all,

    I want to build qt 5.3.1 STATIC with MSVC 2013 on windows 7 but I got errors.

    Here are what I did:

    I download qt 5.3.1 source from
    http://download.qt-project.org/official_releases/qt/5.3/5.3.1/single/qt-everywhere-opensource-src-5.3.1.zip

    Prerequirements:
    Perl, python34, ruby, icu directx June2010, Windows SDK7.1a ...

    I run this:
    @
    REM Set up Windows SDK for 64bit
    CALL "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
    set PATH=c:\python34;c:\Develop\Qt\5.3.1\qtbase\bin;c:\Develop\Qt\5.3.1\qtbase\bin;c:\Develop\Qt\5.3.1\gnuwin32\bin;%PATH%
    set INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Include;c:\python34\include;%INCLUDE%
    set QMAKESPEC=win32-msvc2013
    set LIBS=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Lib;%LIBS%
    @

    and configure it as
    @
    configure -developer-build -opensource -nomake examples -nomake tests -static -confirm-license
    @

    all thing looks good but when I run nmake and wait for 10 min, it gives the following error

    @

        cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -Oy- -Gy -GS -Gm- -RTC1 -EHsc
    

    -GR -W4 -wd4100 -wd4127 -wd4189 -wd4239 -wd4244 -wd4245 -wd4275 -wd4512 -wd4702
    /Fd........\lib\libGLESv2d.pdb -DUNICODE -DWIN32 -D_WINDOWS -D_UNICODE -D_CRT
    SECURE_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DWIN32_LEAN_AND_MEAN=1 -D_W
    IN32_WINNT=0x0600 -DWINVER=0x0600 -DANGLE_ENABLE_D3D9 -D_DEBUG -DQT_OPENGL_ES_2

    ANGLE_STATIC -I"." -I".." -I"C:\Develop\Qt\5.3.1\qtbase\src\angle\src..\include
    " -I"......\3rdparty\angle\src" -I"......\3rdparty\angle\include" -I"C:\Prog
    ram Files (x86)\Microsoft DirectX SDK (August 2007)\Include" -I"....\src" -I"..
    ....\3rdparty\angle\src\libGLESv2" -I"........\mkspecs\win32-msvc2010" ...
    ...\3rdparty\angle\src\libGLESv2\renderer\ImageSSE2.cpp -Fo.obj\debug\ImageSSE2
    .obj
    ImageSSE2.cpp
    c:\program files (x86)\microsoft sdks\windows\v7.1a\include\sal_supp.h(57) : war
    ning C4005: “__useHeader”: 宏重定义
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\sal.h(288
    6) : 参见“__useHeader”的前一个定义
    c:\program files (x86)\microsoft sdks\windows\v7.1a\include\specstrings_supp.h(7
    7) : warning C4005: “__on_failure”: 宏重定义
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\sal.h(289
    6) : 参见“__on_failure”的前一个定义
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\sal.h(289
    6) : 参见“__on_failure”的前一个定义
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\objidl.h(11280) : er
    ror C2061: 语法错误: 标识符“__RPC__out_xcount_part”
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\objidl.h(11284) : er
    ror C2061: 语法错误: 标识符“__RPC__in_xcount_full”
    ....
    c:\program files (x86)\windows kits\8.1\include\um\ocidl.h(6628) : error C2061:
    语法错误: 标识符“__RPC__in_xcount”
    c:\program files (x86)\windows kits\8.1\include\um\ocidl.h(6628) : fatal error C
    1003: 错误计数超过 100;正在停止编译
    NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 12.
    0\VC\BIN\amd64\cl.EXE"”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 12.
    0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
    Stop.
    NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
    Stop.
    @

    I googled how to solve the RPC thing and I noticed that I already put windows sdk 7.1a at the first of my INCLUDE environment var.

    Did I miss something?

    1 Reply Last reply
    0

    1/1

    23 Jul 2014, 08:36

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved