Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Serialport: Error while loading shared libraries: libQtSerialPort.so.1:

$
0
0
Hi, I want to install ‘serialport’ library on QT 4.8.4 (GCC 4.6.1, 32 bit). I’m cross-compiling the applications on laptop for deployment on Beaglebone Black. I followed the steps mentioned here: Recommended steps to build the QtSerialPort library for Qt4/Qt5 from QtCreator:       download and unpack the QtSerialPort sources     run QtCreator and open the “qtserialport.pro” project file     get to “Projects->(Your Kit)->Build->Build Steps”     add a new make “Build Step” and write to the “Make arguments” the install target     from the menus, select “Rebuild Project qtserialport” Since I had admin privilege issues, I ran the steps by logging into Linux as root and it got ‘rebuilt’ successfully. I thought it got installed properly. The problem: I created a new project ‘QSerial2’ and added CONFIG += serialport and the install target in the .pro file: QT       += core gui CONFIG += serialport greaterThan(QT_MAJOR_VERSION, 4): QT += widgets   TARGET = QSerial2     target.files = QSerial2     target.path = /home/root       INSTALLS += target TEMPLATE = app   SOURCES += main.cpp\         mainwindow.cpp   HEADERS  += mainwindow.h   FORMS    += mainwindow.ui Then I opened main.cpp and pasted the same simple example code given here: https://qt-project.org/wiki/QtSerialPort#d065aef6724572158f14e550906f5913 But it gives the error "/home/root/QSerial2: error while loading shared libraries: libQtSerialPort.so.1: cannot open shared object file: No such file or directory Remote application finished with exit code 127." Please help.

Viewing all articles
Browse latest Browse all 2113

Trending Articles