[solved] CEF Maunal Builds failing for 3239 in win10

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.

[solved] CEF Maunal Builds failing for 3239 in win10

Postby raul1141 » Fri Jan 05, 2018 7:25 am

I am trying to build CEF with chrome 63. I have latest VS2017 15.5X community edition with enable_precompiled_headers=false.

build fails at this location

03:22:29 Failed to copy file from C:\u\workspace\dev\chromiumwinVir\3239\chromium\src\cef\include/cef_version.h to C:\u\workspace\dev\chromiumwinVir\3239\chromium\src\cef\binary_distrib\cef_binary_3.3239.1701.g68fddae_windows32\include\cef_version.h: No such file or directoryTraceback (most recent call last):

03:22:29 File "make_distrib.py", line 527, in <module>
03:22:29 'include/', include_dir, options.quiet)
03:22:29 File "make_distrib.py", line 214, in transfer_gypi_files
03:22:29 copy_file(src, dst, quiet)
03:22:29 File "C:\u\workspace\dev\chromiumwinVir\3239\chromium\src\cef\tools\file_util.py", line 55, in copy_file
03:22:29 shutil.copy(src, dst)
03:22:29 File "C:\u\workspace\dev\chromiumwinVir\3239\depot_tools\win_tools-2_7_6_bin\python\bin\lib\shutil.py", line 119, in copy
03:22:29 copyfile(src, dst)
03:22:29 File "C:\u\workspace\dev\chromiumwinVir\3239\depot_tools\win_tools-2_7_6_bin\python\bin\lib\shutil.py", line 82, in copyfile
03:22:29 with open(src, 'rb') as fsrc:
03:22:29 IOError: [Errno 2] No such file or directory: 'C:\\u\\workspace\\dev\\chromiumwinVir\\3239\\chromium\\src\\cef\\include/cef_version.h'


I have proper winsdk installed . ( multiple versions though) . Any help appreciated.
Last edited by raul1141 on Tue Jan 09, 2018 10:00 pm, edited 1 time in total.
raul1141
Newbie
 
Posts: 6
Joined: Fri Jan 29, 2016 2:32 am

Re: CEF Maunal Builds failing for 3239 in win10

Postby magreenblatt » Fri Jan 05, 2018 12:09 pm

Did you get any errors during the ninja build? You will also need to apply https://bitbucket.org/chromiumembedded/ ... s-for/diff
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Maunal Builds failing for 3239 in win10

Postby coder678 » Fri Jan 05, 2018 5:29 pm

I have a similar issue. The build script is the following.

Code: Select all
set CEF_USE_GN=1
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome enable_precompiled_headers=false use_jumbo_build=true
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=c:\code\chromium_git --depot-tools-dir=C:\code\depot_tools --branch=3239 --no-distrib


Debug x86 was built but release not.

Code: Select all
-------- Running "ninja -C out\Release_GN_x86 cefclient" in "c:\code\chromium_git\chromium\src"...
ninja: Entering directory `out\Release_GN_x86'
[476/26222] LIB obj/base/base_static.lib
LINK : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
[1169/26222] 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\2017\community\vc\tools\msvc\14.12.25827\bin\hostx64\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:\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
[1170/26222] 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\2017\community\vc\tools\msvc\14.12.25827\bin\hostx64\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:\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
[1174/26222] CXX obj/cef/chrome_elf_set/crash_reporter_client.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "..\automate\automate-git.py", line 1107, in <module>
    if options.buildlogfile else None)
  File "..\automate\automate-git.py", line 55, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "c:\code\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out\\Release_GN_x86', 'cefclient']' returned non-zero exit status 1


I need to make binary_distrib. When I execute
Code: Select all
make_distrib.bat --ninja-build
there is an error:

Code: Select all
C:\code\chromium_git\cef\tools>make_distrib.bat --ninja-build
Traceback (most recent call last):
  File "make_distrib.py", line 435, in <module>
    raise Exception('Not a valid checkout: %s' % (src_dir))
Exception: Not a valid checkout: C:\code\chromium_git


Did I miss something?
coder678
Techie
 
Posts: 35
Joined: Sun Jun 26, 2016 10:03 pm

Re: CEF Maunal Builds failing for 3239 in win10

Postby magreenblatt » Fri Jan 05, 2018 5:46 pm

I've filed https://bitbucket.org/chromiumembedded/cef/issues/2352 with a suggested fix for the media_features.h error.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: CEF Maunal Builds failing for 3239 in win10

Postby raul1141 » Tue Jan 09, 2018 10:00 pm

I was facing the issue because I used --force-clean as param while downloading cef/chromium.

this would cause the cef folder parallel to chromium getting deleted in between build, and build would fail. removing force-clean fixed for me.
this force-clean however was working with chrome 61.
raul1141
Newbie
 
Posts: 6
Joined: Fri Jan 29, 2016 2:32 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 46 guests