构建Qt 5.0.0 win7 msvc2010-64 -icu时出错

时间:2015-05-28 06:53:56

标签: c++ visual-studio-2010 qt windows-7 build

我正在从msvc2010-64位的源码构建Qt 5.0.0,icu& opengl桌面。但同样的错误一直在重复:

tools\qcollator.cpp(47) : fatal error C1083: Cannot open include file: ‘unicode/
utypes.h': No such file or directory

tools\qstring.cpp(3841) : warning C4309: ‘argument’ : truncation of constant value
tools\qstring.cpp(3842) : warning C4309: ‘argument’ : truncation of constant value
qstringbuilder.cpp
Generating Code…
jom: G:\Qt\qt-everywhere-opensource-src-5.0.0\qtbase\src\corelib\Makefile [debug-all] Error 2
jom: G:\Qt\qt-everywhere-opensource-src-5.0.0\qtbase\src\Makefile [sub-corelib-make_first] Error 2
jom: G:\Qt\qt-everywhere-opensource-src-5.0.0\qtbase\Makefile [sub-src-make_first] Error 2
jom: G:\Qt\qt-everywhere-opensource-src-5.0.0\Makefile [module-qtbase-make_first] Error 2

我想知道无法找到utypes.h文件的原因。由于我已将icu\includeicu\bin64添加到路径中,因此无法弄清楚它仍然失败的原因。

安装的:

  1. Active Perl 520
  2. ICU 4c-49_1_2-win64msvc2010
  3. Python 278
  4. JOM
  5. 我的配置:

    configure -debug-and-release -opensource -icu -opengl desktop
    

    非常感谢您的帮助!!

    赖安

1 个答案:

答案 0 :(得分:0)

通过添加-I %ICU%\include -L %ICU%\lib64

解决
configure -debug-and-release -opensource -icu -opengl desktop -I %ICU%\include -L %ICU%\lib64