jaspreeth / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Libraries r1066 prevents compilation #250

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Check out trunk r1784 or r1792
2. Check out libraries r1066
3. Create APM_Config.h with either #include "APM_Config_xplane.h" or #include 
"APM_Config_mavlink_hil.h"
4. Attempt to compile

What is the expected output? What do you see instead?
I expect a compilation without errors.  Instead, I get the following two 
compile errors:
mavlink_msg_debug_vect.h: No such file or directory
mavlink_msg_gps_local_origin_set.h: No such file or directory

Here is a list of the compilation outcomes observed with different libraries, 
trunk and config combinations:
r1792, r1066, xplane.h: error
r1792, r1066, mavlink.h: error
r1784, r1066, xplane.h: error
r1784, r1066, mavlink.h: error
r1792, r1059, xplane.h: ok
r1792, r1059, mavlink.h: ok
r1784, r1059, xplane.h: different error (resolved in r1792)
r1784, r1059, mavlink.h: ok

Original issue reported on code.google.com by bjpcalt...@gmail.com on 8 Dec 2010 at 6:35

GoogleCodeExporter commented 8 years ago
r1066 was a mavlink update to add some new messages. I've updated to the latest 
svn of the libraries and compiled with both sets of flags and I can't reproduce 
this bug.

Original comment by james.goppert@gmail.com on 8 Dec 2010 at 12:36

GoogleCodeExporter commented 8 years ago
This was a valid issue which was fixed by libraries r1090.

The root cause was the addition of these two lines in 
libraries/GCS_MAVLink/include/common/common.h in r1066:
#include "./mavlink_msg_debug_vect.h"
#include "./mavlink_msg_gps_local_origin_set.h"

The actual location of mavlink_msg_debug_vect.h is ../pixhawk rather than ./ 
and mavlink_msg_gps_local_origin_set.h does not yet exist in the repository.

Original comment by bjpcalt...@gmail.com on 8 Dec 2010 at 9:03