我的环境是:
操作系统 windows server 2008 sp1,英文版;
visual studio 2008中文版,未打sp1补丁,net framework 3.5 sp1;
第一次安装时,configure -debug-and-release -static正常,在nmake最后出现错误停止,提示信息如下:
qrc_WebKit.cpp
qrc_WebCore.cpp
lib /NOLOGO /OUT:..\..\..\..\lib\QtWebKit.lib @C:\Users\ADMINI~1\AppData\Local\Temp\nm8749.tmp
QtWebKit_pch.obj : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能
..\..\..\..\lib\QtWebKit.lib : fatal error LNK1106: 文件无效或磁盘已满: 无法查找到 0x6098ED13
NMAKE : fatal error U1077: “"D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\lib.EXE"”: 返回代码“0x452”
Stop.
NMAKE : fatal error U1077: “"D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
Stop.
在中间曾经出现过一些警告,如下:
D:\qt-win\4.5.0\src\3rdparty\webkit\JavaScriptCore\wtf/ListHashSet.h(471): 编译类 模板 成员函数“std::pair<_Ty1,
_Ty2> WTF::ListHashSet<ValueArg>::add(const WebCore::KURL &)”时
with
[
_Ty1=WTF::ListHashSetIterator<WebCore::KURL,WTF::DefaultHash<WebCore::KURL>::Hash>,
_Ty2=bool,
ValueArg=WebCore::KURL
]
d:\qt-win\4.5.0\src\3rdparty\webkit\webcore\dom\Node.h(570): 参见对正在编译的类 模板 实例化“WTF::ListHashSet<ValueAr
g>”的引用
with
[
ValueArg=WebCore::KURL
]
JSSVGComponentTransferFunctionElement.cpp
generated\JSSVGComponentTransferFunctionElement.cpp(151) : warning C4291: “void *JSC::JSCell::operator new(siz
e_t,JSC::ExecState *)”: 未找到匹配的删除运算符;如果初始化引发异常,则不会释放内存
d:\qt-win\4.5.0\src\3rdparty\webkit\javascriptcore\runtime\JSCell.h(83) : 参见“JSC::JSCell::operator new
”的声明
d:\qt-win\4.5.0\src\3rdparty\webkit\webcore\bindings\js\JSDOMGlobalObject.h(105) : warning C4291: “void *JSC::
JSCell::operator new(size_t,JSC::ExecState *)”: 未找到匹配的删除运算符;如果初始化引发异常,则不会释放内存
d:\qt-win\4.5.0\src\3rdparty\webkit\javascriptcore\runtime\JSCell.h(83) : 参见“JSC::JSCell::operator new
”的声明
generated\JSSVGComponentTransferFunctionElement.cpp(214): 参见对正在编译的函数 模板 实例化“JSC::JSObject *WebCore::ge
tDOMConstructor<WebCore::JSSVGComponentTransferFunctionElementConstructor>(JSC::ExecState *)”的引用
D:\qt-win\4.5.0\src\3rdparty\webkit\JavaScriptCore\wtf/ListHashSet.h(354) : warning C4291: “void *WTF::ListHas
hSetNode<ValueArg>::operator new(size_t,WTF::ListHashSetNodeAllocator<ValueArg> *)”: 未找到匹配的删除运算符;如果初始化引发异常,则不会
释放内存
with
[
ValueArg=WebCore::KURL
]
D:\qt-win\4.5.0\src\3rdparty\webkit\JavaScriptCore\wtf/ListHashSet.h(204) : 参见“WTF::ListHashSetNode<Va
lueArg>::operator new”的声明
with
[
ValueArg=WebCore::KURL
]
D:\qt-win\4.5.0\src\3rdparty\webkit\JavaScriptCore\wtf/ListHashSet.h(353): 编译类 模板 成员函数“void WTF::ListH
ashSetTranslator<ValueType,HashFunctions>::translate(WTF::ListHashSetNode<ValueArg> *&,const ValueType &,WTF::
ListHashSetNodeAllocator<ValueArg> *)”时
with
[
ValueType=WebCore::KURL,
HashFunctions=WebCore::KURLHash,
ValueArg=WebCore::KURL
]
d:\qt-win\4.5.0\src\3rdparty\webkit\javascriptcore\wtf\HashTable.h(634): 参见对正在编译的类 模板 实例化“WTF::ListHas
hSetTranslator<ValueType,HashFunctions>”的引用
with
[
ValueType=WebCore::KURL,
HashFunctions=WebCore::KURLHash
]
D:\qt-win\4.5.0\src\3rdparty\webkit\JavaScriptCore\wtf/ListHashSet.h(473): 参见对正在编译的函数 模板 实例化“std::pair
<_Ty1,_Ty2> WTF::HashTable<Key,Value,Extractor,HashFunctions,Traits,KeyTraits>::add<WebCore::KURL,WTF::ListHas
hSetNodeAllocator<ValueArg>*,Translator>(const T &,const Extra &)”的引用
with
[
_Ty1=WTF::HashTableIterator<WTF::ListHashSetNode<WebCore::KURL> *,WTF::ListHashSetNode<WebCore::KU
RL> *,WTF::IdentityExtractor<WTF::ListHashSetNode<WebCore::KURL> *>,WTF::ListHashSetNodeHashFunctions<WebCore:
:KURL,WTF::DefaultHash<WebCore::KURL>::Hash>,WTF::HashTraits<WTF::ListHashSetNode<WebCore::KURL> *>,WTF::HashT
raits<WTF::ListHashSetNode<WebCore::KURL> *>>,
_Ty2=bool,
Key=WTF::ListHashSetNode<WebCore::KURL> *,
Value=WTF::ListHashSetNode<WebCore::KURL> *,
Extractor=WTF::IdentityExtractor<WTF::ListHashSetNode<WebCore::KURL> *>,
HashFunctions=WTF::ListHashSetNodeHashFunctions<WebCore::KURL,WTF::DefaultHash<WebCore::KURL>::Has
h>,
Traits=WTF::HashTraits<WTF::ListHashSetNode<WebCore::KURL> *>,
KeyTraits=WTF::HashTraits<WTF::ListHashSetNode<WebCore::KURL> *>,
ValueArg=WebCore::KURL,
T=WebCore::KURL,
Extra=WTF::ListHashSetNodeAllocator<WebCore::KURL> *
]
D:\qt-win\4.5.0\src\3rdparty\webkit\JavaScriptCore\wtf/ListHashSet.h(471): 编译类 模板 成员函数“std::pair<_Ty1,
_Ty2> WTF::ListHashSet<ValueArg>::add(const WebCore::KURL &)”时
with
[
_Ty1=WTF::ListHashSetIterator<WebCore::KURL,WTF::DefaultHash<WebCore::KURL>::Hash>,
_Ty2=bool,
ValueArg=WebCore::KURL
]
d:\qt-win\4.5.0\src\3rdparty\webkit\webcore\dom\Node.h(570): 参见对正在编译的类 模板 实例化“WTF::ListHashSet<ValueAr
g>”的引用
with
[
ValueArg=WebCore::KURL
]
等,大都类似这些信息;
==================================================================================================
由于nmake出现问题停止,未明确原因,只好重新再安装;
运行nmake confclean后,configure -debug-and-release -static命令就出现如下提示,无法继续:
D:\qt-win\4.5.0>configure -debug-and-release -static
This is the Qt for Windows Open Source Edition.
You are licensed to use this software under the terms of
the GNU Lesser Public License (LGPL) version 2.1 or GNU General Public License (GPL) version 3.
Type 'L' to view the GNU Lesser General Public License version 2.1 (LGPLv2.1).
Type '3' to view the GNU General Public License version 3 (GPLv3).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.
Do you accept the terms of the license?
y
Setting Direct3D to NO, since the proper Direct3D SDK was not detected.
Make sure you have the Direct3D SDK installed, and that you have run
the <path to SDK>\Utilities\Bin\dx_setenv.cmd script.
The D3D SDK library path *needs* to appear before the Platform SDK library
path in your LIB environment variable.
All the required DirectShow/Direct3D files couldn't be found.
Make sure you have either the platform SDK AND the DirectX SDK or the Windows SDK installed.
If you have the DirectX SDK installed, please make sure that you have run the <path to SDK>\SetEnv.Cmd script.
Environment:
INCLUDE=
Unset
LIB=
Unset
PATH=
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
D:\qt-win\4.5.0\bin
You are licensed to use this software under the terms of the GNU LGPL version 2.1 or the GNU GPL version 3.
See D:/qt-win/4.5.0/LICENSE.LGPL
or D:/qt-win/4.5.0/LICENSE.GPL3
Configuration:
dist-config
large-config
medium-config
minimal-config
small-config
full-config
build_all
debug
Qt Configuration:
release
debug
zlib
gif
png
accessibility
qt3support
opengl
ipv6
scripttools
xmlpatterns
webkit
svg
minimal-config
small-config
medium-config
large-config
full-config
QMAKESPEC...................win32-msvc2008 (env)
Architecture................windows
Maketool....................nmake
Debug symbols...............yes
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................yes
3DNOW support...............no
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
Direct3D support............no
OpenSSL support.............no
QtDBus support..............no
QtXmlPatterns support.......yes
Phonon support..............no
WebKit support..............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........yes
Third Party Libraries:
ZLIB support............qt
GIF support.............yes
TIFF support............plugin
JPEG support............plugin
PNG support.............qt
MNG support.............plugin
Styles:
Windows.................yes
Windows XP..............no
Windows Vista...........no
Plastique...............yes
Cleanlooks..............yes
Motif...................yes
CDE.....................yes
Windows CE..............no
Windows Mobile..........no
Sql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................plugin (qt)
SQLite2.................no
InterBase...............no
Sources are in..............D:\qt-win\4.5.0
Build is done in............D:\qt-win\4.5.0
Install prefix..............D:\qt-win\4.5.0
Headers installed to........D:\qt-win\4.5.0\include
Libraries installed to......D:\qt-win\4.5.0\lib
Plugins installed to........D:\qt-win\4.5.0\plugins
Binaries installed to.......D:\qt-win\4.5.0\bin
Docs installed to...........D:\qt-win\4.5.0\doc
Data installed to...........D:\qt-win\4.5.0
Translations installed to...D:\qt-win\4.5.0\translations
Examples installed to.......D:\qt-win\4.5.0\examples
Demos installed to..........D:\qt-win\4.5.0\demos
WARNING: Using static linking will disable the use of plugins.
Make sure you compile ALL needed modules into the library.
Creating qmake...
execute: File or path is not found (nmake)
execute: File or path is not found (nmake)
Cleaning qmake failed, return code -1
D:\qt-win\4.5.0>nmake confclean
'nmake' is not recognized as an internal or external command,
operable program or batch file.
=======================================================
恳请高手指教,在下感激不尽!!