MAVSDK icon indicating copy to clipboard operation
MAVSDK copied to clipboard

.deb file for Ubuntu 18.04 Jetson nano

Open Jai-GAY opened this issue 2 years ago • 5 comments

is there such a package? installation approach.

dpkg: error processing archive libmavsdk-dev_1.3.1_ubuntu18.04_amd64.deb (--install): package architecture (amd64) does not match system (arm64) Errors were encountered while processing: libmavsdk-dev_1.3.1_ubuntu18.04_amd64.deb

Package: nvidia-jetpack Version: 4.6.1-b110 Architecture: arm64 Maintainer: NVIDIA Corporation

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic

Jai-GAY avatar Apr 27 '22 06:04 Jai-GAY

Did you try the libmavsdk-dev_1.3.1_debian11_arm64.deb package?

JonasVautherin avatar Apr 27 '22 10:04 JonasVautherin

It seems can, but how do I diagnose and debug it is working correctly? Where does it unpack to and how to connect the dots?

Selecting previously unselected package libmavsdk-dev. (Reading database ... 183367 files and directories currently installed.) Preparing to unpack libmavsdk-dev_1.3.1_debian11_arm64.deb ... Unpacking libmavsdk-dev (1.3.1) ... Setting up libmavsdk-dev (1.3.1) ... Processing triggers for libc-bin (2.27-3ubuntu1.5) ...

Jai-GAY avatar Apr 28 '22 01:04 Jai-GAY

When you install the library, it installs the headers in /usr/include/mavsdk and the library file in /usr/lib/libmavsdk.so.1. To try it out you would try to compile your application, or an example from the examples directory. When you build an application it will include the headers and link to the library.

julianoes avatar May 09 '22 03:05 julianoes

@julianoes I am having issues on a Jetson Orin with the default Debian 11 build. I can build and install it locally, but would like to generate a .deb that would make it easier to install on other machines I have. Is there documentation for how you are generating your .deb's? Or could you loosely outline the process for me?

mholzel avatar Jul 19 '23 13:07 mholzel

We use dockcross.

Here are some docs: https://mavsdk.mavlink.io/main/en/cpp/guide/build_mavsdk_server.html#cross_compilation_dockcross

And for the details on how each build is done, check out the GitHub CI: https://github.com/mavlink/MAVSDK/blob/main/.github/workflows/main.yml#L267

julianoes avatar Jul 21 '23 05:07 julianoes