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

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. How to Build mavsdk_server from new source

How to Build mavsdk_server from new source

Scheduled Pinned Locked Moved Ask your questions right here!
13 Posts 5 Posters 2.3k 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.
  • PIRON PIP Offline
    PIRON PIP Offline
    PIRON PI
    Contributor
    wrote on last edited by
    #1

    Hi, I download a new version of mavsdk.
    But New mavsdk needs cmake version 3.13 or later.
    I try to use voxl-emulator or gcr.io/modalai-public/voxl-mavsdk-cpp:v1.0, but their cmake are too old.
    Is there a way to build new version of mavsdk?

    Eric KatzfeyE 1 Reply Last reply
    0
    • PIRON PIP PIRON PI

      Hi, I download a new version of mavsdk.
      But New mavsdk needs cmake version 3.13 or later.
      I try to use voxl-emulator or gcr.io/modalai-public/voxl-mavsdk-cpp:v1.0, but their cmake are too old.
      Is there a way to build new version of mavsdk?

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @PIRON-PI You can get release binaries, for example: https://github.com/mavlink/MAVSDK/releases/download/v0.43.0/mavsdk_server_linux-arm64-musl

      1 Reply Last reply
      0
      • PIRON PIP Offline
        PIRON PIP Offline
        PIRON PI
        Contributor
        wrote on last edited by
        #3

        Hi Eric, the demo code of python can work with mavsdk_server,
        but C++ demo code can't connect with mavsdk_server.
        I read source code of python that assigns udp port for mavsdk_server.
        C++ demo code doesn't assign udp port for mavsdk_server.
        Does this cause C++ demo code doesn't work?

        Eric KatzfeyE 1 Reply Last reply
        0
        • PIRON PIP PIRON PI

          Hi Eric, the demo code of python can work with mavsdk_server,
          but C++ demo code can't connect with mavsdk_server.
          I read source code of python that assigns udp port for mavsdk_server.
          C++ demo code doesn't assign udp port for mavsdk_server.
          Does this cause C++ demo code doesn't work?

          Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          @PIRON-PI I have only worked with the python code.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            CY-1992
            wrote on last edited by
            #5

            @PIRON-PI You don't need mavsdk-server if you use C++.

            PIRON PIP 3 Replies Last reply
            0
            • C CY-1992

              @PIRON-PI You don't need mavsdk-server if you use C++.

              PIRON PIP Offline
              PIRON PIP Offline
              PIRON PI
              Contributor
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • C CY-1992

                @PIRON-PI You don't need mavsdk-server if you use C++.

                PIRON PIP Offline
                PIRON PIP Offline
                PIRON PI
                Contributor
                wrote on last edited by
                #7

                @CY-1992 You give me confidence .
                I did it.
                Thanks a lot.

                1 Reply Last reply
                0
                • C CY-1992

                  @PIRON-PI You don't need mavsdk-server if you use C++.

                  PIRON PIP Offline
                  PIRON PIP Offline
                  PIRON PI
                  Contributor
                  wrote on last edited by
                  #8

                  @CY-1992 I generate libmavsdk.so from instruction of mavsdk.mavlink.io,
                  but it can't be compatible with VOXL.
                  Do you know where I can get source to generate libmavsdk.so for VOXL flight Deck?

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

                    I assume you have seen this tutorial since you mention the docker image

                    Have you tried to upgrade cmake inside the voxl-mavsdk-cpp:v1.0 docker? If cmake version is the only blocker, you should be able to upgrade it to keep moving

                    PIRON PIP 2 Replies Last reply
                    0
                    • Chad SweetC Chad Sweet

                      I assume you have seen this tutorial since you mention the docker image

                      Have you tried to upgrade cmake inside the voxl-mavsdk-cpp:v1.0 docker? If cmake version is the only blocker, you should be able to upgrade it to keep moving

                      PIRON PIP Offline
                      PIRON PIP Offline
                      PIRON PI
                      Contributor
                      wrote on last edited by
                      #10

                      @Chad-Sweet I try to upgrade cmake in docker, but it doesn't work.

                      1 Reply Last reply
                      0
                      • Chad SweetC Chad Sweet

                        I assume you have seen this tutorial since you mention the docker image

                        Have you tried to upgrade cmake inside the voxl-mavsdk-cpp:v1.0 docker? If cmake version is the only blocker, you should be able to upgrade it to keep moving

                        PIRON PIP Offline
                        PIRON PIP Offline
                        PIRON PI
                        Contributor
                        wrote on last edited by
                        #11

                        @Chad-Sweet Maybe you can offer the right version of mavsdk source. Because I use "git clone https://github.com/mavlink/MAVSDK.git". It's too new to be compatible with VOXL flight Deck.

                        1 Reply Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #12

                          @PIRON-PI You don't need to build mavsdk from the source if you are using it in docker on voxl. Just download the arm64 deb package and install it in the docker as shown below in Dockerfile. Try to use base image arm64v8/ubuntu:20.04. It has the latest cmake version.

                          FROM arm64v8/ubuntu:20.04
                          ENV DEBIAN_FRONTEND noninteractive
                          RUN apt-get -y update && \
                              apt-get install -y build-essential cmake git wget
                          
                          WORKDIR /home
                          RUN wget https://github.com/mavlink/MAVSDK/releases/download/v1.4.0/libmavsdk-dev_1.4.0_debian11_arm64.deb && \
                              dpkg -i libmavsdk-dev_1.4.0_debian11_arm64.deb
                          
                          WORKDIR /home
                          #copy all your c++ files and CMakeLists.txt to home directory
                          COPY . .
                          
                          RUN cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -H. && \
                              cmake --build build -j4
                          
                          
                          PIRON PIP 1 Reply Last reply
                          0
                          • ? A Former User

                            @PIRON-PI You don't need to build mavsdk from the source if you are using it in docker on voxl. Just download the arm64 deb package and install it in the docker as shown below in Dockerfile. Try to use base image arm64v8/ubuntu:20.04. It has the latest cmake version.

                            FROM arm64v8/ubuntu:20.04
                            ENV DEBIAN_FRONTEND noninteractive
                            RUN apt-get -y update && \
                                apt-get install -y build-essential cmake git wget
                            
                            WORKDIR /home
                            RUN wget https://github.com/mavlink/MAVSDK/releases/download/v1.4.0/libmavsdk-dev_1.4.0_debian11_arm64.deb && \
                                dpkg -i libmavsdk-dev_1.4.0_debian11_arm64.deb
                            
                            WORKDIR /home
                            #copy all your c++ files and CMakeLists.txt to home directory
                            COPY . .
                            
                            RUN cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -H. && \
                                cmake --build build -j4
                            
                            
                            PIRON PIP Offline
                            PIRON PIP Offline
                            PIRON PI
                            Contributor
                            wrote on last edited by
                            #13

                            @chaitanya Sorry. My goal is that cell phone can control VOXL flight deck.
                            Therefore, I need a MAVSDK library( e.g. libmavsdk.so) at Android. Then I can use the library to send command to control VOXL flight deck.

                            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

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