Hello, folks!
I have installed APM Navio and downloaded the examples from the repository, but when I try to compile them, I see the following error:
I don’t know much about Linux, compilers and Makefiles, but I did a few researches on the topic and all those things seem okay. g++
is up to date, apm-navio
too.
Although the Makefile seems okay, the error indicates that the library can’t be found. I tried, then, editing the AccelGyroMag.cpp
file, inserting the reference as “hardcode”. I replaced
#include "Navio/~"
by
#include "../../Navio/~"
The error, then, changed:
What am I doing wrong, and what is the cleanest solution for this? I think maybe editing the path to the compiler could solve the issue, but is this the best one?
Thanks in advance!