【问题标题】:Compilation Qt 4.7.3 under Windows x64 with VS 2008在 Windows x64 下用 VS 2008 编译 Qt 4.7.3
【发布时间】:2011-08-02 12:00:52
【问题描述】:

我尝试在 Windows x64 下使用 VS 2008 编译 Qt 4.7.3。

一步一步:

  1. 开始开始菜单\Microsoft Visual Studio 2008\Visual Studio 远程工具\Visual Studio 2008 x64 Win64 命令提示符
  2. 转到 C:\Qt\4.7.3\
  3. 键入配置
  4. 输入 nmake。

但我有编译错误:

qnetworkdiskcache.cpp
c:\qt\4.7.3\include\qtcore\private\../../../src/corelib/io/qiodevice_p.h(170) :
warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss
 of data
c:\qt\4.7.3\include\qtcore\private\../../../src/corelib/io/qiodevice_p.h(170) :
warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss
 of data
c:\qt\4.7.3\include\qtcore\private\../../../src/corelib/io/qiodevice_p.h(170) :
warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss
 of data
access\qnetworkrequest.cpp(997) : warning C4996: 'sscanf': This function or vari
able may be unsafe. Consider using sscanf_s instead. To disable deprecation, use
 _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(32
4) : see declaration of 'sscanf'
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(99) : e
rror C2079: '_r' uses undefined class 'QSslConfiguration'
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(99) : e
rror C3861: 'sslConfigurationImplementation': identifier not found
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(100) :
error C2582: 'operator =' function is unavailable in 'QSslConfiguration'
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(101) :
error C3861: 'setSslConfigurationImplementation': identifier not found
c:\Qt\4.7.3\src\network\tmp\moc\debug_shared\moc_qnetworkreplyimpl_p.cpp(102) :
error C3861: 'ignoreSslErrorsImplementation': identifier not found
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

我使用 nmake /I 编译 Qt。我编译了模块,需要我成功。

【问题讨论】:

  • 提供更多信息。什么是编译错误?

标签: visual-c++ qt4 64-bit


【解决方案1】:

并非所有 Qt 模块都可以在 VS 中轻松构建。以下配置参数过去曾为人们工作过:

configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-multimedia -no-qt3support -fast

【讨论】:

  • 我在没有任何参数的情况下编译了 Qt 7.4.1。但是我需要编译脚本和脚本工具。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-07-02
  • 2011-08-09
  • 2011-03-26
  • 1970-01-01
  • 2011-02-14
  • 2014-12-17
相关资源
最近更新 更多