Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. Need newer version of GCC on VOXL

Need newer version of GCC on VOXL

Scheduled Pinned Locked Moved Software Development
9 Posts 2 Posters 2.1k Views 2 Watching
  • 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.
  • Rolando FernandezR Offline
    Rolando FernandezR Offline
    Rolando Fernandez
    wrote on last edited by
    #1

    Hello,

    I work over at ARL with Steve Nogar. I have some software I want to run on the VOXL that has a hard requirement of C++17 but the version of GCC on the VOXL does not support C++17. I tried compiling a version of GCC (v7 or newer) that supports C++17 native on the VOXL but it fails due to some assembler errors.

    Is there any way to get a newer version of GCC for the VOXL system?

    Thanks,
    Rolando

    1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      Running everything in a Docker would definitely be the easiest way to go. The code inside of the Docker runs faster than on the yocto layer as the Docker is a pure ARMv8 userspace. Is that a possibility?

      Otherwise you would probably have to use a cross compiler (like an upgrade to voxl-cross) and then try to work out linking on target. This blog post here suggests using LD_PRELOAD

      Docker would still be easier, and likely better performant

      Rolando FernandezR 1 Reply Last reply
      0
      • Rolando FernandezR Offline
        Rolando FernandezR Offline
        Rolando Fernandez
        wrote on last edited by Rolando Fernandez
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Chad SweetC Chad Sweet

          Running everything in a Docker would definitely be the easiest way to go. The code inside of the Docker runs faster than on the yocto layer as the Docker is a pure ARMv8 userspace. Is that a possibility?

          Otherwise you would probably have to use a cross compiler (like an upgrade to voxl-cross) and then try to work out linking on target. This blog post here suggests using LD_PRELOAD

          Docker would still be easier, and likely better performant

          Rolando FernandezR Offline
          Rolando FernandezR Offline
          Rolando Fernandez
          wrote on last edited by
          #4

          @Chad-Sweet Do you have an example of running docker onboard and how I can transfer a docker image to the voxl?

          Is the issue regarding docker image size been resolved? I know awhile back Steve was trying to use docker but he was having trouble with our image being too large to run on the voxl.

          1 Reply Last reply
          0
          • Chad SweetC Offline
            Chad SweetC Offline
            Chad Sweet
            ModalAI Team
            wrote on last edited by
            #5

            Yes, see docs here: https://docs.modalai.com/docker-on-voxl/

            We have changed partition on flash to two 16GB partitions. See this section where it points you to use the /data partition which is 16GB specifically for Docker use

            Rolando FernandezR 1 Reply Last reply
            0
            • Chad SweetC Chad Sweet

              Yes, see docs here: https://docs.modalai.com/docker-on-voxl/

              We have changed partition on flash to two 16GB partitions. See this section where it points you to use the /data partition which is 16GB specifically for Docker use

              Rolando FernandezR Offline
              Rolando FernandezR Offline
              Rolando Fernandez
              wrote on last edited by
              #6

              @Chad-Sweet How do I get the docker system services to start on boot?

              Also, does the docker image have full access to all the peripherals on the system? Basically, does voxl-docker run images in privileged mode?

              1 Reply Last reply
              0
              • Chad SweetC Offline
                Chad SweetC Offline
                Chad Sweet
                ModalAI Team
                wrote on last edited by
                #7

                Configuring to run on boot is documented here

                For peripherals, you can configure for privelaged mode. voxl-camera-server and voxl-imu-server run on the yocto layer and output their data to pipes which can be accessed inside of the Docker. That's all coming online right now but should be working. For the rest of the peripherials it comes down to what you expose at docker run

                Rolando FernandezR 1 Reply Last reply
                0
                • Chad SweetC Chad Sweet

                  Configuring to run on boot is documented here

                  For peripherals, you can configure for privelaged mode. voxl-camera-server and voxl-imu-server run on the yocto layer and output their data to pipes which can be accessed inside of the Docker. That's all coming online right now but should be working. For the rest of the peripherials it comes down to what you expose at docker run

                  Rolando FernandezR Offline
                  Rolando FernandezR Offline
                  Rolando Fernandez
                  wrote on last edited by
                  #8

                  @Chad-Sweet How do I get my build in docker to locate the voxl libraries on the system? For example, the voxl_io header.

                  1 Reply Last reply
                  0
                  • Chad SweetC Offline
                    Chad SweetC Offline
                    Chad Sweet
                    ModalAI Team
                    wrote on last edited by
                    #9

                    libvoxl_io unfortunately won't work inside of a Docker. Are you communicating via MAVLink? If so, you can send mavlink commands to voxl-vision-px4 to be forwarded on the the flight controller over serial.

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    ModalAI
                    Categories Recent Tags ModalAI.com Docs
                    © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups