[SOLVED] [linux] Build fails on Ubuntu 20.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.

[SOLVED] [linux] Build fails on Ubuntu 20.04

Postby ndesktop » Sat Jan 23, 2021 11:52 am

Following the instructions from Linux Setup, after downloading the whole thing, create.sh fails with (trimmed the first part succeeding):
Code: Select all
70 patches total (0 applied, 70 skipped, 0 failed)

Generating CEF project files...
ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code.
    pkgresult = exec_script(pkg_config_script, args, "value")
                ^----------
Current dir: /home/ca/dev/b/master/code/chromium_git/chromium/src/out/Debug_GN_x64/
Command: python /home/ca/dev/b/master/code/chromium_git/chromium/src/build/config/linux/pkg-config.py gnome-keyring-1
Returned 1.
stderr:

Package gnome-keyring-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gnome-keyring-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gnome-keyring-1' found
Could not run pkg-config.

See //components/os_crypt/BUILD.gn:14:3: whence it was called.
  pkg_config("gnome_keyring") {
  ^----------------------------
See //components/BUILD.gn:122:5: which caused the file to be included.
    "//components/os_crypt:unit_tests",
    ^---------------------------------
Traceback (most recent call last):
  File "tools/gclient_hook.py", line 146, in <module>
    RunAction(src_dir, cmd)
  File "/home/ca/dev/b/master/code/chromium_git/chromium/src/cef/tools/gclient_util.py", line 36, in RunAction
    command, cwd=dir, always_show_header=True, print_stdout=True)
  File "/home/ca/dev/b/master/code/depot_tools/gclient_utils.py", line 674, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out/Debug_GN_x64' returned non-zero exit status 1 in /home/ca/dev/b/master/code/chromium_git/chromium/src


I am no package manager expert, but looking on another forum there was the (logical) suggestion to install libgnome-keyring-dev.
Thing is, the package exists until bionic (18.04), but I am not finding it in focal, neither in focal-updates nor focal-backports.
Neither lookups for gnome-keyring-1 were more successful.

I did not found another thread with a solution/direction for Ubuntu focal.
Did someone else encounters this? Perhaps a ppa is available with libgnome-keyring-dev for 20.04 ?
Last edited by ndesktop on Mon Jan 25, 2021 10:03 am, edited 1 time in total.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: [linux] Build fails on Ubuntu 20.04

Postby magreenblatt » Sat Jan 23, 2021 12:17 pm

You can set use_gnome_keyring=false or use_sysroot=true via GN_DEFINES.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: [linux] Build fails on Ubuntu 20.04

Postby ndesktop » Sat Jan 23, 2021 12:29 pm

use_sysroot made cef_create_projects.sh happy (use_gnome_keyring=false did not, for some reason), build is starting.
Thanks !
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: [linux] Build fails on Ubuntu 20.04

Postby magreenblatt » Sat Jan 23, 2021 2:20 pm

Note that with use_sysroot=true you can’t build the cefclient target due to the Chromium sysroot environment missing the gtk dependencies. You can build the cefsimple and ceftests targets.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Biohazard, Google [Bot], Majestic-12 [Bot] and 69 guests