Mavsdk: takeoff_and_land error (fatal error: plugin_base.h: No such file or directory)

Created on 18 Feb 2020  路  4Comments  路  Source: mavlink/MAVSDK

I coppied and pasted example code from "https://mavsdk.mavlink.io/develop/en/examples/takeoff_and_land.html" to my "~/catkin_ws/src/droneControl/localization.cpp" folder. When I build catkin_ws with "catkin build" I take error like that:

**`

  • Errors << droneControl:make /home/yusufozben/catkin_ws/logs/droneControl/build.make.025.log
  • In file included from /home/yusufozben/catkin_ws/src/droneControl/localization.cpp:9:0:
  • /usr/include/mavsdk/plugins/action/action.h:6:10: fatal error: plugin_base.h: No such file or directory
  • #include "plugin_base.h"
  • ^~~~~~~
  • compilation terminated.
  • make[2]: * [CMakeFiles/localization.dir/localization.cpp.o] Error 1
  • make[1]: * [CMakeFiles/localization.dir/all] Error 2
  • make: * [all] Error 2
  • cd /home/yusufozben/catkin_ws/build/droneControl; catkin build --get-env droneControl | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -

`**

mavsdk location : "/usr/include/mavsdk"

I try to add plugin_base.h directory to cmakefile but it doesn't run. I also try to do this "https://github.com/mavlink/MAVSDK/issues/802".

question

Most helpful comment

It was an only typo in 'CMakeLists.txt'. After coping and pasting 'CMakeFiles.txt' from 'https://github.com/mavlink/MAVSDK/blob/develop/example/takeoff_land/CMakeLists.txt', the error was fixed.

All 4 comments

Did you solve it? :slightly_smiling_face:

Thanks for your reply. I solved it. 馃檪

@Gardiar just for someone seeing this later: how did you fix it?

It was an only typo in 'CMakeLists.txt'. After coping and pasting 'CMakeFiles.txt' from 'https://github.com/mavlink/MAVSDK/blob/develop/example/takeoff_land/CMakeLists.txt', the error was fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shakthi-prashanth-m picture shakthi-prashanth-m  路  7Comments

physicsman picture physicsman  路  6Comments

petergerten picture petergerten  路  6Comments

itrigitech picture itrigitech  路  5Comments

Katawann picture Katawann  路  4Comments