Issue building CEF 4896 on Ubuntu libxkbcommon

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.

Issue building CEF 4896 on Ubuntu libxkbcommon

Postby ds58 » Thu Jun 16, 2022 12:22 pm

Hi,

I am currently trying to build CEF 4896.127 on Ubuntu 20.04. Using 4896 because of the current JCEF binding. I am running into an issue regarding libxkbcommon.

Ubuntu 20.04 is using libxkbcommon-dev 0.10.0-1 which does not include
Code: Select all
xkb_keymap_key_get_mods_for_level
from my understanding. That function was introduced in libxkbcommon-dev 1.0.0.

There is a note about this in the Chromium src here: https://source.chromium.org/chromium/ch ... ne.cc;l=40

However, I am not sure why the weak declaration still results in an error. Anyone else run into this issue or have suggestions?

Code: Select all
[01:00:11] :    [Step 2/3] ../../ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:40:5: error: use of undeclared identifier 'xkb_keymap_key_get_mods_for_level'; did you mean 'xkb_keymap_key_get_syms_by_level'?
[01:00:11] :    [Step 2/3]     xkb_keymap_key_get_mods_for_level) xkb_keymap_key_get_mods_for_level;
[01:00:11] :    [Step 2/3]     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[01:00:11] :    [Step 2/3]     xkb_keymap_key_get_syms_by_level
[01:00:11] :    [Step 2/3] /usr/include/xkbcommon/xkbcommon.h:1172:1: note: 'xkb_keymap_key_get_syms_by_level' declared here
[01:00:11] :    [Step 2/3] xkb_keymap_key_get_syms_by_level(struct xkb_keymap *keymap,
[01:00:11] :    [Step 2/3] ^
[01:00:11] :    [Step 2/3] ../../ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:930:26: error: no matching function for call to 'xkb_keymap_key_get_mods_for_level'
[01:00:11] :    [Step 2/3]           int num_mods = xkb_keymap_key_get_mods_for_level(
[01:00:11] :    [Step 2/3]                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[01:00:11] :    [Step 2/3] ../../ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:40:40: note: candidate function not viable: requires 5 arguments, but 6 were provided
[01:00:11] :    [Step 2/3]     xkb_keymap_key_get_mods_for_level) xkb_keymap_key_get_mods_for_level;
[01:00:11] :    [Step 2/3]                                        ^
[01:00:11] :    [Step 2/3] 2 errors generated.
ds58
Newbie
 
Posts: 2
Joined: Thu Jun 16, 2022 12:07 pm

Re: Issue building CEF 4896 on Ubuntu libxkbcommon

Postby magreenblatt » Thu Jun 16, 2022 1:26 pm

magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Issue building CEF 4896 on Ubuntu libxkbcommon

Postby ds58 » Thu Jun 16, 2022 6:57 pm

use_sysroot=true works great. Thanks
ds58
Newbie
 
Posts: 2
Joined: Thu Jun 16, 2022 12:07 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 40 guests