error while loading shared libraries: libQtWebview.so.1: cannot open shared object file: No such file or directory



  • i am using Qt 4.8.1 in ubuntu 12.04 dynamic build,
    in my project i am using Qserialport and QWebview., if run this application in my system , i will work, if i take that binary and run in other system(No-qt installed) i will show error like

    error while loading shared libraries: libQtSerialPort.so.1: cannot open shared object file: No such file or directory

    error while loading shared libraries: libQtWebview.so.1: cannot open shared object file: No such file or directory

    why it is showing like this ?
    how can i solve this issue ? please suggest me..


  • Moderators

    That's because you don't have Qt libraries on your other system. You need to provide all needed libraries together with your application. To see which libraries are needed you can use "ldd /PATH/TO/APPLICATION_BINARY". You should read this: http://doc.qt.io/qt-4.8/deployment.html



  • Ok, even i tried copying by libraries to the deploying system, and exported it , then binary will execute, but serial port will not work as in the code.,


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.