Need help on building CEF/CEFSharp

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Need help on building CEF/CEFSharp

Postby Madrikor » Wed Oct 01, 2025 3:28 am

Hi there,

i hope this is the rigth place.
First at all, my /our goal is to build a cefsharp version , later as nuget, with ffmpeg_branding = "Chrome" as build option, because we need/want to use the brwoser-client to play mp4 videos with actual x264 codec.
My search lead me to this, that this is the only option because of the licensing.

So at this point i found this wki entry here https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md#markdown-header-overview and with the links provided inside, i select the branch 7204 because its LTS. Best usecase for us.

After the configuration and multiple execution of the differents script, with different errors. Finally all source code is downloaded.
But now i'm stuck at the Step 7 for the Windows setup. There is again some errors at the execution of the python-scripts and in the end there is now sln-File created for my Visual Studio 2022.

So here my questions

1. is this the way to go or is there an easier way to archiev my goal?
2. do i need to build cef with ffmpeg_branding = "Chrome" or cefsharp?
3. Are there any other useful website i can use for search?

Thx Madrikor
Madrikor
Newbie
 
Posts: 2
Joined: Tue Sep 30, 2025 9:35 am

Re: Need help on building CEF/CEFSharp

Postby ndesktop » Wed Oct 01, 2025 9:39 am

1. Yes. I am not aware if someone else already published some script to do (basically you are looking for an automate-git-cef.py, if there is one). If there is, @amaitland might know of.
2. Yes, you need to build CEF with the appropriate flags (ffmpeg_branding=Chrome in this case), then create a distribution.
CefSharp is using such a distro, I assume (I didn't read in very detail how it is built), then builds a CefSharp using that CEF distro.
I don't know what modifications should be done to CefSharp to use a custom built CEF (probably CefSharp uses nuget to get official CEF packages).
3. A good start might be on github Building CefSharp.
ndesktop
Master
 
Posts: 953
Joined: Thu Dec 03, 2015 10:10 am

Re: Need help on building CEF/CEFSharp

Postby Madrikor » Thu Oct 16, 2025 9:11 am

Sorry for late reply, but thanks for your answer.

The break was good the reconsider the issues.
I restart the steps, and now the scripts succeeded.

Building of the soltion-files failed, because i forgot to install the SDK before. After fixing this, ist works.
Currently my machine is running the build process, this will take 3-4h in full.

Next steps after this, test the browser. Rebuild with the ffmpeg option and then implement in cefsharp. But i think the hardest task is done yet.

Thanks for helping.
Madrikor
Newbie
 
Posts: 2
Joined: Tue Sep 30, 2025 9:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 21 guests