Important: Please read the Qt Code of Conduct -

Have problem with building module QtSerialBus for Raspberry Pi 3 B

  • Hi All !
    I am using Qt 5.12.4. and i using cross-compiling Qt with RPi3 B.
    I Have problem when build after step 10 ( according ) .
    when i " make "
    I stuck in Building module QtSerialBus



    /home/phuc/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/phuc/raspi/sysroot -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../lib -Wl,-rpath-link,/home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib -Wl,-rpath-link,/home/phuc/raspi/qt-everywhere-src-5.12.3/qtserialport/lib -Wl,-rpath-link,/home/phuc/raspi/sysroot/opt/vc/lib -Wl,-rpath-link,/home/phuc/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/phuc/raspi/sysroot/lib/arm-linux-gnueabihf -o ../../../bin/canbusutil .obj/main.o .obj/readtask.o .obj/canbusutil.o .obj/sigtermhandler.o .obj/moc_readtask.o .obj/moc_canbusutil.o .obj/moc_sigtermhandler.o   -L/home/phuc/raspi/qt-everywhere-src-5.12.3/qtserialbus/lib -lQt5SerialBus -L/home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib -lQt5Core -lpthread   
    /home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib/ undefined reference to `dlopen@LIBC'
    /home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib/ undefined reference to `dlerror@LIBC'
    /home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib/ undefined reference to `dlclose@LIBC'
    /home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib/ undefined reference to `dlsym@LIBC'
    collect2: error: ld returned 1 exit status
    Makefile:98: recipe for target '../../../bin/canbusutil' failed
    make[4]: *** [../../../bin/canbusutil] Error 1
    make[4]: Leaving directory '/home/phuc/raspi/qt-everywhere-src-5.12.3/qtserialbus/src/tools/canbusutil'
    Makefile:46: recipe for target 'sub-canbusutil-make_first' failed
    make[3]: *** [sub-canbusutil-make_first] Error 2
    make[3]: Leaving directory '/home/phuc/raspi/qt-everywhere-src-5.12.3/qtserialbus/src/tools'
    Makefile:99: recipe for target 'sub-tools-make_first' failed
    make[2]: *** [sub-tools-make_first] Error 2
    make[2]: Leaving directory '/home/phuc/raspi/qt-everywhere-src-5.12.3/qtserialbus/src'
    Makefile:48: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/phuc/raspi/qt-everywhere-src-5.12.3/qtserialbus'
    Makefile:232: recipe for target 'module-qtserialbus-make_first' failed
    make: *** [module-qtserialbus-make_first] Error 2

    Help me pls.
    Thanks all !

  • Moderators

    In the future please copy and paste the text here, not make screenshots. It's hard to read it this way.

    Do you need QtSerialBus module? If not you can skip it.

    Undefined reference to dlopen sounds serious, like the toolchain is incomplete or broken. Have other parts of Qt compiled without problems?

    Try to make a single build, not module-by-module like the wiki suggests (so, download full Qt source code, unpack, delete modules you don't need, then run configure in the top level directory).

    Also, use Qt 5.12.4, perhaps there is some bug in .3 and you've just hit it.

  • Thank for your help!
    i will test it now following you show it.
    But in a few minutes ago i try to remote that module out and it continuously have problem with Qt Declarative with the same problem.

  • @sierdzio I try to do following you show and i -skip qtserialbus in ./configure step and it have problem with qtdeclarative with same problem

  • Moderators

    I don't know how to fix it, all I can say is - if you don't need declarative, skip it, too (declarative repo contains QtQuick).

  • @sierdzio well it so hard ^^ ...
    My application maybe use QtQuick to create UI

  • Qt Champions 2020

    @tranvinhphuc said in Have problem with building module QtSerialBus for Raspberry Pi 3 B:

    undefined reference to `dlopen

    Have you googled? Why we (I) should to do googling instead of you? Or, are you banned in a google?

  • @kuzulis hi guys !
    I was googled but all result i do followed but it still not better.
    So it post in this forum maybe have someone can help !
    i know it problem with linker of file to gcc but i do following that it not work.

Log in to reply