Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can missing Qt packages cause an error to be thrown at build time instead of runtime ? #159

Open
mdear opened this issue Feb 23, 2024 · 0 comments

Comments

@mdear
Copy link

mdear commented Feb 23, 2024

I'm creating a custom Yocto Poky Kirkstone Linux image on a qemuarm64 target platform and running your toolchain there (linuxdeploy + qt input plugin + appimage output plusin)

I'm packaging a Qt app that has dependence on Qt packages such as qtsensors, qtquick3d, qtquick3dphysics and qtmultimedia (the stock "Dice" example that ships with Qt6).

I just had to go through a painful process where I created AppImages only to be stopped at runtime because Qt related dependencies were missing, I then rebuilt the Yocto binary step by step, adding missing dependencies with each step, which was very time consuming.

Of course, I could have read the code, but I'm preparing procedures for an intermediate CI/CD DevOps engineer and I want the process to be as intuitive, smooth, automated and efficient as possible.

Is there a way to detect missing packages at build time instead of finding out at runtime?

A related issue is that I found that, despite my app having dependencies on libraries such as /usr/lib/libQt6Sensors.so.6 and /usr/lib/libQt6Sensors.so.6.5.3 (one and the same file, just softlinked as per usual Linux library numbering protocols), even after running the qt plugin seeing the QtSensors module and its QML dependencies being picked up this dependent system library was missing and I had to add it via the --library clause, again not the end of the world, but something that could be further automated to increase workflow productivity. This library was not in the /usr/lib/qml/QtSensors directory yet was still a runtime dependency.

I also had to manually package /usr/lib/qml/QtSensors/libsensorsquickplugin.so which I thought would have been picked up automatically.

@mdear mdear changed the title Can missing Qt packages cause an error to be thrown at build time ? Can missing Qt packages cause an error to be thrown at build time instead of runtime ? Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant