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. Urgent Help Needed to build Linux distribution
Forum Update on Monday, May 27th 2025

Urgent Help Needed to build Linux distribution

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
63 Posts 4 Posters 28.0k 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 Ram_Thakkar77

    @jsulm, no i didn't create any plug in directory in that folder and from where i will find that xcb plugin.

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #26

    @Ram_Thakkar77 Well, you have to. Qt plug-ins are in "plugins" subdirectory of you Qt installation.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    R 1 Reply Last reply
    0
    • jsulmJ jsulm

      @Ram_Thakkar77 Well, you have to. Qt plug-ins are in "plugins" subdirectory of you Qt installation.

      R Offline
      R Offline
      Ram_Thakkar77
      wrote on last edited by
      #27

      @jsulm, i pasted plugins folder from Qt installation path and here is the screenshot of same:
      Screenshot

      jsulmJ 1 Reply Last reply
      0
      • R Ram_Thakkar77

        @jsulm, i pasted plugins folder from Qt installation path and here is the screenshot of same:
        Screenshot

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #28

        @Ram_Thakkar77 No need to copy the whole plugin folder from Qt!
        Create empty plugins subdirectory and put libqxcb.so from plugins/platforms of your Qt installation there.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        R 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Ram_Thakkar77 No need to copy the whole plugin folder from Qt!
          Create empty plugins subdirectory and put libqxcb.so from plugins/platforms of your Qt installation there.

          R Offline
          R Offline
          Ram_Thakkar77
          wrote on last edited by Ram_Thakkar77
          #29

          @jsulm, i didnt found any libqxcb.so file in QT installation path. I found only libqxcb.so file and pasted in plugin folder but getting same error.

          @jsulm sorry libqxcb.so i found but its giving me same error.

          jsulmJ 2 Replies Last reply
          0
          • R Ram_Thakkar77

            @jsulm, i didnt found any libqxcb.so file in QT installation path. I found only libqxcb.so file and pasted in plugin folder but getting same error.

            @jsulm sorry libqxcb.so i found but its giving me same error.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #30

            @Ram_Thakkar77 Did you call the directory plugins or plugin? It should be plugins.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Ram_Thakkar77 Did you call the directory plugins or plugin? It should be plugins.

              R Offline
              R Offline
              Ram_Thakkar77
              wrote on last edited by
              #31

              @jsulm Its plugins.

              1 Reply Last reply
              0
              • R Ram_Thakkar77

                @jsulm, i didnt found any libqxcb.so file in QT installation path. I found only libqxcb.so file and pasted in plugin folder but getting same error.

                @jsulm sorry libqxcb.so i found but its giving me same error.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #32

                @Ram_Thakkar77 Keep in mind: libqxcb.so depends on other libraries. You can find out which libraries by calling:

                ldd PATH_TO_LIBQXCB.SO
                

                But don't pu all of them in your package, only those from Qt.
                You will probably need libQt5XcbQpa.so.5 lib in your package as well.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                R 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Ram_Thakkar77 Keep in mind: libqxcb.so depends on other libraries. You can find out which libraries by calling:

                  ldd PATH_TO_LIBQXCB.SO
                  

                  But don't pu all of them in your package, only those from Qt.
                  You will probably need libQt5XcbQpa.so.5 lib in your package as well.

                  R Offline
                  R Offline
                  Ram_Thakkar77
                  wrote on last edited by
                  #33

                  @jsulm Pasted above mentioned file but no luck. Getting same error.

                  R 1 Reply Last reply
                  0
                  • R Ram_Thakkar77

                    @jsulm Pasted above mentioned file but no luck. Getting same error.

                    R Offline
                    R Offline
                    Ram_Thakkar77
                    wrote on last edited by
                    #34

                    ??.. Any suggestion??

                    jsulmJ 1 Reply Last reply
                    0
                    • R Ram_Thakkar77

                      ??.. Any suggestion??

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #35

                      @Ram_Thakkar77 Did you put libQt5XcbQpa.so.5 and libQt5XcbQpa.so.5.7.1 in the directory where the script is?
                      Maybe somebody else has an idea?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      p3c0P 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @Ram_Thakkar77 Did you put libQt5XcbQpa.so.5 and libQt5XcbQpa.so.5.7.1 in the directory where the script is?
                        Maybe somebody else has an idea?

                        p3c0P Offline
                        p3c0P Offline
                        p3c0
                        Moderators
                        wrote on last edited by
                        #36

                        Well everything looks fine to me. Perhaps OP should run through all the steps once again. Check xcb's dependencies. Also Not required but try setting QT_PLUGIN_PATH explicitly. That's all I can think for now.

                        157

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          Ram_Thakkar77
                          wrote on last edited by
                          #37

                          I already pasted libQt5XcbQpa.so.5 and libQt5XcbQpa.so.5.7.1 files in main directory as well as in plugins folder also. I also added QT_PLUGIN_PATH in .sh file and below is my .sh file code:

                          #!/bin/sh
                          appname=`basename $0 | sed s,\.sh$,,`
                          
                          dirname=`dirname $0`
                          tmp="${dirname#?}"
                          
                          if [ "${dirname%$tmp}" != "/" ]; then
                          dirname=$PWD/$dirname
                          fi
                          LD_LIBRARY_PATH=$dirname
                          
                          export LD_LIBRARY_PATH
                          export QT_PLUGIN_PATH=$dirname/plugins
                          $dirname/$appname "$@"
                          

                          now the error is changed and here is the screen shot of error as well as my folder structure

                          Screenshot

                          1 Reply Last reply
                          0
                          • p3c0P Offline
                            p3c0P Offline
                            p3c0
                            Moderators
                            wrote on last edited by p3c0
                            #38

                            @Ram_Thakkar77 According to the error QtWebEngineProcess is also required. Try copying it too. It is at location for eg.:
                            5.7/gcc_64/libexec/QtWebEngineProcess

                            Edit: Not sure of the first error.

                            157

                            1 Reply Last reply
                            0
                            • R Offline
                              R Offline
                              Ram_Thakkar77
                              wrote on last edited by
                              #39

                              OMG, streching my hairs. After copying QtWebEngineProcess Now getting so many error:

                              QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
                              WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
                              Qt WebEngine ICU data not found at /opt/Qt5.7.1/5.7/gcc_64/resources. Trying parent directory...
                              Qt WebEngine ICU data not found at /opt/Qt5.7.1/5.7/gcc_64. Trying application directory...
                              Qt WebEngine ICU data not found at /root/Desktop/QTEXETesting. Trying fallback directory... The application MAY NOT work.
                              
                              
                              1 Reply Last reply
                              0
                              • p3c0P Offline
                                p3c0P Offline
                                p3c0
                                Moderators
                                wrote on last edited by
                                #40

                                @Ram_Thakkar77 Well I think you need to check this too.
                                http://doc.qt.io/qt-5/qtwebengine-deploying.html

                                157

                                R 1 Reply Last reply
                                0
                                • p3c0P p3c0

                                  @Ram_Thakkar77 Well I think you need to check this too.
                                  http://doc.qt.io/qt-5/qtwebengine-deploying.html

                                  R Offline
                                  R Offline
                                  Ram_Thakkar77
                                  wrote on last edited by
                                  #41

                                  @p3c0, After reading above link i pasted all files mentioned in that pages to my directory but still getting same error. any other way around to solve this issue??

                                  1 Reply Last reply
                                  0
                                  • p3c0P Offline
                                    p3c0P Offline
                                    p3c0
                                    Moderators
                                    wrote on last edited by
                                    #42

                                    @Ram_Thakkar77

                                    Qt WebEngine ICU data not found at /root/Desktop/QTEXETesting. Trying fallback directory... The application MAY NOT work.

                                    Did you deploy all the file as said here ?
                                    http://doc.qt.io/qt-5/qtwebengine-deploying.html#deploying-resources

                                    at path /root/Desktop/QTEXETesting

                                    157

                                    1 Reply Last reply
                                    0
                                    • R Offline
                                      R Offline
                                      Ram_Thakkar77
                                      wrote on last edited by
                                      #43

                                      I pasted all files in same path and here is the scree shot of same
                                      Screen shot

                                      1 Reply Last reply
                                      0
                                      • p3c0P Offline
                                        p3c0P Offline
                                        p3c0
                                        Moderators
                                        wrote on last edited by
                                        #44

                                        @Ram_Thakkar77 Well it seems that the resources were found inside the application directory but there seems to be library incompatibility issues as seen the end.
                                        Do you already have Qt installed at the default path on deployment machine ?
                                        I'm too not sure which library is referring to older one. You just need to ldd to check if libraries from default path are referred.

                                        157

                                        R 1 Reply Last reply
                                        0
                                        • p3c0P p3c0

                                          @Ram_Thakkar77 Well it seems that the resources were found inside the application directory but there seems to be library incompatibility issues as seen the end.
                                          Do you already have Qt installed at the default path on deployment machine ?
                                          I'm too not sure which library is referring to older one. You just need to ldd to check if libraries from default path are referred.

                                          R Offline
                                          R Offline
                                          Ram_Thakkar77
                                          wrote on last edited by
                                          #45

                                          @p3c0, yes QT is installed on my machine but for testing purpose i just renamed QT folder. I just need to check that whether without QT folder its working or not??

                                          1 Reply 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