Julien-laville / arducam-osd

Automatically exported from code.google.com/p/arducam-osd
0 stars 0 forks source link

Errors when building arducam-osd on Linux #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,

I'm trying to do a build of arducam-osd on Ubuntu 12.10 using the Arduino IDE 
(1.0.1) and I'm getting a lot of the following type of error:

In file included from 
/opt/arducam-osd-read-only/libraries/FastSerial/BetterStream.h:16:0,
                 from /opt/arducam-osd-read-only/libraries/FastSerial/FastSerial.h:56,
                 from ArduCAM_OSD.cpp:56:
/opt/arducam-osd-read-only/libraries/FastSerial/../AP_Common/AP_Common.h: In 
function ‘int strcasecmp_P(const char*, const prog_char_t*)’:
/opt/arducam-osd-read-only/libraries/FastSerial/../AP_Common/AP_Common.h:108:38:
 error: ISO C++ forbids declaration of ‘type name’ with no type 
[-fpermissive]
/opt/arducam-osd-read-only/libraries/FastSerial/../AP_Common/AP_Common.h:108:38:
 error: ISO C++ forbids declaration of ‘type name’ with no type 
[-fpermissive]
/opt/arducam-osd-read-only/libraries/FastSerial/../AP_Common/AP_Common.h:108:32:
 error: expected primary-expression before ‘const’
/opt/arducam-osd-read-only/libraries/FastSerial/../AP_Common/AP_Common.h:108:32:
 error: expected ‘)’ before ‘const’

I'm guessing I need to pass an extra flag (-fpermissve?) to the compiler but I 
don't know how to do that with the IDE. Any ideas?

Also, is the Arduino IDE what arducam-osd developers are using?

Cheers, Andrew.

Original issue reported on code.google.com by andrewjg...@gmail.com on 17 Feb 2013 at 4:56