Note: It is not usual to use CMAKE_BUILD_TYPE on Windows (with MSVC), however, our build requires it for the dependencies which are built at configure time. DCMAKE_BUILD_TYPE=ReleaseĬmake -build build/default -j8 -config Release Linux/macOS: cmake -Bbuild/default -DCMAKE_BUILD_TYPE=Release -H. Once you ship software, make sure to use the release build with optimizations turned on: To build the MAVSDK C++ Library for development, use the debug build.Ĭonfigure first, then build: cmake -DCMAKE_BUILD_TYPE=Debug -Bbuild/default -H. Make sure to get all the submodules as well: git submodule update -init -recursive Getting the sourceĭownload the source using git: git clone Note: Building using Cygwin or MingW is not supported. git or any other tool to work with git.Make sure to tick "add to PATH" during the installation. cmake: Download the installer and run it.Build Tools for Visual Studio 2022: Download and install (only the "Visual C+ Build Tools" are needed from installer).To build the library in Windows, you need: Once you have installed brew, you can install cmake using brew in the terminal: brew install cmake Sudo dnf groupinstall "Development Tools" "Development Libraries"Īrch Linux: sudo pacman -Sy base-devel cmake gitįirst install XCode Command line tools: xcode-select -install Sudo apt-get install build-essential cmake git The build requirements are git, cmake, and a compiler such as GCC, Clang, or MSVC. This section explains how to build the library along with its unit and integration tests. Note that there are separate instructions to build the mavsdk_server. This section explains how to build and install the MAVSDK C++ library from source for all our target platforms.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |