c_uart_interface_example
c_uart_interface_example copied to clipboard
Cannot build on Fedora Silverblue/uBlue OS
I downloaded your repository and extracted it, entered the folder, ran git init
and then make
:
make
git submodule update --init --recursive
g++ -g -Wall -I mavlink/include/mavlink/v2.0 mavlink_control.cpp serial_port.cpp udp_port.cpp autopilot_interface.cpp -o mavlink_control -lpthread
In file included from mavlink_control.cpp:56:
mavlink_control.h:70:10: fatal error: common/mavlink.h: No such file or directory
70 | #include <common/mavlink.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from serial_port.cpp:55:
serial_port.h:65:10: fatal error: common/mavlink.h: No such file or directory
65 | #include <common/mavlink.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from udp_port.cpp:57:
udp_port.h:76:10: fatal error: common/mavlink.h: No such file or directory
76 | #include <common/mavlink.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from autopilot_interface.h:58,
from autopilot_interface.cpp:55:
generic_port.h:59:10: fatal error: common/mavlink.h: No such file or directory
59 | #include <common/mavlink.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile:4: mavlink_control] Error 1
asterix@fedora:~/groundController/c_uart_interface_example$
Looks like something is missing?