Branch 4147 Binary Distrib build cefclient

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.

Branch 4147 Binary Distrib build cefclient

Postby edgardog » Thu Aug 13, 2020 9:48 am

Hi,
I was having issues building with cefclient on ubuntu 16 until I started using:
GN_DEFINES includes use_sysroot=true
python automate-git.py --download-dir=/media/ExtraDrive1/cef4147/code --branch=4147 --x64-build --force-update --no-debug-build --force-config --force-clean --force-clean-deps --build-target=cefsimple

With those steps I can build cef4147.

Then I try to build cefclient and cefsimple from the binary_distrib:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
and compile with: make -j8 cefclient cefsimple

I get an issue with: cefclient/browser/client_types.h:12:21: fatal error: gtk/gtk.h: No such file or directory

Are there any other steps I need to do to build from the binary_distrib including cefclient ?

Thanks
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Branch 4147 Binary Distrib build cefclient

Postby magreenblatt » Thu Aug 13, 2020 10:22 am

Is the libgtk2.0-dev package installed on your system?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Branch 4147 Binary Distrib build cefclient

Postby edgardog » Thu Aug 13, 2020 10:58 am

I think so
Code: Select all
sudo apt install libgtk2.0-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgtk2.0-dev is already the newest version (2.24.30-1ubuntu1.16.04.2).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Branch 4147 Binary Distrib build cefclient

Postby edgardog » Thu Aug 13, 2020 1:11 pm

Sorry,
there must be something wrong with my setup.
I used a clean ubuntu 16 VM to build the binary distrib and worked perfectly.

This is probably the reason why I cant build cefclient straight with automate.

I will re-install ubuntu on this computer (clean).. just to confirm.. Can i build CEF using sys_root on ubuntu 18?

Thanks for the help.
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm

Re: Branch 4147 Binary Distrib build cefclient

Postby magreenblatt » Thu Aug 13, 2020 1:15 pm

edgardog wrote:Can i build CEF using sys_root on ubuntu 18?

Yes, building with use_sysroot=true should work on Ubuntu 18.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Branch 4147 Binary Distrib build cefclient

Postby magreenblatt » Thu Aug 13, 2020 1:18 pm

This is probably the reason why I cant build cefclient straight with automate.

The cefclient target cannot be built using Chromium's sysroot environment, because the sysroot environment does not contain libgtkglext1.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Branch 4147 Binary Distrib build cefclient

Postby edgardog » Thu Aug 13, 2020 1:26 pm

Yes, I got that..
I used to be able to build on this Ubuntu 16 computer without the need of sys_root.
But I revised my steps based on your advice.. I think building with sys_root=true and then building cefclient from the binary_distrib is cleaner than what I have been doing before.

Thanks again for the help!
edgardog
Expert
 
Posts: 111
Joined: Mon Feb 01, 2016 2:05 pm


Return to Support Forum

Who is online

Users browsing this forum: kimcey and 44 guests