Urgent Help Needed to build Linux distribution
-
@Ram_Thakkar77 Can you do this simple test?
- From terminal navigate to the directory where the app binary and libraries are present
export LD_LIBRARY_PATH=/root/Desktop/QTEXETesting:$LD_LIBRARY_PATH
- run binary as
./QTBrowser
Post the output if you get any errors.
-
@Ram_Thakkar77 Please put missing libs (not only links!) in the directory as I said before. For example:
libQt5Core.so.5 libQt5Core.so.5.7.1
@jsulm, all errors are gone related to links and necessary files after adding to respective folder, but now getting new error and below is the screen shot of same:
-
@jsulm, all errors are gone related to links and necessary files after adding to respective folder, but now getting new error and below is the screen shot of same:
@Ram_Thakkar77 Plug-ins are missing. From the link I posted before:
"When looking for plugins, the application searches in a plugins subdirectory inside the directory of the application executable"
Did you create "plugins" subdirectory" and put needed plugins (like xcb) there? -
@Ram_Thakkar77 Plug-ins are missing. From the link I posted before:
"When looking for plugins, the application searches in a plugins subdirectory inside the directory of the application executable"
Did you create "plugins" subdirectory" and put needed plugins (like xcb) there?@jsulm, no i didn't create any plug in directory in that folder and from where i will find that xcb plugin.
-
@jsulm, no i didn't create any plug in directory in that folder and from where i will find that xcb plugin.
@Ram_Thakkar77 Well, you have to. Qt plug-ins are in "plugins" subdirectory of you Qt installation.
-
@Ram_Thakkar77 Well, you have to. Qt plug-ins are in "plugins" subdirectory of you Qt installation.
@jsulm, i pasted plugins folder from Qt installation path and here is the screenshot of same:
Screenshot -
@jsulm, i pasted plugins folder from Qt installation path and here is the screenshot of same:
Screenshot@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. -
@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.@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.
-
@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.
@Ram_Thakkar77 Did you call the directory plugins or plugin? It should be plugins.
-
@Ram_Thakkar77 Did you call the directory plugins or plugin? It should be plugins.
@jsulm Its plugins.
-
@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.
@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. -
@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.@jsulm Pasted above mentioned file but no luck. Getting same error.
-
@jsulm Pasted above mentioned file but no luck. Getting same error.
??.. Any suggestion??
-
??.. Any suggestion??
@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? -
@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?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. -
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 addedQT_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
-
@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.
-
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.
-
@Ram_Thakkar77 Well I think you need to check this too.
http://doc.qt.io/qt-5/qtwebengine-deploying.html -
@Ram_Thakkar77 Well I think you need to check this too.
http://doc.qt.io/qt-5/qtwebengine-deploying.html@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??