CEF 2785, ninja error

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.

CEF 2785, ninja error

Postby Gerk » Fri Sep 21, 2018 3:43 pm

Hello, I have problems with building CEF.

Environment:

1. CEF branch is 2785
2. VS 2015 update 3, Windows10 x64
3. last depot_tools, depot_tools in %PATH%
4. patched src\cef\tools\commit_number.py and src\cef\tools\make_version_header.py ( sources from tarballs, not git repo ).
Code: Select all
...
#if git.is_checkout('.'):
#  sys.stdout.write(git.get_commit_number())
#else:
#  raise Exception('Not a valid checkout')
sys.stdout.write('1486')
-------------------------------------------
...
commit_number = '1486' #git.get_commit_number()
commit_hash = '8c4ba9f2d8adeaa88145743fe0b3a3bb414681f8' #git.get_hash()
...

4. create.bat
Code: Select all
copy /Y patch\*.* src\cef\tools

set DEPOT_TOOLS=%~dp0depot_tools\
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_DEFINES=target_arch=ia32
set PATH=%DEPOT_TOOLS%;%PATH%

set GYP_GENERATORS=ninja,msvs-ninja
set GYP_MSVS_VERSION=2015
@pushd src\cef
call cef_create_projects.bat
explorer .
@popd
pause


Solution and project files are created, but building finished with errors like
Code: Select all
31>ninja : error : opening build log: Permission denied
31>  ninja: Entering directory `..\..\..\..\..\..\out\Debug\'
31>D:\CEF\src\third_party\WebKit\Source\bindings\core\v8\bindings_core_v8_generated_aggregate.vcxproj(758,5): error MSB3073: The command "call ninja.exe -C ..\..\..\..\..\..\out\Debug\ bindings_core_v8_generated_aggregate" exited with code 1.
32>ninja : error : opening build log: Permission denied
32>  ninja: Entering directory `..\..\..\..\..\..\out\Debug\'
32>D:\CEF\src\third_party\WebKit\Source\bindings\core\v8\bindings_core_v8_generated_individual.vcxproj(1708,5): error MSB3073: The command "call ninja.exe -C ..\..\..\..\..\..\out\Debug\ bindings_core_v8_generated_individual" exited with code 1.
435>  ninja: build stopped: subcommand failed.
435>ninja : warning : premature end of file; recovering
435>D:\CEF\src\components\printing_renderer.vcxproj(299,5): error MSB3073: The command "call ninja.exe -C ..\out\Debug\ printing_renderer" exited with code 1.
436>LINK : fatal error LNK1181: cannot open input file 'obj\third_party\protobuf\src\google\protobuf\protobuf_full_do_not_use.any.obj'
436>  ninja: build stopped: subcommand failed.
436>ninja : warning : premature end of file; recovering
436>D:\CEF\src\third_party\protobuf\protobuf_full_do_not_use.vcxproj(486,5): error MSB3073: The command "call ninja.exe -C ..\..\out\Debug\ protobuf_full_do_not_use" exited with code 1.
439>LINK : fatal error LNK1181: cannot open input file 'obj\third_party\protobuf\src\google\protobuf\compiler\protoc_lib.code_generator.obj'
439>  ninja: build stopped: subcommand failed.
439>ninja : warning : premature end of file; recovering
439>D:\CEF\src\third_party\protobuf\protoc_lib.vcxproj(471,5): error MSB3073: The command "call ninja.exe -C ..\..\out\Debug\ protoc_lib" exited with code 1.


What's wrong ?
Gerk
Newbie
 
Posts: 4
Joined: Fri Jul 27, 2012 7:25 am

Re: CEF 2785, ninja error

Postby ndesktop » Sat Sep 22, 2018 12:46 am

"ninja : error : opening build log: Permission denied"
I have seen this a couple of times. In my case it was rogue explorer, link.exe, cl.exe, even tgit.exe which locked the file for some reason.
Antimalware onaccess features could also be guilty.
Try a restart, and if using AM add the root directory of sources to exclusions.

Is there a reason to build from (very old) tarballs and not using automate-git?
Although I think it can be tweaked to work in "offline" mode, I'm not sure about all gclient inner workings.
You can specify the branch and checkout if I remember well and build from repo sources instead, if that is an option.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: CEF 2785, ninja error

Postby Gerk » Sun Oct 14, 2018 3:04 pm

Reason to get old version of CEF - minimizing browser size, customize some functionallity.
automate-git doesn't work with old 2785 build. it fails on the sln generation step.
I don't know why.
I creates sln with script:
Code: Select all
set DEPOT_TOOLS=%~dp0depot_tools\
set GYP_DEFINES=target_arch=ia32
set PATH=%DEPOT_TOOLS%;%PATH%
set GYP_GENERATORS=msvs-ninja
set GYP_MSVS_VERSION=2015
pushd chromium\src\cef
call cef_create_projects.bat
explorer .
popd
pause


Main problem: cef.sln doesn't contain project dependencies information.
Gerk
Newbie
 
Posts: 4
Joined: Fri Jul 27, 2012 7:25 am


Return to Support Forum

Who is online

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