Urgent Help Needed to build Linux distribution
-
@Ram_Thakkar77 So, you put all libs in lib subdirectory?
Then you need to change the script: LD_LIBRARY_PATH must contain the directory where the libs are.LD_LIBRARY_PATH=$dirname/lib
Also, why is Makefile there? It is only needed to build the software.
@jsulm Really very sorry by mistake uploaded wrong image and corrected that link. Please check it once again.
-
@jsulm Really very sorry by mistake uploaded wrong image and corrected that link. Please check it once again.
@Ram_Thakkar77 Copy symbolic links as well, like: libQt5WebEngineWidgets.so.5, which points to libQt5WebEngineWidgets.so.5.7.1. Your app links against libQt5WebEngineWidgets.so.5 not directly against libQt5WebEngineWidgets.so.5.7.1, so you need those links (as alternative you can rename the libs like: libQt5WebEngineWidgets.so.5 --> libQt5WebEngineWidgets.so.5.7.1).
-
@Ram_Thakkar77 Copy symbolic links as well, like: libQt5WebEngineWidgets.so.5, which points to libQt5WebEngineWidgets.so.5.7.1. Your app links against libQt5WebEngineWidgets.so.5 not directly against libQt5WebEngineWidgets.so.5.7.1, so you need those links (as alternative you can rename the libs like: libQt5WebEngineWidgets.so.5 --> libQt5WebEngineWidgets.so.5.7.1).
@jsulm, you are the savior for me. I pasted all .so files in same directory. Now its not giving error which i was getting previously. I m getting some new error like:
/root/Desktop/QTEXETesting/QTBrowser: /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5: no version information available (required by /root/Desktop/QTEXETesting/libQt5WebEngineWidgets.so.5)
and here is the link for screen shot of same : Screen Shot
-
@jsulm, you are the savior for me. I pasted all .so files in same directory. Now its not giving error which i was getting previously. I m getting some new error like:
/root/Desktop/QTEXETesting/QTBrowser: /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5: no version information available (required by /root/Desktop/QTEXETesting/libQt5WebEngineWidgets.so.5)
and here is the link for screen shot of same : Screen Shot
@Ram_Thakkar77 You did not copy all needed libraries! For example libQt5Core.so.5.7.1 is missing: you only have the link libQt5Core.so.5. Please make sure you really have all libs and symbolic links there.
-
I still have doubt if library path is set correctly because the system is referring to libraries in
/usr/lib
where as it should have been the new path. -
I still have doubt if library path is set correctly because the system is referring to libraries in
/usr/lib
where as it should have been the new path.@p3c0 You're right! I didn't notice this.
@Ram_Thakkar77 in the screen-shot you posted you can see that the system tries to load Qt libs from /usr/lib. Check your script, putecho $LD_LIBRARY_PATH
after export LD_LIBRARY_PATH and post its output.
-
@p3c0 You're right! I didn't notice this.
@Ram_Thakkar77 in the screen-shot you posted you can see that the system tries to load Qt libs from /usr/lib. Check your script, putecho $LD_LIBRARY_PATH
after export LD_LIBRARY_PATH and post its output.
@jsulm, here is the screen shot of
echo $LD_LIBRARY_PATH
and its showing correct path.
Screen shot -
@jsulm, here is the screen shot of
echo $LD_LIBRARY_PATH
and its showing correct path.
Screen shot@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, here is the screen shot of
echo $LD_LIBRARY_PATH
and its showing correct path.
Screen shot@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 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.