Can't compile CEF project, please 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.

Can't compile CEF project, please help

Postby doront99 » Sun Jul 09, 2017 11:23 pm

Hello everyone,

I just don't understand what I do wrong here...
Somehow I can't compile and getting the same error on different machines.
I was following the build instructions (https://bitbucket.org/chromiumembedded/ ... ldSetup.md), but still it won't work.

I tried also the overwrite the depot_tools with the current version, but still the same error.

Please your advice.

===============================================================

C:\cef>compile.bat

C:\cef>set CEF_USE_GN=1

C:\cef>set GN_DEFINES=is_official_build=true

C:\cef>set GYP_DEFINES=buildtype=Official

C:\cef>set GYP_MSVS_VERSION=2015

C:\cef>set CEF_ARCHIVE_FORMAT=tar.bz2

C:\cef>Python automate-git.py --download-dir=.\2987 --branch=2987 --minimal-distrib --client-distrib --force-clean --x64-build
--> Download Directory: C:\cef\2987
--> Depot Tools Directory: C:\cef\2987\depot_tools
--> Updating depot_tools
-------- Running "update_depot_tools.bat" in "C:\cef\2987\depot_tools"...
--> Removing directory C:\cef\2987\cef
--> CEF Branch: 2987
--> CEF URL: https://bitbucket.org/chromiumembedded/cef.git
--> CEF Source Directory: C:\cef\2987\cef
-------- Running "C:\cef\2987\depot_tools\git.bat clone https://bitbucket.org/chromiumembedded/cef.git C:\cef\2987\cef" in "C:\cef\2987"...
Cloning into 'C:\cef\2987\cef'...
remote: Counting objects: 44552, done.
remote: Compressing objects: 100% (7400/7400), done.
remote: Total 44552 (delta 5800), reused 0 (delta 0)
Receiving objects: 100% (44552/44552), 13.76 MiB | 3.42 MiB/s, done.
Resolving deltas: 100% (36734/36734), done.
-------- Running "C:\cef\2987\depot_tools\git.bat rev-parse HEAD" in "C:\cef\2987\cef"...
-------- Running "C:\cef\2987\depot_tools\git.bat rev-parse origin/2987" in "C:\cef\2987\cef"...
--> CEF Current Checkout: b216f427f667ce14cf79c2c8c78171ac57333f69
--> CEF Desired Checkout: f035232c082f837d2b85bd7821a93a54fc742775 (origin/2987)
-------- Running "C:\cef\2987\depot_tools\git.bat checkout --force origin/2987" in "C:\cef\2987\cef"...
Note: checking out 'origin/2987'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b <new-branch-name>

HEAD is now at f035232... Fix print to PDF (issue #2129)
--> CEF Output Directory: C:\cef\2987\out_2987
-------- Running "C:\cef\2987\depot_tools\git.bat config --get remote.origin.url" in "C:\cef\2987\chromium\src"...
--> Chromium URL: https://chromium.googlesource.com/chromium/src.git
-------- Running "C:\cef\2987\depot_tools\git.bat rev-parse HEAD" in "C:\cef\2987\chromium\src"...
-------- Running "C:\cef\2987\depot_tools\git.bat rev-parse refs/tags/57.0.2987.133" in "C:\cef\2987\chromium\src"...
--> Chromium Current Checkout: 8a67263f2d4e0fcbf1675e08b7e24672046463d2
--> Chromium Desired Checkout: 8a67263f2d4e0fcbf1675e08b7e24672046463d2 (refs/tags/57.0.2987.133)
-------- Running "gclient revert --nohooks" in "C:\cef\2987\chromium"...
Syncing projects: 0% ( 0/ 2)
[0:08:24] Still working on:
[0:08:24] src
Syncing projects: 100% (83/83), done.
-------- Running "C:\cef\2987\depot_tools\git.bat fetch" in "C:\cef\2987\chromium\src"...
remote: Counting objects: 316361, done
remote: Finding sources: 100% (173/173)
remote: Total 173 (delta 84), reused 169 (delta 84) eceiving objects: 97% (168/173)
Receiving objects: 100% (173/173), 200.75 KiB | 0 bytes/s, done.
Resolving deltas: 100% (84/84), completed with 55 local objects.
From https://chromium.googlesource.com/chromium/src
29ea4e7..51446e5 lkcr -> origin/lkcr
c8ddaa9..87be8f4 master -> origin/master
e4c285f..b8f7b61 refs/branch-heads/3112 -> branch-heads/3112
* [new ref] refs/branch-heads/3153 -> branch-heads/3153
-------- Running "C:\cef\2987\depot_tools\git.bat fetch --tags" in "C:\cef\2987\chromium\src"...
remote: Counting objects: 314177, done
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 3), reused 5 (delta 3)
Unpacking objects: 100% (5/5), done.
From https://chromium.googlesource.com/chromium/src
* [new tag] 60.0.3112.64 -> 60.0.3112.64
* [new tag] 61.0.3153.0 -> 61.0.3153.0
-------- Running "C:\cef\2987\depot_tools\git.bat checkout --force refs/tags/57.0.2987.133" in "C:\cef\2987\chromium\src"...
Checking out files: 100% (165538/165538), done.
Previous HEAD position was c8ddaa9... Drop less output of actool from compile_xcassets.py.
HEAD is now at 8a67263... Publish DEPS for Chromium 57.0.2987.133
--> Chromium DEPS file: C:\cef\2987\chromium\src\DEPS
-------- Running "C:\cef\2987\depot_tools\python.bat C:\cef\2987\cef\tools\patcher.py --patch-file "C:\cef\2987\cef\patch\patches\DEPS.patch" --patch-dir "C:\cef\2987\chromium\src"" in "C:\cef\2987\chromium\src"...
Reading patch file C:\cef\2987\cef\patch\patches\DEPS.patch
--> successfully patched C:/cef/2987/chromium/src/DEPS
-------- Running "gclient sync --reset --with_branch_heads --jobs 16" in "C:\cef\2987\chromium"...
Syncing projects: 100% (81/81) src/v8

src/third_party/skia (ERROR)
----------------------------------------
[0:00:43] Started.
_____ src\third_party\skia at ae9cc5d3588d52f4b371b55845704b25d88cf06d
----------------------------------------
Traceback (most recent call last):
File "C:\cef\2987\depot_tools\gclient.py", line 2523, in <module>
sys.exit(main(sys.argv[1:]))
File "C:\cef\2987\depot_tools\gclient.py", line 2509, in main
return dispatcher.execute(OptionParser(), argv)
File "C:\cef\2987\depot_tools\subcommand.py", line 252, in execute
return command(parser, args[1:])
File "C:\cef\2987\depot_tools\gclient.py", line 2270, in CMDsync
ret = client.RunOnDeps('update', args)
File "C:\cef\2987\depot_tools\gclient.py", line 1464, in RunOnDeps
work_queue.flush(revision_overrides, command, args, options=self._options)
File "C:\cef\2987\depot_tools\gclient_utils.py", line 1050, in run
self.item.run(*self.args, **self.kwargs)
File "C:\cef\2987\depot_tools\gclient.py", line 902, in run
self.ParseDepsFile()
File "C:\cef\2987\depot_tools\gclient.py", line 700, in ParseDepsFile
gclient_eval.Exec(deps_content, global_scope, local_scope, filepath)
File "C:\cef\2987\depot_tools\gclient_eval.py", line 209, in Exec
_visit_in_module(stmt)
File "C:\cef\2987\depot_tools\gclient_eval.py", line 205, in _visit_in_module
getattr(node, 'lineno', '<unknown>')))
ValueError: unexpected AST node: <_ast.Import object at 0x02FD6A10> Import(names=[alias(name='os', asname=None)]) (file u'C:\\cef\\2987\\chromium\\src/third_party/skia\\DEPS', line 51)
Traceback (most recent call last):
File "automate-git.py", line 967, in <module>
chromium_dir, depot_tools_dir)
File "automate-git.py", line 55, in run
args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
File "C:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gclient', 'sync', '--reset', '--with_branch_heads', '--jobs', '16']' returned non-zero exit status 1

C:\cef>
doront99
Newbie
 
Posts: 2
Joined: Sun Jul 09, 2017 11:21 pm

Re: Can't compile CEF project, please help

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

magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

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