I need to build a standalone executable which uses MAVSDK and therefore I want to build MAVSDK as static library. But when I set the flag
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DENABLE_MAVLINK_PASSTHROUGH=ON -DBUILD_TEST=ON -Bbuild -H.
I finish with the following error when I build my application:
CMake Error at /usr/share/cmake-3.13/Modules/CMakeFindDependencyMacro.cmake:48 (find_package): Could not find a package configuration file provided by "CURL" with any of the following names: CURLConfig.cmake curl-config.cmake Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set "CURL_DIR" to a directory containing one of the above files. If "CURL" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /usr/local/lib/cmake/MAVSDK/MAVSDKConfig.cmake:7 (find_dependency) CMakeLists.txt:14 (find_package)