Hi,
I am trying to compile the latest APM mavlink but get a compiling error:
ArduPilotMega.cpp:17:24: error: FastSerial.h: No such file or directory
ArduPilotMega.cpp:18:23: error: AP_Common.h: No such file or directory
ArduPilotMega.cpp:19:25: error: APM_BinComm.h: No such file or directory
ArduPilotMega.cpp:20:51: error: APM_RC.h: No such file or directory
ArduPilotMega.cpp:21:47: error: AP_GPS.h: No such file or directory
ArduPilotMega.cpp:23:63: error: DataFlash.h: No such file or directory
ArduPilotMega.cpp:24:77: error: APM_ADC.h: No such file or directory
ArduPilotMega.cpp:25:59: error: APM_BMP085.h: No such file or directory
ArduPilotMega.cpp:26:64: error: APM_Compass.h: No such file or directory
ArduPilotMega.cpp:31:90: error: ../mavlink/include/mavlink_types.h: No such file or directory
ArduPilotMega.cpp:33:90: error: ../mavlink/include/ardupilotmega/mavlink.h: No such file or directory
In file included from ArduPilotMega.cpp:47:
/GCS.h:9:26: error: BetterStream.h: No such file or directory
/GCS.h:12:17: error: GPS.h: No such file or directory
In file included from ArduPilotMega.cpp:32:
apm_mavlink_bridge.h:8: error: 'mavlink_system_t' does not name a type
apm_mavlink_bridge.h:10: error: expected constructor, destructor, or type conversion before '*' token
apm_mavlink_bridge.h:11: error: expected constructor, destructor, or type conversion before '*' token
apm_mavlink_bridge.h:13: error: variable or field 'comm_send_ch' declared void
apm_mavlink_bridge.h:13: error: 'mavlink_channel_t' was not declared in this scope
apm_mavlink_bridge.h:13: error: expected primary-expression before 'ch'
What am I doing wrong?
Thanks.
Replies
I am having a simular problem, did you get this resolved, if so, what was the fix?
I have been researching on this, it seems like several are having similar issues that look like include paths. The answers so far are RTFM and/or you don't have the libs installed in the right place. I am not sure what the answer is as I do believe I have read the manual and the directories are in the right place. But I will go start all over from scratch for the 4th time.
I am trying to build the ArduRover BTW.