mavlink / c_uart_interface_example

Simple MAVLink to UART interface example for *nix systems
271 stars 261 forks source link

Cannot build on Fedora Silverblue/uBlue OS #43

Open zilexa opened 1 month ago

zilexa commented 1 month ago

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?

julianoes commented 1 month ago

Did you get the submodule?

git submodule update --init --recursive