2011-08-02 69 views
0

我試着一步2008年編譯的Qt 4.7.3的Windows 64用VS 2008下

步驟與VS到編譯的Qt 4.7.3的Windows 64下:

  1. 啓動開始菜單\微軟的Visual Studio 2008 \ Visual Studio遠程工具\ Visual Studio 2008的64位Win64的命令提示符
  2. 轉到C:\ Qt的\ 4.7.3 \
  3. 鍵入configure
  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的。我編譯了模塊,需要我成功的是什麼。

+0

提供更多信息。編譯錯誤是什麼? – kaliatech

+0

我添加了短日誌。 – Unick

回答

1

不是所有的Qt模塊都可以在VS中輕鬆構建。下面的配置參數已經在過去的工作的人:

configure.exe -platform Win32的msvc2008 -no-webkit的-no聲子 - 無 - 聲子後端-no腳本-no-scripttools -no多媒體-no-qt3support -fast

+0

我編譯Qt 7.4.1沒有任何參數。但我需要編譯腳本和腳本工具。 – Unick