最近在尝试编译webkit,有3中ide可以选。
1. visual c++ 2005 express edition
2. visual studio 2005
3. visual studio 2010
可是我三种都编译不成功!
前两种就是照着http://www.webkit.org/building/tools.html做的
有错误:
$ ./Tools/Scripts/build-webkit
WebKitSupportLibrary is up-to-date.
Building results into: /home/Moon/WebKit-r128959/WebKitBuild
WEBKITOUTPUTDIR is set to: D:\Softwares\Cygwin\home\Moon\WebKit-r128959\WebKitBuild
WEBKITLIBRARIESDIR is set to: D:\Softwares\Cygwin\home\Moon\WebKit-r128959\WebKitLibraries\win
/cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/IDE/VCExpress.exe win\WebKit.vcproj\WebKit.sln /build Release
Traceback (most recent call last):
File "Tools/Scripts/print-vse-failure-logs", line 113, in <module>
PrintVisualStudioExpressLogs().main()
File "Tools/Scripts/print-vse-failure-logs", line 102, in main
build_log_paths = self._sort_buildlogs(self._find_buildlogs(self._obj_directory()))
File "Tools/Scripts/print-vse-failure-logs", line 67, in _sort_buildlogs
build_order = self._build_order()
File "Tools/Scripts/print-vse-failure-logs", line 60, in _build_order
sln_path = os.path.join(scm.find_checkout_root(), "WebKit", "win", "WebKit.vcproj", "WebKit.sln")
AttributeError: 'module' object has no attribute 'find_checkout_root'
===== BUILD FAILED ======
Please ensure you have run Tools/Scripts/update-webkit to install dependencies.
You can view build errors by checking the BuildLog.htm files located at:
/home/Moon/WebKit-r128959/WebKitBuild/obj/<project>/<config>.
我又照着http://blog.ashodnakashian.com/2012/01/building-webkit-on-windows-7-with-vs2010/ 尝试在win7+vs2010的环境下编译。可是遇到错误:
Build started 2012/9/24 18:28:14.
InitializeBuildStatus:
Creating "C:\WebKit-r128959\WebKitBuild\Debug\obj\MiniBrowserLauncher\MiniBrow
serLauncher.unsuccessfulbuild" because "AlwaysCreate" was specified.
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.
Targets(153,5): error MSB6001: Invalid command line switch for "CL.exe". Item ha
s already been added. Key in dictionary: 'tmp' Key being added: 'TMP'
Build FAILED.
和
------ Build started: Project: MiniBrowser, Configuration: Debug Win32 ------
Build started 2012/9/24 18:28:13.
InitializeBuildStatus:
Creating "C:\WebKit-r128959\WebKitBuild\Debug\obj\MiniBrowser\MiniBrowser.unsu
ccessfulbuild" because "AlwaysCreate" was specified.
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5):
error MSB3073: The command "REM Do not edit from the Visual Studio IDE! Customiz
e via a MiniBrowserPreBuild.cmd file.
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5):
error MSB3073: if not exist "C:\WebKit-r128959\Tools\MiniBrowser\MiniBrowserPreB
uild.cmd" exit /b
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5):
error MSB3073:
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5):
error MSB3073: set CONFIGURATIONBUILDDIR=C:\WebKit-r128959\WebKitBuild\Debug
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5):
error MSB3073: set CONFIGURATIONNAME=Debug
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5):
error MSB3073: set INPUTDIR=C:\WebKit-r128959\Tools\MiniBrowser\
已经花了一周时间了,求大神帮助!
------解决方案--------------------
现在我遇到了第一错误,请问你是怎么解决的!谢谢哈~
------解决方案--------------------
我也遇到跟楼主一样的,楼主有解决方法不?谢谢!
------解决方案--------------------
想请问下楼主在xp+vs2010下也是一样的么?