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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,488 次查看
Mihan
Contributor IV

Hi all

 

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

破坏者
| 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

标签 (1)
0 项奖励
1 回复

1,485 次查看
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 项奖励