cef-3.2623 build on vs2013

1. 参文“在Windows下编译Cef3.2623并加入mp3、mp4支持(附带源码包和最终DLL)”下载包 http://blog.csdn.net/zhuhongshu/article/details/54193842 2. 创建build.bat e:\cef\ source automate-git.py build.bat 如下: set CEF_USE_GN=0 set DEPOT_TOOLS_WIN_TOOLCHAIN=0 set GYP_DEFINES=component=shared_library set GYP_GENERATORS=msvs-ninja,ninja set GYP_MSVS_VERSION=2013 set GYP_MSVS_OVERRIDE_PATH=c:\Program Files (x86)\Microsoft Visual Studio 12.0 python automate-git.py --download-dir=e:\cef\source --branch=2623 --no-update --no-debug-build --build-log-file --verbose-build --force-distrib --force-build 3. 构建 cd e:\cef ./build.bat 4. 报错 Generating CEF project files... ________ running 'e:\cef\source\depot_tools\python276_bin\python.exe ../build/gyp_chromium cef.gyp -I cef.gypi' in 'e:\cef\source\chromium\src\cef' Enabled Psyco JIT. Updating projects from gyp files... Traceback (most recent call last): File "../build/gyp_chromium", line 12, in execfile(__file__ + '.py') File "../build/gyp_chromium.py", line 336, in sys.exit(main()) File "../build/gyp_chromium.py", line 323, in main gyp_rc = gyp.main(args) File "e:\cef\source\chromium\src\tools\gyp\pylib\gyp\__init__.py", line 538, in main return gyp_main(args) File "e:\cef\source\chromium\src\tools\gyp\pylib\gyp\__init__.py", line 523, in gyp_main generator.GenerateOutput(flat_list, targets, data, params) File "e:\cef\source\chromium\src\tools\gyp\pylib\gyp\generator\ninja.py", line 2421, in GenerateOutput pool.map(CallGenerateOutputForConfig, arglists) File "e:\cef\source\depot_tools\python276_bin\lib\multiprocessing\pool.py", line 250, in map return self.map_async(func, iterable, chunksize).get() File "e:\cef\source\depot_tools\python276_bin\lib\multiprocessing\pool.py", line 554, in get raise self._value Exception: "['C:\\Program Files (x86)\\Windows Kits\\8.1\\Bin\\SetEnv.Cmd', '/x86', '&&', 'set']" failed with error 1 Traceback (most recent call last): File "tools\gclient_hook.py", line 106, in RunAction(cef_dir, gyper) File "e:\cef\source\chromium\src\cef\tools\gclient_util.py", line 39, in RunAction command, cwd=dir, always=True) File "e:\cef\source\depot_tools\gclient_utils.py", line 292, in CheckCallAndFilterAndHeader return CheckCallAndFilter(args, **kwargs) File "e:\cef\source\depot_tools\gclient_utils.py", line 538, in CheckCallAndFilter rv, args, kwargs.get('cwd', None), None, None) subprocess2.CalledProcessError: Command 'e:\\cef\\source\\depot_tools\\python276_bin\\python.exe ../build/gyp_chromium cef.gyp -I cef.gypi' returned non-zero exit status 1 in e:\ce f\source\chromium\src\cef Traceback (most recent call last): File "automate-git.py", line 942, in run(path, cef_src_dir, depot_tools_dir) File "automate-git.py", line 55, in run shell=(sys.platform == 'win32')) File "e:\cef\source\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['e:\\cef\\source\\chromium\\src\\cef\\cef_create_projects.bat']' returned non-zero exit status 1 原因:可能是从 "VS2013 开发人员命令”进入引起 解法: type cmd.exe to start a DOS prompt
posted @ 2018-07-29 22:57  mull  阅读(651)  评论(0编辑  收藏  举报