Bug 12456

Summary: qtvirtualkeyboard: No such file or directory
Product: buildroot Reporter: Sam Petrocelli <sam.petrocelli>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: blocker CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2019.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Comparing the output of an older version of buildroot (approx two years old) with 2019.11
the .config file used to produce the error
make output showing error

Description Sam Petrocelli 2020-01-11 22:48:43 UTC
Created attachment 8331 [details]
Comparing the output of an older version of buildroot (approx two years old) with 2019.11

>>> qt5virtualkeyboard 5.12.5 Installing to target
mkdir -p /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/target/usr/lib/qt/plugins/platforminputcontexts
cp -dpfr /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/qt/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/target/usr/lib/qt/plugins/platforminputcontexts
cp -dpf /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libQt5VirtualKeyboard*.so.* /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/target/usr/lib
mkdir -p /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/target/usr/qml/QtQuick
cp -dpfr /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/qml/QtQuick/VirtualKeyboard /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/target/usr/qml/QtQuick/
cp -dpfr /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/qtvirtualkeyboard /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/target/usr
cp: cannot stat '/home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/qtvirtualkeyboard': No such file or directory
make[1]: *** [package/pkg-generic.mk:335: /home/spetroce/code/src/Buildroot-Toolchain-Release/Toolchain/morepork-build-root/output/build/qt5virtualkeyboard-5.12.5/.stamp_target_installed] Error 1
make: *** [Makefile:84: _all] Error 2


Commenting the following lines within qt5virtualkeyboard.mk results in a successful build.

ifdef QT5VIRTUALKEYBOARD_3RDPARTY_PARTS
define QT5VIRTUALKEYBOARD_INSTALL_TARGET_3RDPARTY_PARTS
  cp -dpfr $(STAGING_DIR)/usr/qtvirtualkeyboard $(TARGET_DIR)/usr
endef
endif

I have the following set in my defconfig file:
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5BASE_EGLFS=y
BR2_PACKAGE_QT5BASE_DEFAULT_QPA="eglfs"
BR2_PACKAGE_QT5BASE_GIF=y
BR2_PACKAGE_QT5BASE_JPEG=y
BR2_PACKAGE_QT5BASE_PNG=y
BR2_PACKAGE_QT5GRAPHICALEFFECTS=y
BR2_PACKAGE_QT5MULTIMEDIA=y
BR2_PACKAGE_QT5QUICKCONTROLS2=y
BR2_PACKAGE_QT5TOOLS=y
BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS=y
BR2_PACKAGE_QT5VIRTUALKEYBOARD=y
BR2_PACKAGE_QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS="all"

I have no problems with this on an older version (it's a fork of buildroot that is approximately 2 years old) of buildroot, but when using the 2019.11 branch I run into the error described above. I attached a text file that contains a find output for the qtvirtualkeyboard dict files on both the older and 2019.11 buildroots.
Comment 1 Peter Seiderer 2020-01-12 15:07:44 UTC
Please provide a complete .config (or defconfig) file with which you can reproduce the failure (against buildroot-2019.11 or git master) with a complete build (make clean && make qt5virtualkeyboard)...
Comment 2 Sam Petrocelli 2020-01-13 03:00:30 UTC
Created attachment 8336 [details]
the .config file used to produce the error
Comment 3 Sam Petrocelli 2020-01-13 03:04:30 UTC
Created attachment 8341 [details]
make output showing error
Comment 4 Sam Petrocelli 2020-01-13 03:21:15 UTC
To produce the above two attached files, I started completely clean and I just built with only the basic options selected (not with the settings I posted in the original post). Kernel, arm, toolchain, qt5, qt5virtualkeyboard... I still get the same error.
Comment 5 Peter Seiderer 2020-01-13 08:41:35 UTC
Should be fixed with [1], thanks for reporting!

[1] https://patchwork.ozlabs.org/patch/1222016
Comment 6 Yann E. MORIN 2020-01-17 20:55:28 UTC
Fixed by https://git.buildroot.org/buildroot/commit/?id=3645f89922c70b9ebbf31926e6dc7cbbffe2b47a

Thanks both for the report and the fix. :-)