undefined reference to `QXkbCommon::keysymToQtKey(unsigned int, QFlags<Qt::KeyboardModifier>)'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

undefined reference to `QXkbCommon::keysymToQtKey(unsigned int, QFlags<Qt::KeyboardModifier>)'

1,363 Views
Mihan
Contributor IV

Hi all

 

I found an error when `bitbake imx-image-full` of xwayland for imx6dl-sabresd.

Spoiler
| linking ../../../../plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
| /home/vmuser/imx-yocto-bsp/build-xwayland/tmp/work/cortexa9t2hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: .obj/qibusplatforminputcontext.o: in function `QIBusPlatformInputContext::forwardKeyEvent(unsigned int, unsigned int, unsigned int)':
| /usr/src/debug/qtbase/5.15.2+gitAUTOINC+40143c189b-r0/git/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:357: undefined reference to `QXkbCommon::keysymToQtKey(unsigned int, QFlags<Qt::KeyboardModifier>)'
| /home/vmuser/imx-yocto-bsp/build-xwayland/tmp/work/cortexa9t2hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.15.2+gitAUTOINC+40143c189b-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/ld: /usr/src/debug/qtbase/5.15.2+gitAUTOINC+40143c189b-r0/git/src/plugins/platforminputcontexts/ibus/qibusplatforminputcontext.cpp:358: undefined reference to `QXkbCommon::lookupStringNoKeysymTransformations(unsigned int)'
| collect2: error: ld returned 1 exit status
| Makefile:144: recipe for target '../../../../plugins/platforminputcontexts/libibusplatforminputcontextplugin.so' failed
| make[4]: *** [../../../../plugins/platforminputcontexts/libibusplatforminputcontextplugin.so] Error 1
| make[4]: Leaving directory '/home/vmuser/imx-yocto-bsp/build-xwayland/tmp/work/cortexa9t2hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.15.2+gitAUTOINC+40143c189b-r0/build/src/plugins/platforminputcontexts/ibus'
| Makefile:72: recipe for target 'sub-ibus-make_first' failed
| make[3]: *** [sub-ibus-make_first] Error 2

I think it may be about the Qt configure of xcb, maybe it is without `-qt-xcb`.

where is the configure file of qt in build directory.

 

Best regards

Mihan

Labels (1)
0 Kudos
1 Reply

1,360 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mihan

 

for -qt-xcb one can look at Qt forum and post issue there

https://forum.qt.io/topic/115827/build-on-linux-qt-xcb-option

 

Best regards
igor

0 Kudos