Skip to content
Qt 6.11 is out! See what's new in the release blog
  • 144k Topics
    723k Posts
    Grit ClefG
    @DungeonLords said in CPack. qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "": I can run my app by name (type this in console) "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample" [image: example%20window.png] But I want to have the app inside .deb pack so I use CPack. I can install it sudo dpkg -i "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample-0.1.2-Linux.deb" And call my app $ /opt/myapp/bin/myexample 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. Aborted (core dumped) /opt/myapp/bin/myexample I tried to apply tricks with LD_LIBRARY_PATH without success $ LD_LIBRARY_PATH="/opt/myapp/lib/" /opt/myapp/bin/myexample 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. Aborted (core dumped) LD_LIBRARY_PATH="/opt/myapp/lib/" /opt/myapp/bin/myexample How to open my app from .deb? This is what inside my .deb $ dpkg-deb -c "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample-0.1.2-Linux.deb" [image: 32f4f548-d8ed-4a8f-a3a9-c1d61bc782a1.png] This is my repo (copy). I use last Qt version from git dev branch $ git log --oneline -1 e5a39cd6 (HEAD -> dev, origin/dev, origin/HEAD) Fix icu provisioning for Debian 11 @DungeonLords said in CPack. qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "": I can run my app by name (type this in console) "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample" [image: example%20window.png] But I want to have the app inside .deb pack so I use CPack. I can install it sudo dpkg -i "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample-0.1.2-Linux.deb" And call my app $ /opt/myapp/bin/myexample 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. Aborted (core dumped) /opt/myapp/bin/myexample I tried to apply tricks with LD_LIBRARY_PATH without success $ LD_LIBRARY_PATH="/opt/myapp/lib/" /opt/myapp/bin/myexample 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. Aborted (core dumped) LD_LIBRARY_PATH="/opt/myapp/lib/" /opt/myapp/bin/myexample How to open my app from .deb? This is what inside my .deb $ dpkg-deb -c "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample-0.1.2-Linux.deb" [image: 32f4f548-d8ed-4a8f-a3a9-c1d61bc782a1.png] This is my repo (copy). I use last Qt version from git dev branch $ git log --oneline -1 e5a39cd6 (HEAD -> dev, origin/dev, origin/HEAD) Fix icu provisioning for Debian 11 From your picture I see there're truly no platform plugins. Usually they are under /opt/myapp/plugins/platforms but I didn't see that directory?
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    SGaistS
    In that case, I would use a virtual environment with the stuff specific to Qt.
  • Everything related to designing and design tools

    132 400
    132 Topics
    400 Posts
    godweiG
    [image: b6c267c8-8af6-4e1b-b44f-4e891e9c2656.png] 哥哥姐姐们,这个带搜索功能的帮助界面怎么恢复啊? How can I restore this help interface with search function?
  • Everything related to the Software Quality Tools

    94 258
    94 Topics
    258 Posts
    C
    I recommend to contact technical support regarding this. However, the Floating License Server (FLS) is being superseded by the Qt License Server (QLS). And the general plan is to phase out use of FLS over time. So going forward, it is best to check the respective API of QLS instead. https://doc.qt.io/qtlicenseserver/qls-overview.html https://doc.qt.io/qtlicenseserver/qls-restapi.html
  • Everything related to learning Qt.

    394 2k
    394 Topics
    2k Posts
    jsulmJ
    @Anuj-Srivastava Are you sure you posted in the right sub-forum?
  • 2k Topics
    13k Posts
    L
    With change 733351 in Qt Gerrit now merged into the dev branch of qtbase, along with several other changes merged into the qt5 dev branch (see the harmonyos_upstream topic), qtbase dev now supports building on HarmonyOS 6.0.0 (API Level 20). If you are interested in building qtbase for HarmonyOS, please refer to the Qt Wiki page.
  • 4k Topics
    18k Posts
    Q
    Hallo, danke für die Rückmeldungen. Habe jetzt im Internet folgende Anleitung gefunden: qt_generate_deploy_qml_app_script( TARGET MyApp OUTPUT_SCRIPT deploy_script ) install(SCRIPT ${deploy_script}) On installation, the application binary will be deployed, including the QML files and the shared libraries and assets of Qt that are used by the project. Again, the resulting directory is self-contained and can be packaged by tools like cpack. Das ganze in die cmake.txt geschrieben läuft ohne Fehler durch aber wo finde ich jetzt "OUTPUT_SCRIPT deploy_script" mfg
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    SGaistS
    Hi, Akismet can be sensitive sometimes. What exactly did you want to add to your post ? I have not understood.