Folks,

I could really use some help.

I want to build a version of 2.9.1b that has the external mag enabled, so I need to build the code on my Mac.  I've been pounding my head against the wall for quite a while trying to figure out how to get the Mac Arduino IDE to compile Arducopter 2.9.1b for me.

I downloaded the 2.9.1b source and library files from github.com

I downloaded the modified Arduino for Mac from DIY Drones.

I set the sketchbook location to:  /Users/billsanford/Documents/Arduino/ArduCopter

I set the hal board to "ArduPilot Mega 2.x"

I set the board type to "Arduino Mega 2560"

I tried putting the "libraries" directory in both the "Arduino" and "ArduCopter" directories in the above path.

I quit and relaunched MANY times and followed all the instruction on the DIY Drones web site and the "Read Me" file.

When I do a "Verify" in the Arduino IDE, I keep getting a bunch of compile errors.  Below are a few lines of the MANY errors I'm getting.

Building for ArduPilot Mega 2.x
Excluding arduino core from include paths
In file included from ArduCopter.pde:73:
/Applications/Arduino App/Arduino.app/Contents/Resources/Java/libraries/SPI/SPI.h:38: error: 'byte' does not name a type
/Applications/Arduino App/Arduino.app/Contents/Resources/Java/libraries/SPI/SPI.h:55: error: 'byte' does not name a type
In file included from ArduCopter.pde:124:
Parameters.h:241: error: 'AP_Int16' does not name a type
Parameters.h:242: error: 'AP_Int8' does not name a type
Parameters.h:246: error: 'AP_Int16' does not name a type
Parameters.h:247: error: 'AP_Int16' does not name a type
Parameters.h:248: error: 'AP_Int8' does not name a type
Parameters.h:249: error: 'AP_Int8' does not name a type
Parameters.h:251: error: 'AP_Int16' does not name a type
Parameters.h:252: error: 'AP_Int8' does not name a type
Parameters.h:253: error: 'AP_Int8' does not name a type
Parameters.h:256: error: 'AP_Int8' does not name a type
Parameters.h:258: error: 'AP_Float' does not name a type
Parameters.h:259: error: 'AP_Float' does not name a type
Parameters.h:260: error: 'AP_Float' does not name a type
Parameters.h:261: error: 'AP_Int16' does not name a type

I'm stumped...  Obviously I've got something set up wrong.  Does anyone have any suggestions for me? 

Thanks in advance.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hey guys I am getting the same thing. Did anyone else figure this out?

  • I'm having the same problem. So many errors and im using APM 1.4. Other issues is when i change the board to ATmega1280 it automatically changes the board to APM 2 board when i restart it the program. Need help please

  • Anyone???

  • The path to your directory is not set properly in Prefs

    You need to set up the path in Prefs then quit the app and run it up again

    Took a bit of fiddling the first time I tried but works ok once you find out how the directory change is not that dynamic

This reply was deleted.

Activity