can not compiler cef 2171

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

can not compiler cef 2171

Postby CaiHuan » Fri Jan 23, 2015 5:10 am

visual studio 2013 community

cef_create_projects.bat doesn't generate cef sln
error message:

Generating CEF project files...

________ running 'D:\Downloads\2171\depot_tools\python276_bin\python.exe ../build/gyp_chromium cef.gyp -I cef.gypi' in '
D:\Downloads\2171\chromium\src\cef'
Enabled Psyco JIT.
Updating projects from gyp files...
--> Writing file: D:\Downloads\2171\chromium\src\out\cef.branch
-------- Running "ninja -C out\Debug cefclient" in "D:\Downloads\2171\chromium\src"...
ninja: warning: multiple rules generate gen/about_credits.html. builds involving this target will not be correct; contin
uing anyway
ninja: Entering directory `out\Debug'
[1663/12450] ACTION Copying D3D Compiler DLL...
FAILED: D:\Downloads\2171\depot_tools\python276_bin\python.exe gyp-win-tool action-wrapper environment.x86 copy_compiler
_dll_target_copy_dll_d5e7737f8056aa69e632ead4d36d2ac1..rsp ..\..\third_party\angle\src
[1663/12450] CXX obj\third_party\angle\src\compiler\translator\translator.ShaderVars.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File ".\automate\automate-git.py", line 898, in <module>
if options.buildlogfile else None)
File ".\automate\automate-git.py", line 74, in run
shell=(sys.platform == 'win32'))
File "D:\Applications\DepotTools\python276_bin\lib\subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out\\Debug', 'cefclient']' returned non-zero exit status 1
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: can not compiler cef 2171

Postby magreenblatt » Fri Jan 23, 2015 10:34 am

Have you installed VS2013 update 3 and Windows 8.1 SDK?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: can not compiler cef 2171

Postby CaiHuan » Fri Jan 23, 2015 11:07 am

magreenblatt wrote:Have you installed VS2013 update 3 and Windows 8.1 SDK?

vs2013 community update4, windows 8.1sdk~
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: can not compiler cef 2171

Postby magreenblatt » Fri Jan 23, 2015 11:16 am

Try running ninja in verbose mode:
Code: Select all
cd D:\Downloads\2171\chromium\src
ninja -v -C out\Debug cefclient

Then post the specific command that's failing.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: can not compiler cef 2171

Postby CaiHuan » Fri Jan 23, 2015 11:23 am

magreenblatt wrote:Try running ninja in verbose mode:
Code: Select all
cd D:\Downloads\2171\chromium\src
ninja -v -C out\Debug cefclient

Then post the specific command that's failing.

PS D:\Downloads\2171\chromium\src\cef> .\cef_create_projects.bat

Checking CEF and Chromium revisions...

________ running 'D:\Applications\DepotTools\python276_bin\python.exe tools/check_revision.py' in 'D:\Downloads\2171\chr
omium\src\cef'
Not an SVN checkout.

Generating CEF version header file...

________ running 'D:\Applications\DepotTools\python276_bin\python.exe tools/make_version_header.py --header include/cef_
version.h --cef_version VERSION --chrome_version ../chrome/VERSION --cpp_header_dir include' in 'D:\Downloads\2171\chrom
ium\src\cef'
File include/cef_version.h is already up to date.

Patching build configuration and source files for CEF...

________ running 'D:\Applications\DepotTools\python276_bin\python.exe tools/patcher.py --patch-config patch/patch.cfg' i
n 'D:\Downloads\2171\chromium\src\cef'
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/gritsettings.patch
WARNING:root:already patched ../tools/gritsettings/resource_ids
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/build.patch
WARNING:root:already patched ../build/common.gypi
WARNING:root:already patched ../build/gyp_chromium
WARNING:root:already patched ../build/mac/strip_save_dsym
WARNING:root:already patched ../build/toolchain/win/setup_toolchain.py
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/zlib.patch
WARNING:root:already patched ../third_party/zlib/contrib/minizip/unzip.c
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/message_loop_443.patch
WARNING:root:already patched ../base/message_loop/message_loop.cc
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/gyp_331.patch
WARNING:root:already patched ../tools/gyp/pylib/gyp/generator/ninja.py
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/webkit_popups.patch
WARNING:root:already patched ../third_party/WebKit/Source/web/ChromeClientImpl.cpp
WARNING:root:already patched ../third_party/WebKit/Source/web/WebViewImpl.cpp
WARNING:root:already patched ../third_party/WebKit/Source/web/WebViewImpl.h
WARNING:root:already patched ../third_party/WebKit/public/web/WebView.h
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/underlay_1051.patch
WARNING:root:already patched ../ui/base/cocoa/underlay_opengl_hosting_window.h
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/views_widget_180.patch
WARNING:root:already patched ../ui/views/widget/desktop_aura/desktop_screen_win.cc
WARNING:root:already patched ../ui/views/widget/desktop_aura/desktop_screen_x11.cc
WARNING:root:already patched ../ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
WARNING:root:already patched ../ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
WARNING:root:already patched ../ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
WARNING:root:already patched ../ui/views/widget/widget.cc
WARNING:root:already patched ../ui/views/widget/widget.h
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/content_nav_1129.patch
WARNING:root:already patched ../content/public/renderer/content_renderer_client.cc
WARNING:root:already patched ../content/public/renderer/content_renderer_client.h
WARNING:root:already patched ../content/renderer/render_frame_impl.cc
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/browser_1161.patch
WARNING:root:already patched ../content/browser/compositor/io_surface_layer_mac.mm
WARNING:root:already patched ../content/browser/renderer_host/compositing_iosurface_mac.mm
WARNING:root:already patched ../content/browser/renderer_host/render_widget_host_view_aura.cc
WARNING:root:already patched ../content/browser/renderer_host/render_widget_host_view_mac.mm
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/public_browser_1161_1257.patch
WARNING:root:already patched ../content/public/browser/content_browser_client.cc
WARNING:root:already patched ../content/public/browser/content_browser_client.h
WARNING:root:already patched ../content/public/browser/web_contents.cc
WARNING:root:already patched ../content/public/browser/web_contents.h
WARNING:root:already patched ../content/public/browser/web_contents_delegate.cc
WARNING:root:already patched ../content/public/browser/web_contents_delegate.h
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/browser_web_contents_1257.patch
WARNING:root:already patched ../content/browser/web_contents/web_contents_impl.cc
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/prefs_content_1161.patch
WARNING:root:already patched ../content/public/common/common_param_traits_macros.h
WARNING:root:already patched ../content/public/common/web_preferences.cc
WARNING:root:already patched ../content/public/common/web_preferences.h
WARNING:root:already patched ../content/renderer/render_view_impl.cc
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/webkit_platform_mac_328814.patch
WARNING:root:already patched ../third_party/WebKit/Source/platform/mac/ThemeMac.mm
WARNING:root:already patched ../third_party/WebKit/Source/platform/mac/WebCoreNSCellExtras.h
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/ui_dragdrop_355390.patch
WARNING:root:already patched ../ui/base/dragdrop/os_exchange_data_provider_aurax11.cc
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/printing_win.patch
WARNING:root:already patched ../chrome/common/chrome_utility_printing_messages.h
WARNING:root:already patched ../content/renderer/pepper/pepper_plugin_instance_impl.cc
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/spellcheck_137.patch
WARNING:root:already patched ../chrome/browser/spellchecker/spellcheck_factory.cc
WARNING:root:already patched ../chrome/browser/spellchecker/spellcheck_factory.h
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/angle_81sdk.patch
WARNING:root:already patched ../third_party/angle/src/angle.gypi
WARNING:root:successfully patched ../third_party/angle/src/copy_compiler_dll.bat
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/ui_gl_81sdk.patch
WARNING:root:already patched ../ui/gl/gl_implementation_win.cc
Reading patch file D:/Downloads/2171/chromium/src/cef/patch/patches/render_process_host_1429.patch
WARNING:root:already patched ../content/browser/renderer_host/render_process_host_impl.cc
Skipping patch file D:/Downloads/2171/chromium/src/cef/patch/patches/spi_webcore_364.patch

Generating CEF project files...

________ running 'D:\Applications\DepotTools\python276_bin\python.exe ../build/gyp_chromium cef.gyp -I cef.gypi' in 'D:\
Downloads\2171\chromium\src\cef'
Enabled Psyco JIT.
Updating projects from gyp files...
Warning: Missing input files:
..\sync\internal_api\attachments\public\attachment_service_impl.h
..\sync\internal_api\attachments\public\attachment_downloader.h
..\gpu\command_buffer\client\gpu_memory_buffer_factory.h
..\sync\internal_api\attachments\public\attachment_uploader.h
..\net\cert\scoped_openssl_types.h
..\sync\internal_api\attachments\public\attachment_service.h
include\cef_pack_strings.h
..\sync\internal_api\attachments\public\attachment_service_proxy.h
include\cef_pack_resources.h
..\third_party\WebKit\Source\core\testing\PartialPrivateScriptTest.h
..\sync\internal_api\attachments\public\attachment_service_proxy_for_test.h
Warning: unrecognized tool MASM while converting to MSBuild.
Warning: unrecognized tool MASM while converting to MSBuild.
Warning: unrecognized tool MASM while converting to MSBuild.
Warning: unrecognized tool MASM while converting to MSBuild.
Warning: unrecognized tool MASM while converting to MSBuild.
Warning: unrecognized tool MASM while converting to MSBuild.
Warning: unrecognized tool MASM while converting to MSBuild.
Warning: unrecognized tool MASM while converting to MSBuild.






FAILED: D:\Applications\DepotTools\python276_bin\python.exe gyp-win-tool action-wrapper environment.x86 copy_compiler_dl
l_target_copy_dll_d5e7737f8056aa69e632ead4d36d2ac1..rsp ..\..\third_party\angle\src
ninja: build stopped: subcommand failed.
PS D:\Downloads\2171\chromium\src>
failed message
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: can not compiler cef 2171

Postby CaiHuan » Fri Jan 23, 2015 11:31 am

magreenblatt wrote:Try running ninja in verbose mode:
Code: Select all
cd D:\Downloads\2171\chromium\src
ninja -v -C out\Debug cefclient

Then post the specific command that's failing.

the cef 1916 will generate sln after using cef_create_projects.bat but cef 2171 not
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: can not compiler cef 2171

Postby magreenblatt » Fri Jan 23, 2015 11:45 am

CaiHuan wrote:the cef 1916 will generate sln after using cef_create_projects.bat but cef 2171 not

You need to set GYP_GENERATORS=ninja,msvs-ninja before running cef_create_projects.bat if you want an SLN file.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: can not compiler cef 2171

Postby CaiHuan » Fri Jan 23, 2015 11:48 am

magreenblatt wrote:
CaiHuan wrote:the cef 1916 will generate sln after using cef_create_projects.bat but cef 2171 not

You need to set GYP_GENERATORS=ninja,msvs-ninja before running cef_create_projects.bat if you want an SLN file.

i'm setting
GYP_GENERATORS=ninja,msvs-ninja
GYP_MSVS_VERSION=2013
DEPOT_TOOLS_WIN_TOOLCHAIN=0
GYP_DEFINES=windows_sdk_path="C:\Program Files (x86)\Windows Kits\8.0"
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: can not compiler cef 2171

Postby CaiHuan » Fri Jan 23, 2015 11:50 am

CaiHuan wrote:
magreenblatt wrote:
CaiHuan wrote:the cef 1916 will generate sln after using cef_create_projects.bat but cef 2171 not

You need to set GYP_GENERATORS=ninja,msvs-ninja before running cef_create_projects.bat if you want an SLN file.

i'm setting
GYP_GENERATORS=ninja,msvs-ninja
GYP_MSVS_VERSION=2013
DEPOT_TOOLS_WIN_TOOLCHAIN=0
GYP_DEFINES=windows_sdk_path="C:\Program Files (x86)\Windows Kits\8.0"

now the project generate sln~but running tools\build_projects.bat Debug post error message

ninja: Entering directory `..\out\Debug\'
[1/10544] ACTION Copying D3D Compiler DLL...
[2/10544] ACTION cef_locales: repack_locales_a2bf821e5a2b16c02628490a6fe9cb4b
[3/10544] LIB obj\third_party\angle\src\translator_lib.lib
[4/10544] CXX obj\third_party\tcmalloc\chromium\src\base\allocator.abort.obj
[5/10544] LIB obj\third_party\libwebp\libwebp_dec.lib
[6/10544] LINK_EMBED protoc.exe
FAILED: D:\Applications\DepotTools\python276_bin\python.exe gyp-win-tool action-wrapper environment.x86 copy_compiler
_dll_target_copy_dll_d5e7737f8056aa69e632ead4d36d2ac1..rsp ..\..\third_party\angle\src
ninja: build stopped: subcommand failed.
ninja : warning : multiple rules generate gen/about_credits.html. builds involving this target will not be correct; con
tinuing anyway [D:\Downloads\2171\chromium\src\cef\cefclient.vcxproj]
D:\Downloads\2171\chromium\src\cef\cefclient.vcxproj(465,5): error MSB3073: The command "call ninja.exe -C ..\out\Debug
\ cefclient" exited with code 1.
CaiHuan
Techie
 
Posts: 32
Joined: Fri Jun 06, 2014 8:02 am

Re: can not compiler cef 2171

Postby magreenblatt » Fri Jan 23, 2015 11:52 am

CaiHuan wrote:GYP_DEFINES=windows_sdk_path="C:\Program Files (x86)\Windows Kits\8.0"

Remove this line. It's telling Chromium to use the 8.0 SDK instead of the 8.1SDK which is likely the cause of your problem.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 85 guests

cron