www2000 / ardu-imu

Automatically exported from code.google.com/p/ardu-imu
0 stars 0 forks source link

Make is broken #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ArduIMU build on Linux x64 with Arduino 1.0.3 fails with the following errors: 
http://pastebin.com/yhzRQTe7

As you can see, some of the IO ports were not declared.

The root cause is wrong Core Includes directory: it must be 
"$(HARDWARE_DIR)/variants/standard" instead of "$(HARDWARE_DIR)/variants/mega". 
The offending line is located at "libraries/AP_Common/Arduino.mk", line 378.

It should be replaced with:
COREINCLUDES = -I$(CORESRC_DIR) -I$(HARDWARE_DIR)/variants/standard

However, to keep this script compatible with ArduPilot, I'd suggest to add 
optional variable:
ARDUINO_VARIANT ?= mega
COREINCLUDES = -I$(CORESRC_DIR) -I$(HARDWARE_DIR)/variants/$(ARDUINO_VARIANT)

And override it in config.mk:
ARDUINO_VARIANT=standard

Hope this helps.

Original issue reported on code.google.com by pavel.ki...@gmail.com on 25 Jan 2013 at 12:16