Build error for CEF 4240 on Ubuntu 16.04

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.

Build error for CEF 4240 on Ubuntu 16.04

Postby aligre » Fri Apr 09, 2021 8:37 am

Hello

I'm currently trying to build CEF version 4240 on Ubuntu 16.04 on Docker
I've followed these instructions
https://bitbucket.org/chromiumembedded/ ... inux-setup
with the following differences
add of "--branch 4240" to command line in update.sh
add of "--no-depot-tools-update" to command line in update.sh
export DEPOT_TOOLS_UPDATE=0 before call of update.sh

The step update.sh succeeds but next step 8, the call to create.sh, fails with this error
Generating CEF project files...
/cef/code/chromium_git/chromium/.gclient_entries missing, .gclient file in parent directory /cef/code/chromium_git/chromium might not be the file you want to use.
ERROR at //build/config/BUILDCONFIG.gn:402:1: Unknown function.
set_sources_assignment_filter(sources_assignment_filter)


I guess it's due to my version of depot_tools that is maybe not the one expected by branch 4240.
Does someone have any idea about how to fix that ?

Regards, Aligre
aligre
Techie
 
Posts: 24
Joined: Fri Apr 09, 2021 7:38 am

Re: Build error for CEF 4240 on Ubuntu 16.04

Postby aligre » Fri Apr 16, 2021 12:20 pm

Hello
I've a bit progressed on this topic.

I've succeeded to build CEF following these instructions https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart#markdown-header-linux-setup on Ubuntu 18.04. It's easy and I've done only few manual fix, all were easy.

On Ubuntu 16.04, I still have the same issue during the call to update.sh. Looking deeper in the internals, I've found it's because the tool gn is no the same on those two plateform :

On Ubuntu 18.04, it recognized the option set_sources_assignment_filter :
~/code/chromium_git/chromium/src/buildtools/linux64$ gn help set_sources_assignment_filter
set_sources_assignment_filter: Set a pattern to filter source files.

The sources assignment filter is a list of patterns that remove files from ...

while not for Ubuntu 16.04

gn help set_sources_assignment_filter
ERROR No help on "set_sources_assignment_filter".
Run `gn help` for a list of available topics.


So, despite version 4240 did support Ubuntu 16.04 in the past, does someone know if it should be possible now to build CEF on this distrib ?

Thanks in advance
aligre
Techie
 
Posts: 24
Joined: Fri Apr 09, 2021 7:38 am

Re: Build error for CEF 4240 on Ubuntu 16.04

Postby aligre » Mon Apr 26, 2021 5:51 am

I think my problems come from the ubuntu image I've prepared : I havent a recent version of clang which lead to a bag GN version
I'll restart all from the beginning but to be sure to do it correctly, I would like to know the required level of Clang to build CEF on ubuntu 16.04
Thank you
aligre
Techie
 
Posts: 24
Joined: Fri Apr 09, 2021 7:38 am

Re: Build error for CEF 4240 on Ubuntu 16.04

Postby magreenblatt » Mon Apr 26, 2021 9:38 am

Why do you need to build on Ubuntu 16.04? I suggest using 18.04 instead.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 58 guests