Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Have problem with building module QtSerialBus for Raspberry Pi 3 B

Have problem with building module QtSerialBus for Raspberry Pi 3 B

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 975 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • TranVinhPhucT Offline
    TranVinhPhucT Offline
    TranVinhPhuc
    wrote on last edited by aha_1980
    #1

    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 https://wiki.qt.io/RaspberryPi2EGLFS ) .
    when i " make "
    I stuck in Building module QtSerialBus

    0_1566881585351_f17c9cf4-9977-4dde-8664-864b5ca4acca-image.png

    Error:

    /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/libQt5Core.so: undefined reference to `dlopen@LIBC'
    
    /home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib/libQt5Core.so: undefined reference to `dlerror@LIBC'
    
    /home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib/libQt5Core.so: undefined reference to `dlclose@LIBC'
    
    /home/phuc/raspi/qt-everywhere-src-5.12.3/qtbase/lib/libQt5Core.so: 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 !

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      TranVinhPhucT 1 Reply Last reply
      1
      • TranVinhPhucT Offline
        TranVinhPhucT Offline
        TranVinhPhuc
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • sierdzioS sierdzio

          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.

          TranVinhPhucT Offline
          TranVinhPhucT Offline
          TranVinhPhuc
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            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).

            (Z(:^

            1 Reply Last reply
            0
            • TranVinhPhucT Offline
              TranVinhPhucT Offline
              TranVinhPhuc
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kuzulis
                Qt Champions 2020
                wrote on last edited by kuzulis
                #7

                @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?

                TranVinhPhucT 1 Reply Last reply
                0
                • K kuzulis

                  @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?

                  TranVinhPhucT Offline
                  TranVinhPhucT Offline
                  TranVinhPhuc
                  wrote on last edited by
                  #8

                  @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.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved