Error_cannot open shared object file: No such file or directory
-
I compiled the 'enumerator' example on another device.
I saw this error code.error code
/home/jiminkim/Qt/Examples/Qt-5.11.2/serialport/enumerator/enumerator: error while loading shared libraries: libQt5SerialPort.so.5: cannot open shared object file: No such file or directory 11:35:42: Application finished with exit code 127.
I found 'libQt5SerialPort.so.5' in the 'lib' folder.
I do not know how to solve this problem.
Please help me.
-
Did you change the name of the *.so files ? I see so many serial so files in your directory. While compiling did you give different path for LIBS by chance ?
Just to check it that qt is working, are you able to launch simple Qt app from Qt Creator ?
-
@Kycho Do you start your app from QtCreator?
If not you first need to deploy it, see "Creating the Application Package" in http://doc.qt.io/qt-5/linux-deployment.html -
@dheerendra
Thank you for your reply.
1.I did not modify the path or name.
2. It runs fine on my computer where QT is installed, but I get an error when remote compiling to an external device.