Trouble compiling APWeb

Hi,
I am trying to compile APWeb on Ubuntu 16.04 and having a lot of trouble.

  1. After cloning the repository, I try to compile using make (I am assuming this is the correct way to do this.) but making the unchanged code gives the following error:


    I removed the -Werror cflag in the makefile and compilation continues past the first error but gives another one.

  2. The second error is a bunch of undefined references to functions in the math library, solved by adding the -lm flag to the libraries section of the makefile.

  3. The last error is as follows:


    The function definition for mavlink_get_message_info_by_name is in the modules/mavlink/pymavlink/generator/C/include_v2.0/mavlink_get_info.h file, but if I include this file then I get a bunch more errors about duplicate function definitions:

    If I comment out the duplicate function definition for mavlink_get_message_info then I am still left with the error about MAVLINK_MESSAGE_NAMES, and I can’t find a way to fix this.

Please help!

I am trying to compile APWeb on Ubuntu 16.04 and having a lot of trouble.

After cloning the repository, I try to compile using make (I am assuming
this is the correct way to do this.) but making the unchanged code gives
the following error:

[174865be8054bdf5c00e15f868e905f4cda06e6f_1_689x75.png]

I removed the -Werror cflag in the makefile and compilation continues past
the first error but gives another one.
2.

The second error is a bunch of undefined references to functions in the
math library, solved by adding the -lm flag to the libraries section of
the makefile.
The last error is as follows:

[174865be8054bdf5c00e15f868e905f4cda06e6f_1_689x75.png]

The function definition for mavlink_get_message_info_by_name is in the
modules/mavlink/pymavlink/generator/C/include_v2.0/mavlink_get_info.h file,
but if I include this file then I get a bunch more errors about duplicate
function definitions:
[0b5c33af41dca786d2b33fccc94361890bf4191f_1_690x185.png]

This one can be solved by updating your pymalvink version.

https://github.com/peterbarker/APWeb/tree/apsync <- my tree of APWeb for
APSync

https://github.com/peterbarker/companion/blob/master/RPI2/Raspbian/1_create_base_image.txt#L77
<- how APWeb is installed on APSync for RPI