how to rebuild cef

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

how to rebuild cef

Postby Jonas » Fri Dec 09, 2016 2:29 pm

I'm building cef with automate-git.py and getting some errors. I would like to start from a clean project without downloading everything again. I want to do the equivalent of "make clean" for makefiles.

--force-clean intialted another long download.

Is there an appropriate command? Or do I simply delete some folders?

Jonas
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: how to rebuild cef

Postby magreenblatt » Mon Dec 12, 2016 7:01 am

You can delete the "src/out" folder to get a clean build.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: how to rebuild cef

Postby Jonas » Tue Dec 13, 2016 11:21 am

I'm getting an error that base_paths_win.cc cannot open windows.h.

I'm running this command:
python /path/to/automate/automate-git.py --download-dir=/path/to/download

My build environment is:
Windows 7
Visual Studio 2015u3
Windows SDK 10586
set GYP_MSVS_VERSION=2015

Any idea what I am missing?
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: how to rebuild cef

Postby magreenblatt » Tue Dec 13, 2016 11:31 am

What is the full error message?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: how to rebuild cef

Postby Jonas » Tue Dec 13, 2016 11:37 am

There are a lot of errors, but this is how they begin...

________ running 'gn gen out\Debug_GN_x64' in 'd:\cefbuild\download_03\chromium\src'
Done. Made 5076 targets from 1161 files in 8455ms
Applying issue #1999 fix to d:\cefbuild\download_03\chromium\src\out\Debug_GN_x64\obj\cef\libcef.ninja
--> d:\cefbuild\download_03\chromium\src\out\Debug_GN_x86\args.gn contents:
enable_basic_printing=true
enable_nacl=false
enable_plugin_installation=false
enable_print_preview=false
enable_widevine=true
is_component_build=false
is_debug=true
target_cpu="x86"
-------- Running "ninja -C out\Debug_GN_x86 cefclient" in "d:\cefbuild\download_03\chromium\src"...
ninja: Entering directory `out\Debug_GN_x86'
[27/26359] CXX obj/base/base_paths/base_paths_win.obj
FAILED: obj/base/base_paths/base_paths_win.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/base/base_paths
/base_paths_win.obj.rsp /c ../../base/base_paths_win.cc /Foobj/base/base_paths/base_paths_win.obj /Fd"obj/base/base_paths_cc.pdb"
d:\cefbuild\download_03\chromium\src\base\base_paths_win.cc(5): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[28/26359] CXX obj/breakpad/breakpad_handler/exception_handler.obj
FAILED: obj/breakpad/breakpad_handler/exception_handler.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/breakpad/breakp
ad_handler/exception_handler.obj.rsp /c ../../breakpad/src/client/windows/handler/exception_handler.cc /Foobj/breakpad/breakpad_handler/exception_handler.obj /F
d"obj/breakpad/breakpad_handler_cc.pdb"
d:\cefbuild\download_03\chromium\src\breakpad\src\client\windows\handler\exception_handler.cc(30): fatal error C1083: Cannot open include file: 'objbase.h': No
such file or directory
[29/26359] CXX obj/base/base_static/pe_image.obj
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: how to rebuild cef

Postby Jonas » Wed Dec 14, 2016 11:16 am

My goal is to build a vanilla, out-of-the-box release version. I made another attempt doing the following.

I deleted the src/out folder from the previous attempt. Then ran these commands:

Code: Select all
set CEF_USE_GN=1
set GN_DEFINES=is_official_build=true
set GYP_DEFINES=buildtype=Official
set GYP_MSVS_VERSION=2015
set CEF_ARCHIVE_FORMAT=tar.bz2
python d:/cefbuild/automate-git.py --download-dir=d:/cefbuild/download_04 --branch=2924


Here is the first error:

FAILED: obj/base/third_party/dynamic_annotations/dynamic_annotations/dynamic_annotations.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/base/third_part
y/dynamic_annotations/dynamic_annotations/dynamic_annotations.obj.rsp /c ../../base/third_party/dynamic_annotations/dynamic_annotations.c /Foobj/base/third_part
y/dynamic_annotations/dynamic_annotations/dynamic_annotations.obj /Fd"obj/base/third_party/dynamic_annotations/dynamic_annotations_c.pdb"
d:\cefbuild\download_04\chromium\src\base\third_party\dynamic_annotations\dynamic_annotations.c(28): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

I think I'm following the instructions for Windows to the letter, so I don't understand why this is failing. Any suggestions would be greatly appreciated.
Jonas
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: how to rebuild cef

Postby magreenblatt » Wed Dec 14, 2016 2:22 pm

Are you running in cmd.exe or some other shell?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: how to rebuild cef

Postby Jonas » Wed Dec 14, 2016 2:43 pm

cmd
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: how to rebuild cef

Postby magreenblatt » Wed Dec 14, 2016 2:54 pm

Seems like something is messed up on your system, but I don't know what. What are the contents of your out/Debug_GN_x86/environment.x86 file?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: how to rebuild cef

Postby Jonas » Wed Dec 14, 2016 3:14 pm

The contents of out/Debug_GN_x86/environment.x86 is all binary.
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Next

Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 13 guests