Unable to debug Cef 6261 build under Windows 11 Pro 23H2

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.

Unable to debug Cef 6261 build under Windows 11 Pro 23H2

Postby rjxray » Tue Feb 13, 2024 6:16 am

Starting from a D:\cef\cefbuild6261 folder which is empty except for a copy of https://bitbucket.org/chromiumembedded/ ... ate-git.py
I can successfully build the 6261 branch with the command
python3 automate-git.py --download-dir=. --branch=6261 --x64-build --with-pgo-profiles

I can run cefclient.exe with no problems from the command line in out\Debug_GN_x64

I can load cef.sln into Visual Studio 2022 but when I try to run it with the debugger I get
Code: Select all
Build started...
1>------ Build started: Project: apps, Configuration: GN x64 ------
1>'ninja.exe' is not recognized as an internal or external command,
1>operable program or batch file.
1>D:\cef\cefbuild6261\chromium\src\out\Debug_GN_x64\obj\apps\apps.vcxproj(105,5): error MSB3073: The command "call ninja.exe -C D:\cef\cefbuild6261\chromium\src\out\Debug_GN_x64\  obj/apps/apps.lib" exited with code 1.
1>Done building project "apps.vcxproj" -- FAILED.


When I check PATH in a command window I see
Code: Select all
D:\cef\cefbuild6261>path
PATH=D:\cef\cefbuild6261\depot_tools;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\CMake\bin;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C;C:\Users\Richard\AppData\Local\Microsoft\WindowsApps;C:\Users\Richard\.dotnet\tools;c:\Utils;

ninja.exe does not exist in D:\cef\cefbuild6261\depot_tools, only ninja, ninja.bat and ninja.py. autoninja.exe does exist.

I can't find any way of making Visual Studio use autoninja.exe instead of ninja.exe

In my environment variables I have
GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
I have Win 10.0.22621.1778 SDK installed

Am I doing something wrong or is there an issue here?
Last edited by rjxray on Tue Feb 13, 2024 8:02 am, edited 1 time in total.
rjxray
Expert
 
Posts: 115
Joined: Wed Jun 07, 2017 4:31 am

Re: Unable to debug Cef 6261 build under Windows 11 Pro 23H2

Postby KatrinaS » Tue Feb 13, 2024 7:04 am

Maybe you need to install ninja.exe (it's just a small file), https://github.com/ninja-build/ninja/releases, and put it on the PATH, drop it in to the depot_tools folder or wherever :)
KatrinaS
Mentor
 
Posts: 83
Joined: Tue Jul 04, 2023 6:30 pm

Re: Unable to debug Cef 6261 build under Windows 11 Pro 23H2

Postby rjxray » Tue Feb 13, 2024 8:07 am

Thanks, that has me up and running now.

I wonder what the difference is between autoninja.exe and ninja.exe
autoninja.exe is recommended for manual building in https://bitbucket.org/chromiumembedded/ ... QuickStart
rjxray
Expert
 
Posts: 115
Joined: Wed Jun 07, 2017 4:31 am

Re: Unable to debug Cef 6261 build under Windows 11 Pro 23H2

Postby KatrinaS » Tue Feb 13, 2024 8:50 am

I believe autoninja.bat(?) is just a batch file that after a convoluted number of steps hands the actual work off to ninja.exe :)
KatrinaS
Mentor
 
Posts: 83
Joined: Tue Jul 04, 2023 6:30 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 219 guests