Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Plugin linking error with conan qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
QtWS25 Last Chance

Plugin linking error with conan qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

Scheduled Pinned Locked Moved Solved Installation and Deployment
16 Posts 2 Posters 344 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Remnant
    wrote 16 days ago last edited by Remnant
    #7

    Hello so I have looked around and I am not entirely sure what package I am supposed to link with

    qt_import_plugins()
    

    I have looked around and I have not found any good plugin to import I do not understand where to find the list of plugins to import to ensure bridging to wayland

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote 16 days ago last edited by
      #8

      There's indeed no list however you can lookup for QXyzPlugin in Qt's sources under the src/plugins folders.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Remnant
        wrote 15 days ago last edited by
        #9
        .
        ├── _clang-format
        ├── cmake
        ├── CMakeLists.txt
        ├── CMakeUserPresets.json
        ├── coin
        ├── configure
        ├── configure.bat
        ├── configure.json
        ├── CONTRIBUTING.md
        ├── LICENSES
        ├── qt3d
        ├── qt5compat
        ├── qtactiveqt
        ├── qtbase
        ├── qtcharts
        ├── qtcoap
        ├── qtconnectivity
        ├── qtdatavis3d
        ├── qtdeclarative
        ├── qtdoc
        ├── qtgraphs
        ├── qtgrpc
        ├── qthttpserver
        ├── qtimageformats
        ├── qtlanguageserver
        ├── qtlocation
        ├── qtlottie
        ├── qtmqtt
        ├── qtmultimedia
        ├── qtnetworkauth
        ├── qtopcua
        ├── qtpositioning
        ├── qtquick3d
        ├── qtquick3dphysics
        ├── qtquickeffectmaker
        ├── qtquicktimeline
        ├── qtremoteobjects
        ├── qtscxml
        ├── qtsensors
        ├── qtserialbus
        ├── qtserialport
        ├── qtshadertools
        ├── qtspeech
        ├── qtsvg
        ├── qttools
        ├── qttranslations
        ├── qtvirtualkeyboard
        ├── qtwayland
        ├── qtwebchannel
        ├── qtwebengine
        ├── qtwebsockets
        ├── qtwebview
        ├── README.md
        └── README.md.template
        

        Hi so I am not entirely sure how the conan recipe is made but looking inside the src folder inside .conan2 I have the impression it has not been compiled exactly from a clone of the github. The only interesting thing I found was in the examples of qtwayland folder the inclusion of the Qt::WaylandCompositor in the CmakeLists but when I run cmake it does not find that package.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote 14 days ago last edited by
          #10

          GitHub is just a mirror.

          If you want a full Qt checkout, there's a script in the qt5 repo that will do that properly. However that is not the subject here.

          The plug-in you are after should be in the qtwayland submodule.
          I was just thinking about something, you should have the libraries and plugins build somewhere on your filesystem. There you should be able to see exactly what is available.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Remnant
            wrote 13 days ago last edited by Remnant
            #11

            .So I have found the include dir with a little bit of grepping and this is what I have found inside the include files. there is Qt6::Wayland compositor and qtClient

            ├── QtConcurrent
            ├── QtCore
            ├── QtDBus
            ├── QtDesigner
            ├── QtDesignerComponents
            ├── QtDeviceDiscoverySupport
            ├── QtEglFSDeviceIntegration
            ├── QtEglFsKmsGbmSupport
            ├── QtEglFsKmsSupport
            ├── QtFbSupport
            ├── QtGui
            ├── QtHelp
            ├── QtInputSupport
            ├── QtKmsSupport
            ├── QtNetwork
            ├── QtOpenGL
            ├── QtOpenGLWidgets
            ├── QtPrintSupport
            ├── QtSql
            ├── QtTest
            ├── QtTools
            ├── QtUiPlugin
            ├── QtUiTools
            ├── QtWaylandClient
            ├── QtWaylandCompositor
            ├── QtWaylandEglClientHwIntegration
            ├── QtWaylandEglCompositorHwIntegration
            ├── QtWaylandGlobal
            ├── QtWidgets
            ├── QtWlShellIntegration
            └── QtXml
            

            Then This is my CMakeLists file

            cmake_minimum_required(VERSION 3.15)
            project(MyQtApp)
            find_package(Qt6 REQUIRED COMPONENTS Core GUI WaylandCompositor)
            
            
            set(CMAKE_CXX_STANDARD 17)
            
            
            qt_import_plugins(Qt6::WaylandCompositor)
            
            qt_add_executable(MyQtApp
                main.cpp)
            
            target_link_libraries(MyQtApp PUBLIC Qt6::Core Qt6::Gui qt::qt Qt6::WaylandCompositor)
            

            with a CMake Error saying package not found only on Qt6::WaylandCompositor or WaylandClient

            and Qt6WaylandCompositor is also present in the cmake directory

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Remnant
              wrote 13 days ago last edited by
              #12

              I am also a bit lost why does QLibraryInfo link to my .conan2 folder (does this indicate from where the binaries were built)?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote 13 days ago last edited by
                #13

                It was rather the librairies folder that you should have looked in.

                I think the name of the plug-in is QWaylandIntegrationPlugin.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Remnant
                  wrote 13 days ago last edited by Remnant
                  #14

                  Okay so I have found the solution to this question you have to export these environment vars
                  QT_QPA_PLATFORM_PLUGIN_PATH (somewhere in /usr/lib)
                  QT_PLUGIN_PATH (somewhere in /usr/lib)

                  then run your app and it should work. I still have some obscure issues but this got me further. I'll open another post if my other problems persist

                  1 Reply Last reply
                  0
                  • R Remnant has marked this topic as solved 13 days ago
                  • R Offline
                    R Offline
                    Remnant
                    wrote 12 days ago last edited by
                    #15

                    Thank you for having taken the time to answer

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote 12 days ago last edited by
                      #16

                      Glad you found a solution and thanks for sharing ! :-)

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • R Remnant referenced this topic 11 days ago

                      16/16

                      27 Apr 2025, 18:31

                      • Login

                      • Login or register to search.
                      16 out of 16
                      • First post
                        16/16
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved