I do not have too much experience in Linux, so maybe this is the problem, but I am trying to use the MavSdk and getting error when trying to compile my code in c++.
The error is when linking libraries in my project. I followed all the steps to install release packages and/or build mavsdk from source in Ubuntu 20.04 and at fisrt I had no problems and using DPKG I got.
ii libmavsdk-dev 1.0.8 amd64 no description given
However, when I try to compile my project I got, for exeample:
CMake Error at CMakeLists.txt:19 (add_executable): Target "UTM_APP" links to target "MAVSDK::mavsdk_telemetry" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
For all the plugins I got this error, despite the MAVSDK::mavsdk works well. If I compile only linking MAVSDK::mavsdk I got no errors. (but when try to run the program the plugins library are missing)
My question is that if I need to do something diferent to have the plugins working?
Only “libmavsdk-dev” should be enough, or I should have a lib for each plugin?