Building help

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.

Building help

Postby Bermejor » Mon Jul 10, 2017 5:36 am

I´m building CEF in Windows 7 64 bits vesion PC that accomplish with the minimun requirements to build CEF (I´ve 16 GB of Ram, Visual Studio Update 3, Windows SDK 10.0.14393, etc...), I´m following the master build tutorial of how to build CEF (https://bitbucket.org/chromiumembedded/ ... QuickStart) but when i going to execute create.bat at step 7 of the wiki we get a Python exception, I don´t know the cause to this, the output via CMD is:

Generating CEF project files...
NOTE: is_official_build=false + is_debug=true recommends is_win_fastlink=true
NOTE: is_official_build=false + is_debug=true recommends is_win_fastlink=true

________ running 'gn gen out\Debug_GN_x86 --ide=vs2015 --sln=cef --filters=//cef
/*' in 'c:\code\chromium_git\chromium\src'
Traceback (most recent call last):
File "c:/code/chromium_git/chromium/src/build/toolchain/win/setup_toolchain.py
", line 219, in <module>
main()
File "c:/code/chromium_git/chromium/src/build/toolchain/win/setup_toolchain.py
", line 194, in main
include = [p.replace('"', r'\"') for p in env['INCLUDE'].split(';') if p]
KeyError: 'INCLUDE'
ERROR at //build/toolchain/win/BUILD.gn:334:24: Script returned non-zero exit co
de.
x86_toolchain_data = exec_script("setup_toolchain.py",
^----------
Current dir: c:/code/chromium_git/chromium/src/out/Debug_GN_x86/
Command: e:/code/depot_tools/python276_bin/python.exe -- c:/code/chromium_git/ch
romium/src/build/toolchain/win/setup_toolchain.py "C:\Program Files (x86)\Micros
oft Visual Studio 14.0" "C:\Program Files (x86)\Windows Kits\10" "C:\Windows\Sys
native;C:\Windows\SysWOW64" x86
Returned 1.
See //BUILD.gn:65:1: which caused the file to be included.
group("gn_all") {
^----------------
Traceback (most recent call last):
File "tools\gclient_hook.py", line 133, in <module>
RunAction(src_dir, cmd)
File "c:\code\chromium_git\chromium\src\cef\tools\gclient_util.py", line 39, i
n RunAction
gclient_utils.CheckCallAndFilterAndHeader(command, cwd=dir, always=True)
File "e:\code\depot_tools\gclient_utils.py", line 305, in CheckCallAndFilterAn
dHeader
return CheckCallAndFilter(args, **kwargs)
File "e:\code\depot_tools\gclient_utils.py", line 551, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x86 --ide=vs2015 -
-sln=cef --filters=//cef/*' returned non-zero exit status 1 in c:\code\chromium_
git\chromium\src

Please, somebody can help me to avoid this issue?, thanks in advance!
Bermejor
Newbie
 
Posts: 5
Joined: Mon Jul 10, 2017 5:27 am

Re: Building help

Postby magreenblatt » Mon Jul 10, 2017 12:36 pm

Are you building the master branch or a release branch? What is the output when you run the failing command directly:

Code: Select all
cd c:/code/chromium_git/chromium/src/out/Debug_GN_x86/
e:/code/depot_tools/python276_bin/python.exe -- c:/code/chromium_git/chromium/src/build/toolchain/win/setup_toolchain.py "C:\Program Files (x86)\Microsoft Visual Studio 14.0" "C:\Program Files (x86)\Windows Kits\10" "C:\Windows\Sysnative;C:\Windows\SysWOW64" x86
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Building help

Postby Bermejor » Tue Jul 11, 2017 4:44 am

Thank you for your contribution, I am building a release build, I can solve this problem replacing in PATH e:\code\depot_tools by c:\code\depot_tool but now I get other error, when i run in step 8 "ninja -C out\Release_GN_x86 cef" to get a release version I get the next output via cmd:

ninja: Entering directory `out\Release_GN
[409/29485] CXX obj/cef/chrome_elf_set/ch
FAILED: obj/cef/chrome_elf_set/chrome_swi
ninja -t msvc -e environment.x86 -- "C:\P
dio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo
set/chrome_switches.obj.rsp /c ../../chro
/chrome_elf_set/chrome_switches.obj /Fd"o
c:\code\chromium_git\chromium\src\chrome\
or C1083: Cannot open include file: 'chro
directory
[410/29485] CXX obj/cef/chrome_elf_set/co
FAILED: obj/cef/chrome_elf_set/content_sw
ninja -t msvc -e environment.x86 -- "C:\P
dio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo
set/content_switches.obj.rsp /c ../../con
/Foobj/cef/chrome_elf_set/content_switche
"
c:\code\chromium_git\chromium\src\content
fatal error C1083: Cannot open include fi
ile or directory
[413/29485] CXX obj/cef/chrome_elf_set/cr
FAILED: obj/cef/chrome_elf_set/crash_keys
ninja -t msvc -e environment.x86 -- "C:\P
dio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo
set/crash_keys.obj.rsp /c ../../chrome/co
f_set/crash_keys.obj /Fd"obj/cef/chrome_e
c:\code\chromium_git\chromium\src\chrome\
or C1083: Cannot open include file: 'chro
directory
[414/29485] CXX obj/cef/libcef_dll_wrappe
ninja: build stopped: subcommand failed.

If I type "ninja -C out\Debug_GN_x86 cef" I get an analogue output. I´ve removed GN_DEFINES line in scripts update.bat and create.bat before also I defined environment variable GYP_DEFINES via the line set GYP_DEFINES=propietary_codecs=1 ffmpeg_branding=Chrome to get propietary codecs support as I read in a post in this forum.

I don´t know if this can be related with this problem. As I saw in the output file media/media_features.h or file chrome/common/features.h are not present in the source code.

Thanks in advance!
Bermejor
Newbie
 
Posts: 5
Joined: Mon Jul 10, 2017 5:27 am

Re: Building help

Postby magreenblatt » Tue Jul 11, 2017 11:22 am

The error message that you posted is incomplete (lines truncated). Can you try posting it again?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Building help

Postby Bermejor » Tue Aug 22, 2017 3:22 am

Hello again, next is the full output as you demand me in the last post. Thank in advance for your help!

ninja: Entering directory `out\Release_GN_x86'
[1/29074] CXX obj/cef/chrome_elf_set/content_switches.obj
FAILED: obj/cef/chrome_elf_set/content_switches.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/cef/chrome_elf_set/content_switches.obj.rsp /c ../../content/public/common/content_switches.cc /Foobj/cef/chrome_elf_set/content_switches.obj /Fd"obj/cef/chrome_elf_set_cc.pdb"
c:\code\chromium_git\chromium\src\content\public\common\content_switches.h(12): fatal error C1083: Cannot open include file: 'media/media_features.h': No such file or directory
[2/29074] CXX obj/cef/chrome_elf_set/chrome_switches.obj
FAILED: obj/cef/chrome_elf_set/chrome_switches.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/cef/chrome_elf_set/chrome_switches.obj.rsp /c ../../chrome/common/chrome_switches.cc /Foobj/cef/chrome_elf_set/chrome_switches.obj /Fd"obj/cef/chrome_elf_set_cc.pdb"
c:\code\chromium_git\chromium\src\chrome\common\chrome_switches.h(12): fatal error C1083: Cannot open include file: 'chrome/common/features.h': No such file or directory
[3/29074] CXX obj/cef/chrome_elf_set/crash_keys.obj
FAILED: obj/cef/chrome_elf_set/crash_keys.obj
ninja -t msvc -e environment.x86 -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/cef/chrome_elf_set/crash_keys.obj.rsp /c ../../chrome/common/crash_keys.cc /Foobj/cef/chrome_elf_set/crash_keys.obj /Fd"obj/cef/chrome_elf_set_cc.pdb"
c:\code\chromium_git\chromium\src\chrome\common\chrome_switches.h(12): fatal error C1083: Cannot open include file: 'chrome/common/features.h': No such file or directory
[4/29074] CXX obj/cef/chrome_elf_set/crash_reporter_client.obj
[5/29074] CXX obj/cef/libcef_dll_wrapper/zip_reader_ctocpp.obj
[6/29074] CXX obj/cef/libcef_dll_wrapper/xml_reader_ctocpp.obj
ninja: build stopped: subcommand failed.
Bermejor
Newbie
 
Posts: 5
Joined: Mon Jul 10, 2017 5:27 am

Re: Building help

Postby magreenblatt » Tue Aug 22, 2017 10:24 am

What CEF branch/revision are you building now?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Building help

Postby Bermejor » Thu Aug 24, 2017 5:26 am

I am not sure because I follow the Master Build Quick-Start - https://bitbucket.org/chromiumembedded/ ... QuickStart, and I use the automate-git.py script to download source code in june of this year because of this I suppose it must be the lastest in June.

Thanks for all!
Bermejor
Newbie
 
Posts: 5
Joined: Mon Jul 10, 2017 5:27 am

Re: Building help

Postby solarisx » Thu Aug 24, 2017 9:36 am

Hi,
I have an equal issue on cef build. Branch 3163.

media/media_features.h not found
Code: Select all
ninja -C out\Release_GN_x86 cef
ninja: Entering directory `out\Release_GN_x86'
[1/29731] CXX obj/cef/chrome_elf_set/content_switches.obj
FAILED: obj/cef/chrome_elf_set/content_switches.obj
ninja -t msvc -e environment.x86 -- "c:\program files (x86)\microsoft visual studio 14.0\vc\bin\amd64_x86/cl.exe" /nologo /showIncludes  @obj/cef/chrome_elf_set/content_switches.obj.rsp /c ../../content/public/common/content_switches.cc /Foobj/cef/chrome_elf_set/content_switches.obj /Fd"obj/cef/chrome_elf_set_cc.pdb"
c:\_DEV\CEF\3163\chromium_git\chromium\src\content/public/common/content_switches.h(12): fatal error C1083: Cannot open include file: 'media/media_features.h': No such file or directory
[4/29731] CXX obj/cef/chrome_elf_set/crash_keys.obj
FAILED: obj/cef/chrome_elf_set/crash_keys.obj
ninja -t msvc -e environment.x86 -- "c:\program files (x86)\microsoft visual studio 14.0\vc\bin\amd64_x86/cl.exe" /nologo /showIncludes  @obj/cef/chrome_elf_set/crash_keys.obj.rsp /c ../../chrome/common/crash_keys.cc /Foobj/cef/chrome_elf_set/crash_keys.obj /Fd"obj/cef/chrome_elf_set_cc.pdb"
c:\_DEV\CEF\3163\chromium_git\chromium\src\content/public/common/content_switches.h(12): fatal error C1083: Cannot open include file: 'media/media_features.h': No such file or directory
[18/29731] CXX obj/cef/libcef_dll_wrapper/keyboard_handler_cpptoc.obj
ninja: build stopped: subcommand failed.
solarisx
Techie
 
Posts: 11
Joined: Fri Jul 21, 2017 2:08 pm

Re: Building help

Postby Bermejor » Sun Sep 24, 2017 6:24 am

Somebody has a solution to that issue?
Bermejor
Newbie
 
Posts: 5
Joined: Mon Jul 10, 2017 5:27 am

Re: Building help

Postby Czarek » Mon Sep 25, 2017 12:12 am

Try the --force-update flag in automate.py.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 44 guests