Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

Compile for embedded target fails in QtCreator, looks for plugins in wrong location



  • My application compiles successfully on the desktop but when I switch the target to my embedded device the build fails. It looks like its not looking in the correct location to find the plugins.

    It looks for the plugins at /usr/local/Qt-5.13.0-3Dxx rather than /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/. The other Qt libraries are found in the correct. How do I correct the path for the plugins?

    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ \
    -mfloat-abi=hard \
    --sysroot=/home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi \
    -Wl,--gc-sections \
    -o NGS2-UI \
    main.o sessiondata.o ngs2-ui_plugin_import.o ngs2-ui_qml_plugin_import.o qrc_qml.o qrc_resources.o qrc_qmake_qmake_immediate.o moc_sessiondata.o   \
    /usr/local/Qt-5.13.0-3Dxx/plugins/scenegraph/libqsgopenvgbackend.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/platforms/libqeglfs.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqicns.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqico.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqjpeg.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqtga.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqtiff.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqwbmp.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqwebp.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/egldeviceintegrations/libqeglfs-emu-integration.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/egldeviceintegrations/libqeglfs-viv-integration.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_debugger.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_inspector.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_local.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_messages.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_native.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_nativedebugger.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_preview.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_profiler.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_quickprofiler.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_server.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_tcp.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqconnmanbearer.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqgenericbearer.a \
    /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqnmbearer.a \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Quick.a \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Gui.a \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libqtlibpng.a \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libharfbuzz.so \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Qml.a \
    -lrt \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Network.a \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Core.a \
    -lm \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libicui18n.so \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libicuuc.so \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libicudata.so \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libdl.so \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libqtpcre2.a \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libGLESv2.so \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libEGL.so \
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libGAL.so \
    -lpthread   
    

    From the Kit view, the plugins path looks correct so not sure what is going on.

    0_1565285762213_qt-kits.PNG


  • Lifetime Qt Champion

    Hi,

    Something is not clear, do you mean the application can't load plugins when started on the device ?



  • No, the build fails because it cannot find the plugins because it's looking in the incorrect location.

    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/bin/qmake -o Makefile ../NGS2-UI/NGS2-UI.pro -spec devices/linux-imx6-g++ CONFIG+=debug CONFIG+=qml_debug
    /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -mfloat-abi=hard --sysroot=/home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi -Wl,--gc-sections -o NGS2-UI main.o sessiondata.o ngs2-ui_plugin_import.o ngs2-ui_qml_plugin_import.o qrc_qml.o qrc_resources.o qrc_qmake_qmake_immediate.o moc_sessiondata.o   /usr/local/Qt-5.13.0-3Dxx/plugins/scenegraph/libqsgopenvgbackend.a /usr/local/Qt-5.13.0-3Dxx/plugins/platforms/libqeglfs.a /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqicns.a /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqico.a /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqjpeg.a /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqtga.a /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqtiff.a /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqwbmp.a /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqwebp.a /usr/local/Qt-5.13.0-3Dxx/plugins/egldeviceintegrations/libqeglfs-emu-integration.a /usr/local/Qt-5.13.0-3Dxx/plugins/egldeviceintegrations/libqeglfs-viv-integration.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_debugger.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_inspector.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_local.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_messages.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_native.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_nativedebugger.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_preview.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_profiler.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_quickprofiler.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_server.a /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_tcp.a /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqconnmanbearer.a /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqgenericbearer.a /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqnmbearer.a /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Quick.a /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Gui.a /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libqtlibpng.a /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libharfbuzz.so /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Qml.a -lrt /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Network.a /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libQt5Core.a -lm /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libicui18n.so /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libicuuc.so /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libicudata.so /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libdl.so /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/local/Qt-5.13.0-3Dxx/lib/libqtpcre2.a /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libGLESv2.so /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libEGL.so /home/mjohn/Qt/5.13.0/Boot2Qt/nitrogen6x/toolchain/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libGAL.so -lpthread   
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/scenegraph/libqsgopenvgbackend.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/platforms/libqeglfs.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqicns.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqico.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqjpeg.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqtga.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqtiff.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqwbmp.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/imageformats/libqwebp.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/egldeviceintegrations/libqeglfs-emu-integration.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/egldeviceintegrations/libqeglfs-viv-integration.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_debugger.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_inspector.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_local.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_messages.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_native.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_nativedebugger.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_preview.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_profiler.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_quickprofiler.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_server.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/qmltooling/libqmldbg_tcp.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqconnmanbearer.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqgenericbearer.a: No such file or directory
    arm-poky-linux-gnueabi-g++: error: /usr/local/Qt-5.13.0-3Dxx/plugins/bearer/libqnmbearer.a: No such file or directory
    make: *** [Makefile:316: NGS2-UI] Error 1
    

Log in to reply