is qt_generate_deploy_qml_app_script not supported yet on ubuntu 20.04 qt6.5?
Unsolved
QML and Qt Quick
-
I was able to use qt_generate_deploy_qml_app_script on MacOs with very simple example:
https://github.com/shemeshg/qt-qml-cmake-api/blob/main/CMakeLists.txt
But on ubuntu 20.04 Qt6.5 I get:
./myapp qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "" qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
The reason I thought it should work is this article You've published:
https://www.qt.io/blog/deploying-to-linux-with-cmake
However I do understand it is about
qt_generate_deploy_app_script
and notqt_generate_deploy_qml_app_script
-
OMG!!! this is actually working.
all I had todo to fixit wasexport QT_DEBUG_PLUGINS=1
to debug
and
sudo apt-get install libxcb-cursor-dev
The following 2 articles in Qt6.5 are awesome