title: Error while deploying Qt5.10 App on linux
body: <p>I'm trying to deploy a simple example on linux manually.</p>
  
  <p>I copied the dependecies required by running</p>
  
  <pre><code>ldd ./binaryFile
  </code></pre>
  
  <p>inside the app directory</p>
  
  <pre><code>├── app.sh
  ├── lib
  └── testApp
  </code></pre>
  
  <p>inside the lib directory I have</p>
  
  <pre><code>├──lib
    ├── plugins
    ├── qml
    └── other .so files from ldd
  </code></pre>
  
  <p>and then I run the bash script</p>
  
  <pre><code>#!/bin/sh
   export LD_LIBRARY_PATH=`pwd`/lib
   export QML_IMPORT_PATH=`pwd`/lib/qml
   export QML2_IMPORT_PATH=`pwd`/lib/qml
   export QT_QPA_PLATFORM_PLUGIN_PATH=`pwd`/lib/plugins/platforms
   #export QT_DEBUG_PLUGINS=0
   ./testApp
  </code></pre>
  
  <p>but I get this error</p>
  
  <pre><code>This application failed to start because it could not find or load the Qt platform plugin "xcb" in "/home/zed/Desktop/testDep/lib/plugins/platforms".
  
  Available platform plugins are: eglfs (from /home/zed/Desktop/testDep/lib/plugins/platforms), linuxfb (from /home/zed/Desktop/testDep/lib/plugins/platforms), minimal (from /home/zed/Desktop/testDep/lib/plugins/platforms), minimalegl (from /home/zed/Desktop/testDep/lib/plugins/platforms), offscreen (from /home/zed/Desktop/testDep/lib/plugins/platforms), vnc (from /home/zed/Desktop/testDep/lib/plugins/platforms), webgl (from /home/zed/Desktop/testDep/lib/plugins/platforms), xcb (from /home/zed/Desktop/testDep/lib/plugins/platforms).
  
  Reinstalling the application may fix this problem. ./app.sh: line 7:  1948 Aborted                 (core dumped) ./testApp
  </code></pre>
  
  <p>Even though the "xcb" plugin is inside the platforms directory</p>
  
  <p>when I run it using</p>
  
  <pre><code>export QT_DEBUG_PLUGINS=1
  </code></pre>
  
  <p>I get this debug message</p>
  
  <pre><code>Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/zed/Desktop/testDep" ... QFactoryLoader::QFactoryLoader() looking at "/home/zed/Desktop/testDep/app.sh" QElfParser: '/home/zed/Desktop/testDep/app.sh' is not an ELF object "'/home/zed/Desktop/testDep/app.sh' is not an ELF object" 
           not a plugin QFactoryLoader::QFactoryLoader() looking at "/home/zed/Desktop/testDep/testApp" "Failed to extract plugin meta data from '/home/zed/Desktop/testDep/testApp'" 
           not a plugin Cannot load library /home/zed/Desktop/testDep/lib/plugins/platforms/libqxcb.so: (/usr/lib/libQt5XcbQpa.so.5: symbol
  _ZNK15QPlatformWindow15safeAreaMarginsEv version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference) QLibraryPrivate::loadPlugin failed on "/home/zed/Desktop/testDep/lib/plugins/platforms/libqxcb.so" : "Cannot load library /home/zed/Desktop/testDep/lib/plugins/platforms/libqxcb.so: (/usr/lib/libQt5XcbQpa.so.5: symbol
  _ZNK15QPlatformWindow15safeAreaMarginsEv version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)" QFactoryLoader::QFactoryLoader() checking directory path "/home/zed/Desktop/testDep/lib/plugins/platforms/platforms" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/zed/Desktop/testDep/platforms" ... This application failed to start because it could not find or load the Qt platform plugin "xcb" in "/home/zed/Desktop/testDep/lib/plugins/platforms".
  </code></pre>
  
  <p>Is there a way to fix this ?</p>
  
  <p>PS:
  Qt Version : 5.10
  Compiled on : Kubuntu 18.4
  Tested on : Manjaro XFCE 17.1</p>