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

ModalAI Forum

  1. ModalAI Support Forum
  2. Development Drones
  3. Failure on build customized px4 firmware repo

Failure on build customized px4 firmware repo

Scheduled Pinned Locked Moved Unsolved Development Drones
px4-dev-kit
5 Posts 2 Posters 2.1k 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

            Reading along? Create a free ModalAI Forum account to join in.

            With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

            Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

            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