<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Serialport: Error while loading shared libraries: libQtSerialPort.so.1:]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">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.<br />
I followed the steps mentioned here:<br />
@Recommended steps to build the QtSerialPort library for Qt4/Qt5 from QtCreator:</p>
<pre><code>download and unpack the QtSerialPort sources
run QtCreator and open the “qtserialport.pro” project file
get to “Projects-&gt;(Your Kit)-&gt;Build-&gt;Build Steps”
add a new make “Build Step” and write to the “Make arguments” the install target
from the menus, select “Rebuild Project qtserialport”@
</code></pre>
<p dir="auto">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.</p>
<p dir="auto">The problem:<br />
I created a new project 'QSerial2' and added<br />
CONFIG += serialport and the install target in the .pro file:<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/qt">@<bdi>QT</bdi></a>       += core gui<br />
CONFIG += serialport<br />
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets</p>
<p dir="auto">TARGET = QSerial2<br />
target.files = QSerial2<br />
target.path = /home/root</p>
<pre><code>INSTALLS += target
</code></pre>
<p dir="auto">TEMPLATE = app</p>
<p dir="auto">SOURCES += main.cpp<br />
mainwindow.cpp</p>
<p dir="auto">HEADERS  += mainwindow.h</p>
<p dir="auto">FORMS    += mainwindow.ui@</p>
<p dir="auto">Then I opened main.cpp and pasted the same simple example code given here: <a href="https://qt-project.org/wiki/QtSerialPort#d065aef6724572158f14e550906f5913" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.org/wiki/QtSerialPort#d065aef6724572158f14e550906f5913</a></p>
<p dir="auto">But it gives the error<br />
@<br />
"/home/root/QSerial2: error while loading shared libraries: libQtSerialPort.so.1: cannot open shared object file: No such file or directory<br />
Remote application finished with exit code 127."@</p>
<p dir="auto">Please help.</p>
]]></description><link>https://forum.qt.io/topic/43624/serialport-error-while-loading-shared-libraries-libqtserialport-so-1</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 19:19:38 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/43624.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Jul 2014 04:24:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Wed, 06 Aug 2014 14:06:15 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Ramon" date="1407179520"]Please let me know if you can get the serial port (UART) working.</p>
<p dir="auto">After installation I ran the sample code given on QTSerialPort wiki, but it detected only the USB port. Any idea why the serialport (ttyO0) doesn't get detected? <a href="http://qt-project.org/forums/viewthread/44916/#185469" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/forums/viewthread/44916/#185469</a></p>
<p dir="auto">[/quote]<br />
Yeah. I work with rfid reader through usb, but i can only see COM ports. Maybe CreateFile for a com port, read from ttyO0 and write on the new file? if QSerialPort is essential. If not you can stick to reading from the UART file.<br />
I might be wrong. I just started to use C++ and Qt.</p>
]]></description><link>https://forum.qt.io/post/238775</link><guid isPermaLink="true">https://forum.qt.io/post/238775</guid><dc:creator><![CDATA[manolia]]></dc:creator><pubDate>Wed, 06 Aug 2014 14:06:15 GMT</pubDate></item><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Sun, 27 Jul 2014 07:13:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Sorry for the late reply.</p>
<p dir="auto">On host laptop I did the "following":<a href="http://www.cloud-rocket.com/2013/07/building-qt-for-beaglebone/:" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.cloud-rocket.com/2013/07/building-qt-for-beaglebone/:</a></p>
<ol>
<li>Installed Angstrom cross-compile toolchain (i686)</li>
<li>Installed qt-everywhere-opensource-src-4.8.5.tar.gz</li>
<li>Configured, built and installed 'QT Embedded'</li>
</ol>
<p dir="auto">On target Beaglebone Black (running Angstrom Linux):</p>
<ol>
<li>Installed QT SDK by copying '/opt/qt/lib' on host to '/opt/qt/'</li>
</ol>
<p dir="auto">Then installed QT Creator 2.8.0 (x86)on host, configured QT version, kit etc and developed &amp; deployed the remote application.</p>
<p dir="auto">After doing all this, the touchscreen on the target board was not working. So I installed 'qt4-embedded' on target and now it works. Please tell if you need more information.</p>
]]></description><link>https://forum.qt.io/post/237425</link><guid isPermaLink="true">https://forum.qt.io/post/237425</guid><dc:creator><![CDATA[Ramon]]></dc:creator><pubDate>Sun, 27 Jul 2014 07:13:24 GMT</pubDate></item><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Sun, 20 Jul 2014 22:11:30 GMT]]></title><description><![CDATA[<p dir="auto">The name of the serial port can change between two devices, two computers etc.</p>
<p dir="auto">How does your target Qt installation look like ?</p>
]]></description><link>https://forum.qt.io/post/236502</link><guid isPermaLink="true">https://forum.qt.io/post/236502</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 20 Jul 2014 22:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Fri, 18 Jul 2014 03:53:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi kuzulis and SGaist,<br />
Thank you for the reply.</p>
<p dir="auto">I ran the steps again, this time by installing 'git' and ran<br />
@git clone git://gitorious.org/qt/qtserialport.git@<br />
Repeated the steps mentioned in the first post of this thread and the error went away.<br />
This is the output I see on QT console:<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/name">@<bdi>Name</bdi></a>        :  "ttyGS0"<br />
Description :  ""<br />
Manufacturer:  ""<br />
User requested stop. Shutting down...<br />
sh: line 1:   378 Terminated              DISPLAY=:0.0 /home/root/QTSerial5<br />
Remote application finished with exit code 143.@</p>
<p dir="auto">I shutdown Beaglebone Black (BBB) and ran the project and as expected, QT said: @Connecting to device...<br />
SSH connection failed: Timeout waiting for reply from server.@</p>
<p dir="auto">My queries:</p>
<ol>
<li>Have I installed serialport properly?</li>
<li>It showed serialport number as 'ttyGS0'. But on BBB, port names are ttyO0, ttyO1, ttyO2 etc. ttyO0 is enabed by default and I manually enabled ttyO4 and ran the QT code, but QT mentions only ttyGS0. Why is it so?</li>
</ol>
<p dir="auto">For your information, this is what I see in Projects &gt; Run &gt; Files to deploy field:<br />
@/root/build-qtserialport-BBB-Debug/QTSerial5/QTSerial5 - /home/root<br />
/root/qtserialport/src/serialport/qserialportglobal.h- /opt/qt/include/QtSerialPort<br />
/root/qtserialport/src/serialport/qserialport.h- /opt/qt/include/QtSerialPort<br />
/root/qtserialport/src/serialport/qserialportinfo.h- /opt/qt/include/QtSerialPort<br />
/root/qtserialport/src/serialport/at4support/serialport.prf- /opt/qt/mkspecs/features<br />
/root/build-qtserialport-BBB-Debug/src/serialport/libQtSerialPort.so- /opt/qt/lib<br />
/root/build-qtserialport-BBB-Debug/src/serialport/libQtSerialPort.so.1.0.0- /opt/qt/lib<br />
/root/build-qtserialport-BBB-Debug/src/serialport/libQtSerialPort.so.1.0- /opt/qt/lib<br />
/root/build-qtserialport-BBB-Debug/src/serialport/libQtSerialPort.so.1- /opt/qt/lib@</p>
<p dir="auto">[quote author="SGaist" date="1405543230"]Wouldn't you be mixing your x86 Qt with your cross-compiled Qt by any chances ?[/quote]<br />
I think so. But as a newbie to these things, I can't say anything with confidence. Please guide me.</p>
]]></description><link>https://forum.qt.io/post/236247</link><guid isPermaLink="true">https://forum.qt.io/post/236247</guid><dc:creator><![CDATA[Ramon]]></dc:creator><pubDate>Fri, 18 Jul 2014 03:53:59 GMT</pubDate></item><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Wed, 16 Jul 2014 20:40:30 GMT]]></title><description><![CDATA[<p dir="auto">Wouldn't you be mixing your x86 Qt with your cross-compiled Qt by any chances ?</p>
]]></description><link>https://forum.qt.io/post/236062</link><guid isPermaLink="true">https://forum.qt.io/post/236062</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 16 Jul 2014 20:40:30 GMT</pubDate></item><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Wed, 16 Jul 2014 19:42:19 GMT]]></title><description><![CDATA[<p dir="auto">bq. Am I doing something wrong?</p>
<p dir="auto">Yes.</p>
<ol>
<li>You should build the QtSerialPort from user account</li>
<li>You should just do: "sudo make install" from shadow directory to install of QtSerialPort</li>
<li>You should to check for all *.so, *.prf, *.h files in your system</li>
<li>You should not setup the env.</li>
</ol>
<p dir="auto">Please, just re-read WIKI again and try to do search solution in this forum (because this question arise again and again, and I was tired to response again and again to same questions).</p>
<p dir="auto">PS: I don't understand, what is unclear in WIKI?</p>
]]></description><link>https://forum.qt.io/post/236061</link><guid isPermaLink="true">https://forum.qt.io/post/236061</guid><dc:creator><![CDATA[kuzulis]]></dc:creator><pubDate>Wed, 16 Jul 2014 19:42:19 GMT</pubDate></item><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Wed, 16 Jul 2014 19:03:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I searched for <a href="http://libQtSerialPort.so" target="_blank" rel="noopener noreferrer nofollow ugc">libQtSerialPort.so</a> in Linux directories and found the following in /opt/qt/lib:</p>
<p dir="auto">libQtSerialPort.prl<br />
<a href="http://libQtSerialPort.so" target="_blank" rel="noopener noreferrer nofollow ugc">libQtSerialPort.so</a><br />
libQtSerialPort.so.1<br />
libQtSerialPort.so.1.0<br />
libQtSerialPort.so.1.0.0</p>
<p dir="auto">I wish to point out that I couldn't find any files named libQtSerialPortInfo.<br />
I set the path /opt/qt/lib permanently by running the following in terminal<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/path">@<bdi>PATH</bdi></a>=$PATH:/opt/qt/lib<br />
export PATH@</p>
<p dir="auto">Then opened QTCreator, created a new project and did the same things as given in first post. In addition, in Projects &gt; Build &amp; Run &gt; Build &gt; Build Environment &gt; Path, I added /opt/qt/lib. So now it looks @/opt/qt/bin:/usr/local/angstrom/arm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/qt/lib @<br />
I copy pasted the same code mentioned in first post and the error is the same.</p>
<p dir="auto">Am I doing something wrong?</p>
]]></description><link>https://forum.qt.io/post/236059</link><guid isPermaLink="true">https://forum.qt.io/post/236059</guid><dc:creator><![CDATA[Ramon]]></dc:creator><pubDate>Wed, 16 Jul 2014 19:03:29 GMT</pubDate></item><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Sun, 13 Jul 2014 13:59:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Is libQtSerialPort stored somewhere unusual ?</p>
]]></description><link>https://forum.qt.io/post/235652</link><guid isPermaLink="true">https://forum.qt.io/post/235652</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 13 Jul 2014 13:59:25 GMT</pubDate></item><item><title><![CDATA[Reply to Serialport: Error while loading shared libraries: libQtSerialPort.so.1: on Sun, 13 Jul 2014 13:54:22 GMT]]></title><description><![CDATA[<p dir="auto">Are you sure that library is installed? Check all *.so, *.prf and header files in your Qt place.</p>
]]></description><link>https://forum.qt.io/post/235650</link><guid isPermaLink="true">https://forum.qt.io/post/235650</guid><dc:creator><![CDATA[kuzulis]]></dc:creator><pubDate>Sun, 13 Jul 2014 13:54:22 GMT</pubDate></item></channel></rss>