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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Drones
  3. PX4 Autonomy Developer Kit
  4. Failure on build customized px4 firmware repo

Failure on build customized px4 firmware repo

Scheduled Pinned Locked Moved PX4 Autonomy Developer Kit
5 Posts 2 Posters 1.5k Views 1 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.
  • E Offline
    E Offline
    enrico.bandera 0
    Contributor
    wrote on last edited by
    #1

    Hi I am trying to build a customized px4 for voxl2
    So I added our repo as submodule but the build fails with following error message:

    /usr/local/workspace/px4-autopilot/boards/modalai/voxl2-slpi/src/drivers/dsp_hitl/dsp_hitl.cpp:49:10: fatal error: 'mavlink.h' file not found
    #include <mavlink.h>

    I have previously succesfully built with native px4-firmware repo, and also deployed on target.
    I did not overwrite original px4-firmware, but I added a new px4-autopilot folder that has the same structure, hence I expect it build in same way.
    Obviously I modified the existing scripts to use px4-autopilot folder instead of px4-firmware

    May be this is not sufficient?
    Thanks in Advance
    Enrico

    Alex KushleyevA 1 Reply Last reply
    0
    • E enrico.bandera 0

      Hi I am trying to build a customized px4 for voxl2
      So I added our repo as submodule but the build fails with following error message:

      /usr/local/workspace/px4-autopilot/boards/modalai/voxl2-slpi/src/drivers/dsp_hitl/dsp_hitl.cpp:49:10: fatal error: 'mavlink.h' file not found
      #include <mavlink.h>

      I have previously succesfully built with native px4-firmware repo, and also deployed on target.
      I did not overwrite original px4-firmware, but I added a new px4-autopilot folder that has the same structure, hence I expect it build in same way.
      Obviously I modified the existing scripts to use px4-autopilot folder instead of px4-firmware

      May be this is not sufficient?
      Thanks in Advance
      Enrico

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by Alex Kushleyev
      #2

      @enrico-bandera-0 ,

      It sounds like you previously were able to build px4 for voxl2, which is good. The error you are receiving could be because you are not running the full build from the beginning. From the instructions located here : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-px4 , you should run (inside rb5-flight-px4-build-docker)

      ./clean.sh
      ./build.sh
      

      If that does not work, should go back and try to build our standard px4 from voxl-dev branch of px4-firmware or whichever branch / tag you wanted to start with.

      E 2 Replies Last reply
      0
      • Alex KushleyevA Alex Kushleyev

        @enrico-bandera-0 ,

        It sounds like you previously were able to build px4 for voxl2, which is good. The error you are receiving could be because you are not running the full build from the beginning. From the instructions located here : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-px4 , you should run (inside rb5-flight-px4-build-docker)

        ./clean.sh
        ./build.sh
        

        If that does not work, should go back and try to build our standard px4 from voxl-dev branch of px4-firmware or whichever branch / tag you wanted to start with.

        E Offline
        E Offline
        enrico.bandera 0
        Contributor
        wrote on last edited by
        #3

        @Alex-Kushleyev yes, I did it exactly how described in https://gitlab.com/voxl-public/voxl-sdk/services/voxl-px4
        The problem occurs when I try to replace the submodule px4-firmware with another (in this case it is named px4-autopilot) using git submodule add <path_to_repo>
        Then I modified the build.sh clean.sh and make-package.sh in order to use the new repo/submodule instead the original one.
        All this is done inside the rb5-flight-px4-build-docker.

        The error is:

        /usr/local/workspace/px4-autopilot/boards/modalai/voxl2-slpi/src/drivers/dsp_hitl/dsp_hitl.cpp:49:10: fatal error: 'mavlink.h' file not found
        #include <mavlink.h>
                 ^~~~~~~~~~~
        1 error generated.
        ninja: build stopped: subcommand failed.
        make: *** [Makefile:232: modalai_voxl2-slpi] Error 1
        cat: build/modalai_voxl2-slpi_default/src/lib/version/build_git_version.h: No such file or directory
        *** End of qurt slpi build ***
        /usr/local/workspace
        User ID is 1000
        Group ID is 1000
        *** End of build ***
        
        1 Reply Last reply
        0
        • Alex KushleyevA Alex Kushleyev

          @enrico-bandera-0 ,

          It sounds like you previously were able to build px4 for voxl2, which is good. The error you are receiving could be because you are not running the full build from the beginning. From the instructions located here : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-px4 , you should run (inside rb5-flight-px4-build-docker)

          ./clean.sh
          ./build.sh
          

          If that does not work, should go back and try to build our standard px4 from voxl-dev branch of px4-firmware or whichever branch / tag you wanted to start with.

          E Offline
          E Offline
          enrico.bandera 0
          Contributor
          wrote on last edited by
          #4

          @Alex-Kushleyev I could fix it!
          The problem was in the git submodule configuration: the px4-autopilot repo, was not correctly configured and command git submodule update --init --recursive was incomplete.

          Now I can correctly build our px4-autopilot inside docker container. And deploy to target, install and run it!

          Kind Regards

          Alex KushleyevA 1 Reply Last reply
          0
          • E enrico.bandera 0

            @Alex-Kushleyev I could fix it!
            The problem was in the git submodule configuration: the px4-autopilot repo, was not correctly configured and command git submodule update --init --recursive was incomplete.

            Now I can correctly build our px4-autopilot inside docker container. And deploy to target, install and run it!

            Kind Regards

            Alex KushleyevA Offline
            Alex KushleyevA Offline
            Alex Kushleyev
            ModalAI Team
            wrote on last edited by
            #5

            @enrico-bandera-0 Awesome! I am glad you figured it out.

            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