ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Toolchain problem ? VOXL-Vision-Hub fails to build

    Starling & Starling 2
    3
    11
    14
    Loading More Posts
    • 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.
    • Hector GutierrezH
      Hector Gutierrez
      last edited by

      Good morning,

      There seems to be an overall problem with the tool chain to build VOXL Vision Hub.
      First, I installed voxl-docker and voxl-cross(4.0) as described on the bootcamp.
      I cloned voxl-vision-hub: git clone https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/
      Then followed the instructions to build the target:
      $ cd voxl-vision-hub
      $ voxl-docker -i voxl-cross
      Inside voxl-cross docker: install build dependencies:
      voxl-cross(4.0)$ ./install_build_deps.sh qrb5165-2 dev
      Then build:
      voxl-cross(4.0)$ ./build.sh qrb5165-2

      and then it fails to build ! After giving a long list of warnings, the error message is:
      [100%] Linking CXX executable voxl-vision-hub
      /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: CMakeFiles/voxl-vision-hub.dir/offboard_vfc.c.o:(.bss+0x48): multiple definition of `offboard_log'; CMakeFiles/voxl-vision-hub.dir/offboard_mode.c.o:(.bss+0x0): first defined here
      collect2: error: ld returned 1 exit status
      make[2]: *** [src/CMakeFiles/voxl-vision-hub.dir/build.make:521: src/voxl-vision-hub] Error 1
      make[1]: *** [CMakeFiles/Makefile2:155: src/CMakeFiles/voxl-vision-hub.dir/all] Error 2
      make: *** [Makefile:136: all] Error 2

      This is a major modalai package and it fails to build just following the instructions.
      Please advise on how to proceed - This is somewhat urgent since the entire project is on hold if the tools for building don't work.
      Thanks.

      tomT 2 Replies Last reply Reply Quote 0
      • tomT
        tom admin @Hector Gutierrez
        last edited by

        @Hector-Gutierrez You don't want to be building for qrb5165-2, you want qrb5165

        1 Reply Last reply Reply Quote 0
        • tomT
          tom admin @Hector Gutierrez
          last edited by

          @Hector-Gutierrez All of our packages get built on master and dev each night so if you're wondering whether the package is able to be built you can always check the status of the CI pipelines: https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/-/pipelines

          1 Reply Last reply Reply Quote 0
          • Hector GutierrezH
            Hector Gutierrez
            last edited by

            Tom - thanks for the prompt response. I used qrb5165-2 since I'm running on Ubuntu 20.04 and the build instructions mention to use that option.
            I re-did the procedure (after deleting all files from the previous attempt) , this time I used qrb5165 for both dependencies and built. Build fails, several warning, build error very similar as before:
            [100%] Linking CXX executable voxl-vision-hub
            /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: CMakeFiles/voxl-vision-hub.dir/offboard_vfc.c.o:(.bss+0x48): multiple definition of `offboard_log'; CMakeFiles/voxl-vision-hub.dir/offboard_mode.c.o:(.bss+0x0): first defined here
            collect2: error: ld returned 1 exit status
            make[2]: *** [src/CMakeFiles/voxl-vision-hub.dir/build.make:521: src/voxl-vision-hub] Error 1
            make[1]: *** [CMakeFiles/Makefile2:155: src/CMakeFiles/voxl-vision-hub.dir/all] Error 2
            make: *** [Makefile:136: all] Error 2

            I'm able to build other applications, so it seems my voxl-docker and voxl-cross are working properly. Please advise on what else could I try.
            Thanks, Hector

            Eric KatzfeyE tomT 2 Replies Last reply Reply Quote 0
            • Eric KatzfeyE
              Eric Katzfey ModalAI Team @Hector Gutierrez
              last edited by

              @Hector-Gutierrez What branch are you trying to build? If you install dependencies from the dev repo then you should also be building the dev branch of voxl-vision-hub

              Hector GutierrezH 1 Reply Last reply Reply Quote 0
              • tomT
                tom admin @Hector Gutierrez
                last edited by

                @Hector-Gutierrez Your VOXL2 is running Ubuntu 20 or your host machine is Ubuntu 20?

                We don't build voxl-vision-hub for ubuntu 20 so that isn't correct

                tomT 1 Reply Last reply Reply Quote 0
                • tomT
                  tom admin @tom
                  last edited by

                  @tom I believe we're also still building voxl-vision-hub with voxl-cross:V2.7, we're in a bit of a transition period of moving packages to the newer voxl-cross and I don't think voxl-vision-hub has been moved over yet

                  Hector GutierrezH 1 Reply Last reply Reply Quote 0
                  • Hector GutierrezH
                    Hector Gutierrez @Eric Katzfey
                    last edited by

                    @Eric-Katzfey
                    Hi Eric - the exact sequence I'm following is:

                    $ git clone https://gitlab.com/voxl-public/voxl-sdk/services/voxl-vision-hub/
                    $ cd voxl-vision-hub
                    $ voxl-docker -i voxl-cross
                    voxl-cross(4.0)$ ./install_build_deps.sh qrb5165 dev
                    voxl-cross(4.0)$ ./build.sh qrb5165

                    I've tried both options qrb5165 and qrb5165-2 and both fail at build.

                    Thanks, Hector

                    1 Reply Last reply Reply Quote 0
                    • Hector GutierrezH
                      Hector Gutierrez @tom
                      last edited by

                      @tom , can I install and use voxl-cross(2.7) concurrently with V4.0 ? Or do I have to delete my V4.0 installation ?

                      tomT 1 Reply Last reply Reply Quote 0
                      • tomT
                        tom admin @Hector Gutierrez
                        last edited by

                        @Hector-Gutierrez You can use them concurrently, just specify which to run like so voxl-docker -i voxl-cross:V2.7

                        If you don't specify which version to use it'll default to whichever is tagged with latest

                        Hector GutierrezH 1 Reply Last reply Reply Quote 0
                        • Hector GutierrezH
                          Hector Gutierrez @tom
                          last edited by

                          @tom - that solved the problem . The solution was to download and build using voxl-cross:V2.7
                          Thanks for the very prompt response ! regards, Hector

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Powered by NodeBB | Contributors