Error while loading shared libraries created by myself.
-
I create a shared library and successfully build in QT GUI. I want to run the excutable file in the terminal, but I get the error:
error while loading shared libraries: libtracker.so.1: cannot open shared object file: No such file or directory
I can run normally in the QT GUI, but can not run in the terminal, and get the above error. So what should be the reason for that? Something is wrong when I create the lib?
My operation system is :ubuntu 14.04
QT:5.7.0 -
hi
everything is ok i think
It just cannot find libtracker.so.1
so is this your lib ?
and if you do "locate libtracker.so.1"
where is it then ?Also try ldd on your exe and see
Its important to understand that your exe NEEDS the Qt so files
to run
http://www.tripleboot.org/?p=138
Look in linux section.
"Linux GCC 32-bit and 64-bit compilers:" -
Hi
bascially, you include the needed SO files etc and do#!/bin/bash cd /mnt/xx/theprogfolder export LD_LIBRARY_PATH=./ ./progname
its shown in
http://doc.qt.io/qt-5/linux-deployment.html
section Creating the Application PackageThis is best used for testing. the rpath way is better for real deployment.
or so i have been told.