I’m trying to add my QT Application on my Yocto project. I followed the tutorialCreate a Recipe. But I keep getting this error:
ERROR: qt-noveldx-0.1-r0 do_package: QA Issue: qt-noveldx: Files/directories were installed but not shipped in any package:
/home/root/NovelDX
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
qt-noveldx: 1 installed and not shipped files. [installed-vs-shipped]
ERROR: qt-noveldx-0.1-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/ruben/oe-core/build/tmp/work/aarch64-tdx-linux/qt-noveldx/0.1-r0/temp/log.do_package.3753357
ERROR: Task (/home/ruben/oe-core/build/../layers/meta-noveldx/recipes-project/qt-noveldx_0.1.bb:do_package) failed with exit code '1'
Does anyone got to fix this issue before? I’m attaching my qt .bb recipe.
You need to set the FILES variable to package your application:
FILES_${PN} += " \
/home/root/NovelDX
"
I checked your recipe and it is installing your binary on ${bindir}, can you confirm that the binary is there? If yes, you can just rm /home/root/NovelDX on your do_install task.
Thanks for you answer. After I did what you said, it start working. But when I tried to execute it on my Verdin Dev Board it gives me this error message:
qt.qpa.plugin: Could not load the Qt platform plugin "wayland-egl" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Do you have any idea what this is? Because I install the wayland, qtwayland on my image (I’m using the multimedia-image).
Can you try to run your application in the same way as the wayland-app-launch? You can find more information about this checking the files on /layers/meta-toradex-demos/recipes-graphics/wayland-app-launch/wayland-app-launch.
It seems that the weston isn’t coming up, can you confirm that it’s being executed?
Since you are executing the application the same way as the recipe you shouldn’t face this problem, does the same problem happens with the standard application?
Are you doing any changes to the DISTRO_FEATURES variable? The bb.utils.contains works as a if on the code, so in the first line if there is X11/Wayland on the DISTRO_FEATURES, then the packages weston-xwayland and xterm would be installed.
Can you please check if all packages for Wayland are being installed? It seems that some packages are missing and because of this the Wayland can’t be loaded.
If I do the same change to my custom app ( adding the X11 lines) I’m able to start my application. But the wayland desktop environment its on the background. Is there any way to start the application without the desktop environment?
I checked your environment and there aren’t any changes that might cause this issue.
Since the standard application started fine, can you please deploy the image with both the standard application and your application and then try to change the binary started by the wayland-app-launch service?