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. Available platform plugins are: xcb and Segmentation fault (core dumped).

Available platform plugins are: xcb and Segmentation fault (core dumped).

Scheduled Pinned Locked Moved General and Desktop
xcblinuxredhat 6deploymentdependencies
4 Posts 3 Posters 4.6k 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
    Ratzz
    wrote on 30 Sept 2015, 13:42 last edited by Ratzz 10 Jan 2015, 05:01
    #1

    I am using Linux(Ubuntu 10.04) . I configured QT5.5 (qt-opensource-linux-x86-5.5.0.run) .I have created the installer for Linux using qtinstallerframework. My executable i running fine on the system i created . In the rhel v6.7 when i run the executable i got missing libraries
    Then i ran Ldd on my executable and found the following output

             linux-gate.so.1 =>  (0x00fc6000)
    	libqledplugin.so => /home/user/Desktop/./libqledplugin.so (0x00f3e000)
    	libQt5Widgets.so.5 => /opt/Qt5.5.0/5.5/gcc/lib/libQt5Widgets.so.5 (0x00464000)
    	libQt5Gui.so.5 => /opt/Qt5.5.0/5.5/gcc/lib/libQt5Gui.so.5 (0x00fc7000)
    	libQt5Core.so.5 => /opt/Qt5.5.0/5.5/gcc/lib/libQt5Core.so.5 (0x1aa7c000)
    	libGL.so.1 => /usr/lib/mesa/libGL.so.1 (0x00c00000)
    	libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00ca7000)
    	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00110000)
    	libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00205000)
    	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0022b000)
    	libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x0024a000)
    	libQt5Svg.so.5 => /opt/Qt5.5.0/5.5/gcc/lib/libQt5Svg.so.5 (0x003ac000)
    	libQt5Designer.so.5 => /opt/Qt5.5.0/5.5/gcc/lib/libQt5Designer.so.5 (0x154ba000)
    	libQt5Xml.so.5 => /opt/Qt5.5.0/5.5/gcc/lib/libQt5Xml.so.5 (0x00407000)
    	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00ba3000)
    	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00f24000)
    	librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x0044b000)
    	libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00cc0000)
    	libXext.so.6 => /usr/lib/libXext.so.6 (0x00454000)
    	libX11.so.6 => /usr/lib/libX11.so.6 (0x00d8a000)
    	libicui18n.so.54 => /opt/Qt5.5.0/5.5/gcc/lib/libicui18n.so.54 (0x18c2b000)
    	libicuuc.so.54 => /opt/Qt5.5.0/5.5/gcc/lib/libicuuc.so.54 (0x0e7ba000)
    	libicudata.so.54 => /opt/Qt5.5.0/5.5/gcc/lib/libicudata.so.54 (0xb6023000)
    	libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00be2000)
    	libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00be6000)
    	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00bec000)
    	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00bf0000)
    	libdrm.so.2 => /lib/libdrm.so.2 (0x00c65000)
    	libpcre.so.3 => /lib/libpcre.so.3 (0x00c70000)
    	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00ea7000)
    	libXau.so.6 => /usr/lib/libXau.so.6 (0x00bf6000)
    	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00bfa000)
    	/lib/ld-linux.so.2 (0x00fa6000)
    

    I copied all the .so files on the same folder as the executable . I Got "Segmentation fault (core dumped)" so i removed all the .so files and ran the executable to find the each .so file and copied to the same folder.
    I got following files missing when i ran the executable each time and copied to the executable folder.

    libicudata.so.54
    libicui18n.so.54
    libicuuc.so.54
    libqledplugin.so
    libQt5Core.so.5
    libQt5Designer.so.5
    libQt5Gui.so.5
    libQt5Svg.so.5
    libQt5Widgets.so.5
    libQt5Xml.so.5
    

    After copying these files i got following error .

    This application failed to start because it could not find or load the Qt platform plugin "xcb".
    Reinstalling the application may fix this problem.
    Aborted (core dumped)
    

    I created the platforms folder then copied "libqxcb.so" to it . running the executable gives me

    This application failed to start because it could not find or load the Qt platform plugin "xcb".
    Available platform plugins are: xcb.
    Reinstalling the application may fix this problem.
    Aborted (core dumped)
    

    I Ran the ldd on libqxcb.so to find the following output.

    	linux-gate.so.1 =>  (0x003fa000)
    	libQt5XcbQpa.so.5 => /opt/Qt5.5.0/5.5/gcc/plugins/platforms/../../lib/libQt5XcbQpa.so.5 (0x00206000)
    	libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x0012a000)
    	libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00de1000)
    	libXi.so.6 => /usr/lib/libXi.so.6 (0x006b0000)
    	libSM.so.6 => /usr/lib/libSM.so.6 (0x00be4000)
    	libICE.so.6 => /usr/lib/libICE.so.6 (0x00110000)
    	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x0012e000)
    	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00809000)
    	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x008d9000)
    	libQt5DBus.so.5 => /opt/Qt5.5.0/5.5/gcc/plugins/platforms/../../lib/libQt5DBus.so.5 (0x00ce0000)
    	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00f3e000)
    	librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x009e2000)
    	libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x003fb000)
    	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x001b3000)
    	libXext.so.6 => /usr/lib/libXext.so.6 (0x00758000)
    	libX11.so.6 => /usr/lib/libX11.so.6 (0x004c5000)
    	libQt5Gui.so.5 => /opt/Qt5.5.0/5.5/gcc/plugins/platforms/../../lib/libQt5Gui.so.5 (0x00f44000)
    	libQt5Core.so.5 => /opt/Qt5.5.0/5.5/gcc/plugins/platforms/../../lib/libQt5Core.so.5 (0x13e09000)
    	libGL.so.1 => /usr/lib/mesa/libGL.so.1 (0x00148000)
    	libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x001bd000)
    	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x009eb000)
    	libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00383000)
    	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00cb9000)
    	libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x07d25000)
    	/lib/ld-linux.so.2 (0x001e9000)
    	libuuid.so.1 => /lib/libuuid.so.1 (0x001ad000)
    	libXau.so.6 => /usr/lib/libXau.so.6 (0x001d6000)
    	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x0062b000)
    	libz.so.1 => /lib/libz.so.1 (0x003a9000)
    	libexpat.so.1 => /lib/libexpat.so.1 (0x003be000)
    	libpcre.so.3 => /lib/libpcre.so.3 (0x005e2000)
    	libicui18n.so.54 => /opt/Qt5.5.0/5.5/gcc/plugins/platforms/../../lib/libicui18n.so.54 (0x18891000)
    	libicuuc.so.54 => /opt/Qt5.5.0/5.5/gcc/plugins/platforms/../../lib/libicuuc.so.54 (0x11b64000)
    	libicudata.so.54 => /opt/Qt5.5.0/5.5/gcc/plugins/platforms/../../lib/libicudata.so.54 (0xb5fea000)
    	libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x001da000)
    	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00859000)
    	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00dad000)
    	libdrm.so.2 => /lib/libdrm.so.2 (0x003e6000)
    

    If i copy all the above files to the platforms directory and run executable i get "Segmentation fault (core dumped)"
    I have gone through Forum post and wiki post , even on requirement and deployment .
    Since i have used QMAKE_LFLAGS += -Wl,-rpath,"'$$ORIGIN'" is it necessary to copy all the platform files to the same folder ?.
    I even copied all the platforms files to same executable directory still i get segmentation fault.
    What am i supposed to do now? Why the executable is not loading xcb ?

    --Alles ist gut.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Ratzz
      wrote on 3 Oct 2015, 04:49 last edited by
      #2

      I have found that libqxcb.so cannot find below mentioned files in rhel .

      libQt5XcbQpa.so.5 
      libQt5DBus.so.5
      libQt5Core.so.5
      libQt5Gui.so.5 
      libicui18n.so.54 
      libicuuc.so.54
      libicudata.so.54
      

      If i manually copy these file to /usr/lib path the executable works fine. copying the files is not the right way.
      Can i keep all the above files in the installed path and make the libqxcb.so to fetch these files ? If so how can i do it ? Is it done in .pro file ?

      --Alles ist gut.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alexorleon
        wrote on 2 Dec 2016, 04:02 last edited by
        #3

        You managed to solve the problem?

        M 1 Reply Last reply 2 Dec 2016, 17:10
        0
        • A Alexorleon
          2 Dec 2016, 04:02

          You managed to solve the problem?

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 2 Dec 2016, 17:10 last edited by
          #4

          @Alexorleon
          Yes use another distro than rhel v6.7 :)

          1 Reply Last reply
          1

          • Login

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