Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Could not find the Qt platform plugin "eglfs" in ""
Forum Updated to NodeBB v4.3 + New Features

Could not find the Qt platform plugin "eglfs" in ""

Scheduled Pinned Locked Moved Unsolved General and Desktop
42 Posts 5 Posters 12.9k Views 2 Watching
  • 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.
  • JKSHJ JKSH

    @kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":

    I typed the command "sudo apt install qtcreator" in terminal and ran it

    As @JonB said, Qt Creator is an IDE. You need to install Qt libraries too.

    Also, it's not clear from your post:

    1. Did you get the error message when trying to run Qt Creator? Or did you get the error message when trying to run your project executable?
    2. Did you install Qt Creator on the Pi directly? Or did you install it on your host PC?
    K Offline
    K Offline
    kutluyigitturk
    wrote on last edited by
    #6

    @JKSH I get the error message when trying to run my project executable. I did install it on my host PC.

    I sent the executable version of the project I created to Orange Pi and was able to run the project file with the ./OrangeDemoQqml command in the Orange Pi terminal. But after accessing Orange Pi via SSH connection from my host computer, I type ./OrangeDemoQml in the terminal and I get an error.!

    error.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #7

      Hi,

      Start it with the QT_DEBUG_PLUGINS environment variable set to 1 to see why exactly it fails to load the plugin.

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

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Start it with the QT_DEBUG_PLUGINS environment variable set to 1 to see why exactly it fails to load the plugin.

        K Offline
        K Offline
        kutluyigitturk
        wrote on last edited by
        #8

        @SGaist I don't know exactly how to do this, can you describe?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #9
          export QT_DEBUG_PLUGINS=1
          

          Then call your application.

          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
          • K Offline
            K Offline
            kutluyigitturk
            wrote on last edited by
            #10

            @SGaist said in Could not find the Qt platform plugin "eglfs" in "":

            export QT_DEBUG_PLUGINS=1

            These are the output lines

            QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5opi/plugins/platforms" ...
            QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqlinuxfb.so"
            Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqlinuxfb.so, metadata=
            {
                "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                "MetaData": {
                    "Keys": [
                        "linuxfb"
                    ]
                },
                "archreq": 0,
                "className": "QLinuxFbIntegrationPlugin",
                "debug": false,
                "version": 331520
            }
            
            
            Got keys from plugin meta data ("linuxfb")
            QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqminimal.so"
            Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqminimal.so, metadata=
            {
                "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                "MetaData": {
                    "Keys": [
                        "minimal"
                    ]
                },
                "archreq": 0,
                "className": "QMinimalIntegrationPlugin",
                "debug": false,
                "version": 331520
            }
            
            
            Got keys from plugin meta data ("minimal")
            QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqoffscreen.so"
            Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqoffscreen.so, metadata=
            {
                "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                "MetaData": {
                    "Keys": [
                        "offscreen"
                    ]
                },
                "archreq": 0,
                "className": "QOffscreenIntegrationPlugin",
                "debug": false,
                "version": 331520
            }
            
            
            Got keys from plugin meta data ("offscreen")
            QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqvnc.so"
            Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqvnc.so, metadata=
            {
                "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                "MetaData": {
                    "Keys": [
                        "vnc"
                    ]
                },
                "archreq": 0,
                "className": "QVncIntegrationPlugin",
                "debug": false,
                "version": 331520
            }
            
            
            Got keys from plugin meta data ("vnc")
            QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqwebgl.so"
            Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqwebgl.so, metadata=
            {
                "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                "MetaData": {
                    "Keys": [
                        "webgl"
                    ]
                },
                "archreq": 0,
                "className": "QWebGLIntegrationPlugin",
                "debug": false,
                "version": 331520
            }
            
            
            Got keys from plugin meta data ("webgl")
            QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqxcb.so"
            Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqxcb.so, metadata=
            {
                "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                "MetaData": {
                    "Keys": [
                        "xcb"
                    ]
                },
                "archreq": 0,
                "className": "QXcbIntegrationPlugin",
                "debug": false,
                "version": 331520
            }
            
            
            Got keys from plugin meta data ("xcb")
            QFactoryLoader::QFactoryLoader() checking directory path "/home/opi/platforms" ...
            qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
            This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
            
            Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb.
            
            Aborted
            
            
            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #11

              Then the version of Qt you have currently installed on your target does not provide that plugin.

              Did you deploy the one you use for cross-compiling your application ?

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

              K 1 Reply Last reply
              0
              • SGaistS SGaist

                Then the version of Qt you have currently installed on your target does not provide that plugin.

                Did you deploy the one you use for cross-compiling your application ?

                K Offline
                K Offline
                kutluyigitturk
                wrote on last edited by
                #12

                @SGaist

                I do not have qt installed on the Orange Pi that I intend to run.

                I think our main goal is to transfer executable files of qt projects to Orange Pi and connect remotely via ssh and run projects on Orange Pi.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #13

                  How did you install Qt on the OrangePi ?

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

                  K 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    How did you install Qt on the OrangePi ?

                    K Offline
                    K Offline
                    kutluyigitturk
                    wrote on last edited by
                    #14

                    @SGaist I did not install Qt on the Orange Pi. I installed it on my host computer.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #15

                      That path /usr/local/qt5opi/ suggests a non standard installation. Hence it would be good to know how it was installed.

                      In any case, you have a cross-compiled Qt version on your host, correct ? If so, you should deploy it on your device so your application can use it.

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

                      K 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        That path /usr/local/qt5opi/ suggests a non standard installation. Hence it would be good to know how it was installed.

                        In any case, you have a cross-compiled Qt version on your host, correct ? If so, you should deploy it on your device so your application can use it.

                        K Offline
                        K Offline
                        kutluyigitturk
                        wrote on last edited by kutluyigitturk
                        #16

                        @SGaist
                        What am I supposed to understand from this deployment process? How can I do the deploy process? By the way, I leave the youtube link I took as an example here, this is how I installed it.

                        https://youtu.be/TmtN3Rmx9Rk

                        If you watch the video, you will understand how I installed it. I'm a bit of a novice in these matters and solving this problem will add a lot to me.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #17

                          Do you want to run your application on EGLFS or X11 like the video shows how to do ?

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

                          K 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            Do you want to run your application on EGLFS or X11 like the video shows how to do ?

                            K Offline
                            K Offline
                            kutluyigitturk
                            wrote on last edited by
                            #18

                            @SGaist It makes no difference to me, I don't know the difference between the two? Is there a performance difference between the two?

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #19

                              The first one uses the hardware directly and does not provide windowing capabilities the other uses the Xorg server. Like most desktop installation (unless they run in Wayland).

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

                              K 1 Reply Last reply
                              0
                              • SGaistS SGaist

                                The first one uses the hardware directly and does not provide windowing capabilities the other uses the Xorg server. Like most desktop installation (unless they run in Wayland).

                                K Offline
                                K Offline
                                kutluyigitturk
                                wrote on last edited by
                                #20

                                @SGaist The Project I've created aims to command GPIO pins. Which do you think would be better for me to do?

                                JKSHJ 1 Reply Last reply
                                0
                                • K kutluyigitturk

                                  @SGaist The Project I've created aims to command GPIO pins. Which do you think would be better for me to do?

                                  JKSHJ Offline
                                  JKSHJ Offline
                                  JKSH
                                  Moderators
                                  wrote on last edited by
                                  #21

                                  @kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":

                                  The Project I've created aims to command GPIO pins. Which do you think would be better for me to do?

                                  Does your project need a GUI?

                                  Since you are driving GPIO pins and you are running the application via SSH, that suggests to me that you don't need either EGLFS or X11. If that's the case, make your project a Console application instead of a GUI application -- then you won't need any of these GUI plugins.

                                  (see https://doc.qt.io/qtcreator/creator-project-creating.html and select "Qt Console Application" when you create a project)

                                  However, to make it a Console application, you must remove all GUI-related code (including Qt Quick) from your project.

                                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                  K 1 Reply Last reply
                                  0
                                  • JKSHJ JKSH

                                    @kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":

                                    The Project I've created aims to command GPIO pins. Which do you think would be better for me to do?

                                    Does your project need a GUI?

                                    Since you are driving GPIO pins and you are running the application via SSH, that suggests to me that you don't need either EGLFS or X11. If that's the case, make your project a Console application instead of a GUI application -- then you won't need any of these GUI plugins.

                                    (see https://doc.qt.io/qtcreator/creator-project-creating.html and select "Qt Console Application" when you create a project)

                                    However, to make it a Console application, you must remove all GUI-related code (including Qt Quick) from your project.

                                    K Offline
                                    K Offline
                                    kutluyigitturk
                                    wrote on last edited by
                                    #22

                                    @JKSH I aim to control the GPIO pins with the help of an interface. So "Qt Console Application" doesn't really solve my problem.

                                    I attach the video link I was inspired by,
                                    https://youtu.be/lh8lqtgzqYA

                                    JKSHJ 1 Reply Last reply
                                    0
                                    • K kutluyigitturk

                                      @JKSH I aim to control the GPIO pins with the help of an interface. So "Qt Console Application" doesn't really solve my problem.

                                      I attach the video link I was inspired by,
                                      https://youtu.be/lh8lqtgzqYA

                                      JKSHJ Offline
                                      JKSHJ Offline
                                      JKSH
                                      Moderators
                                      wrote on last edited by
                                      #23

                                      @kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":

                                      I attach the video link I was inspired by,
                                      https://youtu.be/lh8lqtgzqYA

                                      Raspberry Pi is not Orange Pi.

                                      Your Orange Pi has Qt installed in /usr/local/qt5opi/. How did it get there? Did you install it, or does it come with the Orange Pi?

                                      If it comes with the Orange Pi, I suggest you ask the producers of Orange Pi for instructions on how to use their software distribution.

                                      Alternatively, try to force it to use the xcb plugin instead of the eglfs plugin and see what happens. From SSH, call ./OrangeDemlQml -platform xcb

                                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                      K 1 Reply Last reply
                                      1
                                      • JKSHJ JKSH

                                        @kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":

                                        I attach the video link I was inspired by,
                                        https://youtu.be/lh8lqtgzqYA

                                        Raspberry Pi is not Orange Pi.

                                        Your Orange Pi has Qt installed in /usr/local/qt5opi/. How did it get there? Did you install it, or does it come with the Orange Pi?

                                        If it comes with the Orange Pi, I suggest you ask the producers of Orange Pi for instructions on how to use their software distribution.

                                        Alternatively, try to force it to use the xcb plugin instead of the eglfs plugin and see what happens. From SSH, call ./OrangeDemlQml -platform xcb

                                        K Offline
                                        K Offline
                                        kutluyigitturk
                                        wrote on last edited by
                                        #24

                                        @JKSH I am creating the folder named /qt5opi in the /usr/local directory. I create with this command, sudo mkdir /usr/local/qt5opi . You can see the same process when you open the 14th minute of the video.

                                        When I execute this command ./OrangeDemoQml -platform xcb I get a very similar error.

                                        ./OrangeDemoQml -platform xcb is the error I get when I execute this command:

                                        qt.qpa.xcb: could not connect to display 
                                        qt.qpa.plugin: Could not load the Qt platform plugin "xcb" 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: linuxfb, minimal, offscreen, vnc, webgl, xcb.
                                        
                                        Aborted
                                        

                                        Errors I get after running export QT_DEBUG_PLUGINS=1

                                        QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5opi/plugins/platforms" ...
                                        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqlinuxfb.so"
                                        Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqlinuxfb.so, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "linuxfb"
                                                ]
                                            },
                                            "archreq": 0,
                                            "className": "QLinuxFbIntegrationPlugin",
                                            "debug": false,
                                            "version": 331520
                                        }
                                        
                                        
                                        Got keys from plugin meta data ("linuxfb")
                                        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqminimal.so"
                                        Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqminimal.so, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "minimal"
                                                ]
                                            },
                                            "archreq": 0,
                                            "className": "QMinimalIntegrationPlugin",
                                            "debug": false,
                                            "version": 331520
                                        }
                                        
                                        
                                        Got keys from plugin meta data ("minimal")
                                        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqoffscreen.so"
                                        Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqoffscreen.so, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "offscreen"
                                                ]
                                            },
                                            "archreq": 0,
                                            "className": "QOffscreenIntegrationPlugin",
                                            "debug": false,
                                            "version": 331520
                                        }
                                        
                                        
                                        Got keys from plugin meta data ("offscreen")
                                        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqvnc.so"
                                        Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqvnc.so, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "vnc"
                                                ]
                                            },
                                            "archreq": 0,
                                            "className": "QVncIntegrationPlugin",
                                            "debug": false,
                                            "version": 331520
                                        }
                                        
                                        
                                        Got keys from plugin meta data ("vnc")
                                        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqwebgl.so"
                                        Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqwebgl.so, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "webgl"
                                                ]
                                            },
                                            "archreq": 0,
                                            "className": "QWebGLIntegrationPlugin",
                                            "debug": false,
                                            "version": 331520
                                        }
                                        
                                        
                                        Got keys from plugin meta data ("webgl")
                                        QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqxcb.so"
                                        Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqxcb.so, metadata=
                                        {
                                            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                            "MetaData": {
                                                "Keys": [
                                                    "xcb"
                                                ]
                                            },
                                            "archreq": 0,
                                            "className": "QXcbIntegrationPlugin",
                                            "debug": false,
                                            "version": 331520
                                        }
                                        
                                        
                                        Got keys from plugin meta data ("xcb")
                                        QFactoryLoader::QFactoryLoader() checking directory path "/home/opi/platforms" ...
                                        loaded library "/usr/local/qt5opi/plugins/platforms/libqxcb.so"
                                        qt.qpa.xcb: could not connect to display 
                                        qt.qpa.plugin: Could not load the Qt platform plugin "xcb" 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: linuxfb, minimal, offscreen, vnc, webgl, xcb.
                                        
                                        Aborted
                                        
                                        
                                        JKSHJ B 2 Replies Last reply
                                        0
                                        • K kutluyigitturk

                                          @JKSH I am creating the folder named /qt5opi in the /usr/local directory. I create with this command, sudo mkdir /usr/local/qt5opi . You can see the same process when you open the 14th minute of the video.

                                          When I execute this command ./OrangeDemoQml -platform xcb I get a very similar error.

                                          ./OrangeDemoQml -platform xcb is the error I get when I execute this command:

                                          qt.qpa.xcb: could not connect to display 
                                          qt.qpa.plugin: Could not load the Qt platform plugin "xcb" 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: linuxfb, minimal, offscreen, vnc, webgl, xcb.
                                          
                                          Aborted
                                          

                                          Errors I get after running export QT_DEBUG_PLUGINS=1

                                          QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5opi/plugins/platforms" ...
                                          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqlinuxfb.so"
                                          Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqlinuxfb.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "linuxfb"
                                                  ]
                                              },
                                              "archreq": 0,
                                              "className": "QLinuxFbIntegrationPlugin",
                                              "debug": false,
                                              "version": 331520
                                          }
                                          
                                          
                                          Got keys from plugin meta data ("linuxfb")
                                          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqminimal.so"
                                          Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqminimal.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "minimal"
                                                  ]
                                              },
                                              "archreq": 0,
                                              "className": "QMinimalIntegrationPlugin",
                                              "debug": false,
                                              "version": 331520
                                          }
                                          
                                          
                                          Got keys from plugin meta data ("minimal")
                                          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqoffscreen.so"
                                          Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqoffscreen.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "offscreen"
                                                  ]
                                              },
                                              "archreq": 0,
                                              "className": "QOffscreenIntegrationPlugin",
                                              "debug": false,
                                              "version": 331520
                                          }
                                          
                                          
                                          Got keys from plugin meta data ("offscreen")
                                          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqvnc.so"
                                          Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqvnc.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "vnc"
                                                  ]
                                              },
                                              "archreq": 0,
                                              "className": "QVncIntegrationPlugin",
                                              "debug": false,
                                              "version": 331520
                                          }
                                          
                                          
                                          Got keys from plugin meta data ("vnc")
                                          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqwebgl.so"
                                          Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqwebgl.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "webgl"
                                                  ]
                                              },
                                              "archreq": 0,
                                              "className": "QWebGLIntegrationPlugin",
                                              "debug": false,
                                              "version": 331520
                                          }
                                          
                                          
                                          Got keys from plugin meta data ("webgl")
                                          QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5opi/plugins/platforms/libqxcb.so"
                                          Found metadata in lib /usr/local/qt5opi/plugins/platforms/libqxcb.so, metadata=
                                          {
                                              "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                                              "MetaData": {
                                                  "Keys": [
                                                      "xcb"
                                                  ]
                                              },
                                              "archreq": 0,
                                              "className": "QXcbIntegrationPlugin",
                                              "debug": false,
                                              "version": 331520
                                          }
                                          
                                          
                                          Got keys from plugin meta data ("xcb")
                                          QFactoryLoader::QFactoryLoader() checking directory path "/home/opi/platforms" ...
                                          loaded library "/usr/local/qt5opi/plugins/platforms/libqxcb.so"
                                          qt.qpa.xcb: could not connect to display 
                                          qt.qpa.plugin: Could not load the Qt platform plugin "xcb" 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: linuxfb, minimal, offscreen, vnc, webgl, xcb.
                                          
                                          Aborted
                                          
                                          
                                          JKSHJ Offline
                                          JKSHJ Offline
                                          JKSH
                                          Moderators
                                          wrote on last edited by
                                          #25

                                          @kutluyigitturk said in Could not find the Qt platform plugin "eglfs" in "":

                                          You can see the same process when you open the 14th minute of the video.

                                          ? The video is less than 6 minutes long.

                                          I am creating the folder named /qt5opi in the /usr/local directory. I create with this command, sudo mkdir /usr/local/qt5opi

                                          OK, where do the .so files (like libQt5Core.so) come from?

                                          When I execute this command ./OrangeDemoQml -platform xcb I get a very similar error.

                                          The root cause is very different.

                                          • The "eglfs" plugin failed to load because the plugin does not exist.
                                          • The "xcb" plugin failed because your X Server could not connect to your display: "qt.qpa.xcb: could not connect to display "

                                          Do you have a display attached to your device? Have you logged into the display with the same Pi account that you used with SSH?

                                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                          K 2 Replies Last reply
                                          0

                                          • Login

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