Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qt creator run not work over cross compiled kit



  • Hi everybody,
    When I run my program from Qt Creator with Cross compiled kit, I get below error. I also get same error when I start the program from ssh.

    start 
    
    qt.qpa.plugin: Could not load the Qt platform plugin "eglfs" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, webgl, xcb.
    
    15:19:49: Process killed by signal
    

    When I deploy the program from Qt Creator and try to run the program from the real device, it works as expected.
    my ldd result

    linux-vdso.so.1 (0x0000ffff9d5b7000)
            libQt5Quick.so.5 => /usr/local/qt5dragon/lib/libQt5Quick.so.5 (0x0000ffff9d17b000)
            libQt5Multimedia.so.5 => /usr/local/qt5dragon/lib/libQt5Multimedia.so.5 (0x0000ffff9d067000)
            libQt5Gui.so.5 => /usr/local/qt5dragon/lib/libQt5Gui.so.5 (0x0000ffff9cb73000)
            libQt5Qml.so.5 => /usr/local/qt5dragon/lib/libQt5Qml.so.5 (0x0000ffff9c7d6000)
            libQt5WebSockets.so.5 => /usr/local/qt5dragon/lib/libQt5WebSockets.so.5 (0x0000ffff9c795000)
            libQt5Network.so.5 => /usr/local/qt5dragon/lib/libQt5Network.so.5 (0x0000ffff9c611000)
            libQt5SerialPort.so.5 => /usr/local/qt5dragon/lib/libQt5SerialPort.so.5 (0x0000ffff9c5e0000)
            libQt5Test.so.5 => /usr/local/qt5dragon/lib/libQt5Test.so.5 (0x0000ffff9c57a000)
            libQt5Core.so.5 => /usr/local/qt5dragon/lib/libQt5Core.so.5 (0x0000ffff9c03e000)
            libGLESv2.so.2 => /usr/lib/aarch64-linux-gnu/libGLESv2.so.2 (0x0000ffff9bfec000)
            libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000ffff9bfbd000)
            libstdc++.so.6 => /usr/lib/aarch64-linux-gnu/libstdc++.so.6 (0x0000ffff9be30000)
            libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000ffff9bd72000)
            libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000ffff9bd4e000)
            libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000ffff9bbdc000)
            libpulse-mainloop-glib.so.0 => /usr/lib/aarch64-linux-gnu/libpulse-mainloop-glib.so.0 (0x0000ffff9bbc7000)
            libpulse.so.0 => /usr/lib/aarch64-linux-gnu/libpulse.so.0 (0x0000ffff9bb6a000)
            libglib-2.0.so.0 => /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0 (0x0000ffff9ba37000)
            libpng16.so.16 => /usr/lib/aarch64-linux-gnu/libpng16.so.16 (0x0000ffff9b9f2000)
            libharfbuzz.so.0 => /usr/lib/aarch64-linux-gnu/libharfbuzz.so.0 (0x0000ffff9b8f4000)
            libz.so.1 => /lib/aarch64-linux-gnu/libz.so.1 (0x0000ffff9b8c7000)
            librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x0000ffff9b8af000)
            libudev.so.1 => /lib/aarch64-linux-gnu/libudev.so.1 (0x0000ffff9b87b000)
            libicui18n.so.63 => /usr/lib/aarch64-linux-gnu/libicui18n.so.63 (0x0000ffff9b5a9000)
            libicuuc.so.63 => /usr/lib/aarch64-linux-gnu/libicuuc.so.63 (0x0000ffff9b3ce000)
            libicudata.so.63 => /usr/lib/aarch64-linux-gnu/libicudata.so.63 (0x0000ffff999d0000)
            libpcre2-16.so.0 => /usr/lib/aarch64-linux-gnu/libpcre2-16.so.0 (0x0000ffff99956000)
            libdouble-conversion.so.1 => /usr/lib/aarch64-linux-gnu/libdouble-conversion.so.1 (0x0000ffff99932000)
            libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000ffff9991e000)
            libgthread-2.0.so.0 => /usr/lib/aarch64-linux-gnu/libgthread-2.0.so.0 (0x0000ffff9990c000)
            libGLdispatch.so.0 => /usr/lib/aarch64-linux-gnu/libGLdispatch.so.0 (0x0000ffff997dd000)
            /lib/ld-linux-aarch64.so.1 (0x0000ffff9d589000)
            libpulsecommon-12.2.so => /usr/lib/aarch64-linux-gnu/pulseaudio/libpulsecommon-12.2.so (0x0000ffff99750000)
            libcap.so.2 => /lib/aarch64-linux-gnu/libcap.so.2 (0x0000ffff9973a000)
            libdbus-1.so.3 => /lib/aarch64-linux-gnu/libdbus-1.so.3 (0x0000ffff996d7000)
            libpcre.so.3 => /lib/aarch64-linux-gnu/libpcre.so.3 (0x0000ffff99663000)
            libfreetype.so.6 => /usr/lib/aarch64-linux-gnu/libfreetype.so.6 (0x0000ffff995a5000)
            libgraphite2.so.3 => /usr/lib/aarch64-linux-gnu/libgraphite2.so.3 (0x0000ffff99572000)
            libX11-xcb.so.1 => /usr/lib/aarch64-linux-gnu/libX11-xcb.so.1 (0x0000ffff99560000)
            libX11.so.6 => /usr/lib/aarch64-linux-gnu/libX11.so.6 (0x0000ffff99416000)
            libxcb.so.1 => /usr/lib/aarch64-linux-gnu/libxcb.so.1 (0x0000ffff993dd000)
            libICE.so.6 => /usr/lib/aarch64-linux-gnu/libICE.so.6 (0x0000ffff993b2000)
            libSM.so.6 => /usr/lib/aarch64-linux-gnu/libSM.so.6 (0x0000ffff9939a000)
            libXtst.so.6 => /usr/lib/aarch64-linux-gnu/libXtst.so.6 (0x0000ffff99384000)
            libsystemd.so.0 => /lib/aarch64-linux-gnu/libsystemd.so.0 (0x0000ffff992d7000)
            libwrap.so.0 => /lib/aarch64-linux-gnu/libwrap.so.0 (0x0000ffff992bc000)
            libsndfile.so.1 => /usr/lib/aarch64-linux-gnu/libsndfile.so.1 (0x0000ffff99234000)
            libasyncns.so.0 => /usr/lib/aarch64-linux-gnu/libasyncns.so.0 (0x0000ffff9921e000)
            libXau.so.6 => /usr/lib/aarch64-linux-gnu/libXau.so.6 (0x0000ffff9920b000)
            libXdmcp.so.6 => /usr/lib/aarch64-linux-gnu/libXdmcp.so.6 (0x0000ffff991f5000)
            libbsd.so.0 => /usr/lib/aarch64-linux-gnu/libbsd.so.0 (0x0000ffff991cf000)
            libuuid.so.1 => /lib/aarch64-linux-gnu/libuuid.so.1 (0x0000ffff991b5000)
            libXext.so.6 => /usr/lib/aarch64-linux-gnu/libXext.so.6 (0x0000ffff99195000)
            libXi.so.6 => /usr/lib/aarch64-linux-gnu/libXi.so.6 (0x0000ffff99176000)
            liblzma.so.5 => /lib/aarch64-linux-gnu/liblzma.so.5 (0x0000ffff99141000)
            liblz4.so.1 => /usr/lib/aarch64-linux-gnu/liblz4.so.1 (0x0000ffff99116000)
            libgcrypt.so.20 => /lib/aarch64-linux-gnu/libgcrypt.so.20 (0x0000ffff99049000)
            libnsl.so.1 => /lib/aarch64-linux-gnu/libnsl.so.1 (0x0000ffff9901f000)
            libFLAC.so.8 => /usr/lib/aarch64-linux-gnu/libFLAC.so.8 (0x0000ffff98fb6000)
            libogg.so.0 => /usr/lib/aarch64-linux-gnu/libogg.so.0 (0x0000ffff98f9e000)
            libvorbis.so.0 => /usr/lib/aarch64-linux-gnu/libvorbis.so.0 (0x0000ffff98f65000)
            libvorbisenc.so.2 => /usr/lib/aarch64-linux-gnu/libvorbisenc.so.2 (0x0000ffff98eb5000)
            libresolv.so.2 => /lib/aarch64-linux-gnu/libresolv.so.2 (0x0000ffff98e8f000)
            libgpg-error.so.0 => /lib/aarch64-linux-gnu/libgpg-error.so.0 (0x0000ffff98e5d000)
    
    

    Qt Version : Qt 5.11.3
    Embedded Device: Dragon 410 c
    Host Device: Opensuse Leap 15.0

    So what is the problem? Some lines don't have library path. Is it a problem?


  • Lifetime Qt Champion

    Hi,

    How did you install Qt on that device ?
    How did you configure Qt Creator to make the application run on the device ?

    @CKurdu said in qt creator run not work over cross compiled kit:

    So what is the problem? Some lines don't have library path. Is it a problem?

    What do you mean by that ?



  • Hi,
    @SGaist said in qt creator run not work over cross compiled kit:

    How did you install Qt on that device ?
    How did you configure Qt Creator to make the application run on the device ?

    I used this link to build and install Qt to the device. You can find also how to configure Qt Creator.

    @CKurdu said in qt creator run not work over cross compiled kit:

    So what is the problem? Some lines don't have library path. Is it a problem?

    I mean for example "linux-vdso.so.1" doesn't have a library pointer. Is it related to the problem?


  • Lifetime Qt Champion

    @CKurdu said in qt creator run not work over cross compiled kit:

    linux-vdso.so.1

    That's injected by the kernel hence no file associated with it.

    Do you have another version of Qt installed on the sysroot ?



  • @SGaist

    Yes, I found many dynamic libraries at "sysroot/usr/lib/aarch64-linux-gnu/" that belong Qt 5.11.3 version and I found qt bin tools(designer, lconvert, assitant etc.) at "sysroot/usr/lib/qt5/bin/".

    output of find . -type d -name Qt

    
    ./usr/lib/aarch64-linux-gnu/qt5/qml/QtQuick.2
    ./usr/lib/aarch64-linux-gnu/qt5/qml/QtQml
    ./usr/lib/aarch64-linux-gnu/qt5/qml/QtTest
    ./usr/lib/aarch64-linux-gnu/qt5/qml/QtQuick
    ./usr/lib/aarch64-linux-gnu/qt5/qml/Qt
    ./usr/lib/aarch64-linux-gnu/qt5/qml/QtGStreamer
    ./usr/lib/aarch64-linux-gnu/qt5/qml/QtMultimedia
    ./usr/lib/aarch64-linux-gnu/qt5/qml/QtGraphicalEffects
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5QuickWidgets
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Test
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5DBus
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5TextToSpeech
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5WebChannel
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Widgets
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5OpenGLExtensions
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Concurrent
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Sensors
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5WebKitWidgets
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Xml
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5OpenGL
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Svg
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5XmlPatterns
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5PrintSupport
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Network
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Sql
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Quick
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5X11Extras
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Gui
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Charts
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Gamepad
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5QuickTest
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5WaylandClient
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Core
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Qml
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5WebSockets
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5WebKit
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5WaylandCompositor
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5MultimediaWidgets
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5QuickCompiler
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5Multimedia
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5GStreamer
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5WebView
    ./usr/lib/aarch64-linux-gnu/cmake/Qt5SerialPort
    ./usr/include/Qt5GStreamer
    ./usr/include/aarch64-linux-gnu/qt5/QtXmlPatterns
    ./usr/include/aarch64-linux-gnu/qt5/QtWebChannel
    ./usr/include/aarch64-linux-gnu/qt5/QtDBus
    ./usr/include/aarch64-linux-gnu/qt5/QtPacketProtocol
    ./usr/include/aarch64-linux-gnu/qt5/QtPacketProtocol/5.11.3/QtPacketProtocol
    ./usr/include/aarch64-linux-gnu/qt5/QtQml
    ./usr/include/aarch64-linux-gnu/qt5/QtQml/5.11.3/QtQml
    ./usr/include/aarch64-linux-gnu/qt5/QtOpenGLExtensions
    ./usr/include/aarch64-linux-gnu/qt5/QtWaylandCompositor
    ./usr/include/aarch64-linux-gnu/qt5/QtTest
    ./usr/include/aarch64-linux-gnu/qt5/QtGui
    ./usr/include/aarch64-linux-gnu/qt5/QtMultimediaQuick
    ./usr/include/aarch64-linux-gnu/qt5/QtNetwork
    ./usr/include/aarch64-linux-gnu/qt5/QtWidgets
    ./usr/include/aarch64-linux-gnu/qt5/QtGamepad
    ./usr/include/aarch64-linux-gnu/qt5/QtSensors
    ./usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets
    ./usr/include/aarch64-linux-gnu/qt5/QtQuickWidgets/5.11.3/QtQuickWidgets
    ./usr/include/aarch64-linux-gnu/qt5/QtQmlDebug
    ./usr/include/aarch64-linux-gnu/qt5/QtQmlDebug/5.11.3/QtQmlDebug
    ./usr/include/aarch64-linux-gnu/qt5/QtConcurrent
    ./usr/include/aarch64-linux-gnu/qt5/QtXml
    ./usr/include/aarch64-linux-gnu/qt5/QtQuick
    ./usr/include/aarch64-linux-gnu/qt5/QtQuick/5.11.3/QtQuick
    ./usr/include/aarch64-linux-gnu/qt5/QtQuickParticles
    ./usr/include/aarch64-linux-gnu/qt5/QtQuickParticles/5.11.3/QtQuickParticles
    ./usr/include/aarch64-linux-gnu/qt5/QtWebKitWidgets
    ./usr/include/aarch64-linux-gnu/qt5/QtSerialPort
    ./usr/include/aarch64-linux-gnu/qt5/QtMultimedia
    ./usr/include/aarch64-linux-gnu/qt5/QtQuickTest
    ./usr/include/aarch64-linux-gnu/qt5/QtQuickTest/5.11.3/QtQuickTest
    ./usr/include/aarch64-linux-gnu/qt5/QtCore
    ./usr/include/aarch64-linux-gnu/qt5/QtPlatformHeaders
    ./usr/include/aarch64-linux-gnu/qt5/QtSvg
    ./usr/include/aarch64-linux-gnu/qt5/QtMultimediaGstTools
    ./usr/include/aarch64-linux-gnu/qt5/QtWaylandClient
    ./usr/include/aarch64-linux-gnu/qt5/QtWaylandClient/5.11.3/QtWaylandClient
    ./usr/include/aarch64-linux-gnu/qt5/QtWebSockets
    ./usr/include/aarch64-linux-gnu/qt5/QtX11Extras
    ./usr/include/aarch64-linux-gnu/qt5/QtOpenGL
    ./usr/include/aarch64-linux-gnu/qt5/QtWebKit
    ./usr/include/aarch64-linux-gnu/qt5/QtTextToSpeech
    ./usr/include/aarch64-linux-gnu/qt5/QtWebView
    ./usr/include/aarch64-linux-gnu/qt5/QtCharts
    ./usr/include/aarch64-linux-gnu/qt5/QtPrintSupport
    ./usr/include/aarch64-linux-gnu/qt5/QtMultimediaWidgets
    ./usr/include/aarch64-linux-gnu/qt5/QtSql
    
    

  • Lifetime Qt Champion

    Ok, did you try starting your application with the QT_DEBUG_PLUGINS environment variable set to 1 ? It should give you some more clues about what is happening.


Log in to reply