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

    How to Build mavsdk_server from new source

    Ask your questions right here!
    5
    13
    686
    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.
    • Eric KatzfeyE
      Eric Katzfey ModalAI Team @PIRON PI
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • C
        CY-1992
        last edited by

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

        PIRON PIP 3 Replies Last reply Reply Quote 0
        • PIRON PIP
          PIRON PI @CY-1992
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • PIRON PIP
            PIRON PI @CY-1992
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • PIRON PIP
              PIRON PI @CY-1992
              last edited by

              @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 Reply Quote 0
              • Chad SweetC
                Chad Sweet ModalAI Team
                last edited by

                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 Reply Quote 0
                • PIRON PIP
                  PIRON PI @Chad Sweet
                  last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • PIRON PIP
                    PIRON PI @Chad Sweet
                    last edited by

                    @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 Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      @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 Reply Quote 0
                      • PIRON PIP
                        PIRON PI @Guest
                        last edited by

                        @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 Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | Contributors