<?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[Qt Building Error While Building Cross Compile for Raspberry pi 4]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I struggle for cross compiling for Raspberry pi 4. My OS is Ubuntu 20.04.  I builded cross compile platform and I have been run simple quick application. (I created project on PC and I could see output window on Raspberry pi screen).</p>
<p dir="auto">I want run more big project on Raspberry pi4 with cross compile. I want edit code on my PC and I want see output on Raspberry pi 4. I have been worked this project on Raspberry pi 4 without qt.</p>
<p dir="auto">I tried run qmake for .pro file and I compiled the resulting makefile file. It's working. I want do same process with cross compile but I have errors this place. Qt does not find some .so files but I checked and this files are exist on the specified path.</p>
<p dir="auto">P.S. I used this commands when I building cross compile. <a href="https://github.com/PhysicsX/QTonRaspberryPi/blob/main/qt5.14.2onRaspberrypi" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/PhysicsX/QTonRaspberryPi/blob/main/qt5.14.2onRaspberrypi</a></p>
<p dir="auto">My .pro file this:</p>
<pre><code>QT += quick widgets serialport multimedia
CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Refer to the documentation for the
# deprecated API to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS


INCLUDEPATH += -I/opt/qt5pi/sysroot/usr/include/opencv2
LIBS += -L/opt/qt5pi/sysroot/usr/lib -lopencv_core -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_videostab  -lopencv_features2d

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        main.cpp \
    file.cpp \
    gcodesender.cpp \
    movementmanager.cpp \
    usbmanager.cpp \
    imageresizer.cpp \
    serialcommunicator.cpp \
    frameprocessor.cpp

RESOURCES += qml.qrc


# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /home/pi/dev/$${TARGET}/
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    file.h \
    gcodesender.h \
    movementmanager.h \
    usbmanager.h \
    imageresizer.h \
    serialcommunicator.h \
    frameprocessor.h

DISTFILES += \
    theme/DarkTheme_copy.qml \
    theme/WhiteTheme.qml

</code></pre>
<p dir="auto">And my compiled output(Just errors):  <a href="https://pastebin.pl/view/cbeede8a" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.pl/view/cbeede8a</a></p>
<p dir="auto">How can I fix error ?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/123273/qt-building-error-while-building-cross-compile-for-raspberry-pi-4</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 16:26:11 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/123273.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Jan 2021 02:07:58 GMT</pubDate><ttl>60</ttl></channel></rss>