cef_config.h No such file or directoryTraceback While build

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_config.h No such file or directoryTraceback While build

Postby rover886 » Fri Mar 20, 2020 10:54 am

I am trying to build CEF (branch 3770) using automated method mentioned at https://bitbucket.org/chromiumembedded/ ... ted-method

I am hitting command to download as:

C:\CEF>c:\Python27\python.exe automate-git.py --download-dir=c:\CEF\src --branch=3770 --force-clean --no-debug-build --no-build

After sometime process gets end with error:

Failed to copy file from c:\CEF\src\chromium\src\cef\include/cef_config.h to c:\
CEF\src\chromium\src\cef\binary_distrib\cef_binary_75.1.16+g16a67c4+chromium-75.
0.3770.100_windows32\include\cef_config.h: No such file or directoryTraceback (m
ost recent call last):
File "make_distrib.py", line 670, in <module>
'include/', include_dir, options.quiet)
File "make_distrib.py", line 216, in transfer_gypi_files
copy_file(src, dst, quiet)
File "c:\CEF\src\chromium\src\cef\tools\file_util.py", line 55, in copy_file
shutil.copy2(src, dst)
File "c:\CEF\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\shu
til.py", line 153, in copy2
copyfile(src, dst)
File "c:\CEF\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\shu
til.py", line 96, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'c:\\CEF\\src\\chromium\\src\\cef\
\include/cef_config.h'
Traceback (most recent call last):
File "automate-git.py", line 1626, in <module>
run(path, cef_tools_dir, depot_tools_dir)
File "automate-git.py", line 70, in run
args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
File "c:\Python27\lib\subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\CEF\\src\\depot_tools\\python.bat'
, 'make_distrib.py', '--output-dir=../binary_distrib/', '--allow-partial', '--ni
nja-build']' returned non-zero exit status 1


As error says, the file path c:\\CEF\\src\\chromium\\src\\cef\\include/cef_config.h is not found. So I checked the path the file is not their even if I check repo at https://bitbucket.org/chromiumembedded/ ... e/?at=3770 the cef_config.h file is not found.

Some info:

OS: Windows 7 64 Bit
VS: 2019
CEF branch: 3770

Why this error is coming? How to solve it?
rover886
Techie
 
Posts: 19
Joined: Fri Mar 14, 2014 4:34 am

Re: cef_config.h No such file or directoryTraceback While bu

Postby magreenblatt » Fri Mar 20, 2020 11:09 am

You need to make a build before you can make a binary distribution. If you did not intend to make a binary distribution then add the --no-distrib command-line switch to automate-git.py.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cef_config.h No such file or directoryTraceback While bu

Postby rover886 » Fri Mar 20, 2020 4:44 pm

magreenblatt wrote:You need to make a build before you can make a binary distribution. If you did not intend to make a binary distribution then add the --no-distrib command-line switch to automate-git.py.


Okay. Now I run command as

C:\CEF>c:\Python27\python.exe automate-git.py --download-dir=c:\CEF\src --branch=3770 --force-clean

Now Also I am getting new error:

Generating CEF buildinfo header file...
File include/cef_config.h updated.
--> c:\CEF\src\chromium\src\out\Release_GN_x86\args.gn contents:
clang_use_chrome_plugins=false
enable_basic_printing=true
enable_nacl=false
enable_print_preview=false
enable_widevine=true
is_component_build=false
is_debug=false
target_cpu="x86"
-------- Running "ninja -C out\Release_GN_x86 cefclient" in "c:\CEF\src\chromium
\src"...
ninja: Entering directory `out\Release_GN_x86'
[769/37758] RC obj/chrome/elevation_se...on_resources/elevation_service_exe.res
FAILED: obj/chrome/elevation_service/version_resources/elevation_service_exe.res

c:/CEF/src/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe ../.
./build/toolchain/win/tool_wrapper.py rc-wrapper environment.x86 rc.exe /nologo
-DUSE_AURA=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWS
ING_DB_LOCAL -DCHROMIUM_BUILD "-DCR_CLANG_REVISION=\"357692-1\"" -D_HAS_NODISCAR
D -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENAB
LE_NODISCARD -D_LIBCPP_NO_AUTO_LINK -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEP
RECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_
HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -D
WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNIC
ODE -DUNICODE -DNTDDI_VERSION=NTDDI_WIN10_RS2 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0
A00 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen /foobj/ch
rome/elevation_service/version_resources/elevation_service_exe.res gen/chrome/el
evation_service/elevation_service_exe.rc
Traceback (most recent call last):
File "../../build/toolchain/win/tool_wrapper.py", line 31, in <module>
import win32file # pylint: disable=import-error
ImportError: No module named win32file
[774/37758] ACTION //chrome/elevation_...n(//build/toolchain/win:win_clang_x86)
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "automate-git.py", line 1505, in <module>
if options.buildlogfile else None)
File "automate-git.py", line 70, in run
args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
File "c:\Python27\lib\subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out\\Release_GN_x86', '
cefclient']' returned non-zero exit status 1


Looks like ninja command is failing, but path to ninja.exe is in the Path variable.

Windows SDK is installed on default location i.e. C:\Program Files (x86)\Windows Kits\10
But VS 2019 community edition (and VS 2010 is also installed) is installed on another location so I specified set GYP_MSVS_VERSION=2019 and set GYP_MSVS_OVERRIDE_PATH=E:\Microsoft Visual Studio\2019\Community
rover886
Techie
 
Posts: 19
Joined: Fri Mar 14, 2014 4:34 am

Re: cef_config.h No such file or directoryTraceback While bu

Postby rover886 » Wed Mar 25, 2020 11:00 am

python's module win32file is not installed. After installing pywin32 module through pip solved this problem.
rover886
Techie
 
Posts: 19
Joined: Fri Mar 14, 2014 4:34 am


Return to Support Forum

Who is online

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