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 Updated to NodeBB v4.3 + New Features

Urgent Help Needed to build Linux distribution

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
63 Posts 4 Posters 28.2k 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.
  • 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
                        • p3c0P Offline
                          p3c0P Offline
                          p3c0
                          Moderators
                          wrote on last edited by
                          #46

                          Try. You actually need to find out which new library is referring to default one.

                          157

                          R 1 Reply Last reply
                          0
                          • p3c0P p3c0

                            Try. You actually need to find out which new library is referring to default one.

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

                            @p3c0, Actually i tried a lot but not managed to find out what is the actual cause. Its very urgent, i need to redistribute my qt made application to some one. So please help me out for this problem.

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

                              @Ram_Thakkar77 Can you post output of ldd QtWebEngineProcess which is present in your application directory ?

                              157

                              R 1 Reply Last reply
                              0
                              • p3c0P p3c0

                                @Ram_Thakkar77 Can you post output of ldd QtWebEngineProcess which is present in your application directory ?

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

                                @p3c0m here is the link for same ldd QtWebEngineProcess

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

                                  @Ram_Thakkar77 Well Sorry reframing.. does the ldd show same dependencies when you run the script ?

                                  157

                                  R 1 Reply Last reply
                                  0
                                  • p3c0P p3c0

                                    @Ram_Thakkar77 Well Sorry reframing.. does the ldd show same dependencies when you run the script ?

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

                                    @p3c0 on terminal I am getting below error :

                                    root@ashavin-desktop:~# '/root/Desktop/QTEXETesting/QTBrowser.sh' 
                                    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...
                                    Installed Qt WebEngine locales directory not found at location /opt/Qt5.7.1/5.7/gcc_64/translations/qtwebengine_locales. Trying application directory...
                                    Qt WebEngine resources not found at /opt/Qt5.7.1/5.7/gcc_64/resources. Trying parent directory...
                                    Qt WebEngine resources not found at /opt/Qt5.7.1/5.7/gcc_64. Trying application directory...
                                    [0215/122421:WARNING:resource_bundle.cc(311)] locale_file_path.empty() for locale 
                                    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...
                                    Installed Qt WebEngine locales directory not found at location /opt/Qt5.7.1/5.7/gcc_64/translations/qtwebengine_locales. Trying application directory...
                                    Qt WebEngine resources not found at /opt/Qt5.7.1/5.7/gcc_64/resources. Trying parent directory...
                                    Qt WebEngine resources not found at /opt/Qt5.7.1/5.7/gcc_64. Trying application directory...
                                    [0215/122422:WARNING:resource_bundle.cc(311)] locale_file_path.empty() for locale 
                                    Cannot mix incompatible Qt library (version 0x50201) with this library (version 0x50701)
                                    Aborted (core dumped)
                                    
                                    1 Reply Last reply
                                    0
                                    • p3c0P Offline
                                      p3c0P Offline
                                      p3c0
                                      Moderators
                                      wrote on last edited by
                                      #52

                                      @Ram_Thakkar77 Can you do ldd on QtWebEngineProcess inside the script because that is where you export library paths and that is where we can find what QtWebEngineProcess uses.

                                      157

                                      R 1 Reply Last reply
                                      0
                                      • p3c0P p3c0

                                        @Ram_Thakkar77 Can you do ldd on QtWebEngineProcess inside the script because that is where you export library paths and that is where we can find what QtWebEngineProcess uses.

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

                                        @p3c0 here it is:

                                        Start ldd of QtWebEngineProcess
                                        /root/Desktop/QTEXETesting/QtWebEngineProcess: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /root/Desktop/QTEXETesting/QtWebEngineProcess)
                                        	linux-vdso.so.1 =>  (0x00007fff59b42000)
                                        	libQt5WebEngineCore.so.5 => not found
                                        	libQt5Quick.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5 (0x00007f8a03b03000)
                                        	libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f8a034b5000)
                                        	libQt5WebChannel.so.5 => not found
                                        	libQt5Qml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007f8a02eae000)
                                        	libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f8a02b69000)
                                        	libQt5Positioning.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Positioning.so.5 (0x00007f8a02934000)
                                        	libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f8a0228e000)
                                        	libGL.so.1 => /usr/lib/nvidia-340/libGL.so.1 (0x00007f8a01f41000)
                                        	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8a01d23000)
                                        	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8a01a1f000)
                                        	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8a01718000)
                                        	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8a01502000)
                                        	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8a0113d000)
                                        	libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f8a00f16000)
                                        	libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f8a00cc1000)
                                        	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8a00aa8000)
                                        	libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007f8a006a0000)
                                        	libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007f8a00327000)
                                        	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8a00123000)
                                        	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f89ffe1a000)
                                        	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f89ffc12000)
                                        	/lib64/ld-linux-x86-64.so.2 (0x000055d2d4cd5000)
                                        	libnvidia-tls.so.340.101 => /usr/lib/nvidia-340/tls/libnvidia-tls.so.340.101 (0x00007f89ffa0f000)
                                        	libnvidia-glcore.so.340.101 => /usr/lib/nvidia-340/libnvidia-glcore.so.340.101 (0x00007f89fcdfa000)
                                        	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f89fcac5000)
                                        	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f89fc8b3000)
                                        	libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f89fc60f000)
                                        	libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f89fc3e9000)
                                        	libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007f89fab7b000)
                                        	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f89fa93d000)
                                        	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f89fa71d000)
                                        	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f89fa519000)
                                        	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f89fa313000)
                                        Finished ldd of QtWebEngineProcess
                                        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...
                                        Installed Qt WebEngine locales directory not found at location /opt/Qt5.7.1/5.7/gcc_64/translations/qtwebengine_locales. Trying application directory...
                                        Qt WebEngine resources not found at /opt/Qt5.7.1/5.7/gcc_64/resources. Trying parent directory...
                                        Qt WebEngine resources not found at /opt/Qt5.7.1/5.7/gcc_64. Trying application directory...
                                        [0215/123909:WARNING:resource_bundle.cc(311)] locale_file_path.empty() for locale 
                                        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...
                                        Installed Qt WebEngine locales directory not found at location /opt/Qt5.7.1/5.7/gcc_64/translations/qtwebengine_locales. Trying application directory...
                                        Qt WebEngine resources not found at /opt/Qt5.7.1/5.7/gcc_64/resources. Trying parent directory...
                                        Qt WebEngine resources not found at /opt/Qt5.7.1/5.7/gcc_64. Trying application directory...
                                        [0215/123909:WARNING:resource_bundle.cc(311)] locale_file_path.empty() for locale 
                                        Cannot mix incompatible Qt library (version 0x50201) with this library (version 0x50701)
                                        Aborted (core dumped)
                                        
                                        
                                        1 Reply Last reply
                                        0
                                        • p3c0P Offline
                                          p3c0P Offline
                                          p3c0
                                          Moderators
                                          wrote on last edited by
                                          #54

                                          @Ram_Thakkar77 Are you sure this was after exporting new LD_LIBRARY_PATH because QtWebEngineProcess is using Qt libraries installed at default path and not your deployed libraries.

                                          157

                                          R 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