Open GoogleCodeExporter opened 8 years ago
http://code.google.com/p/ardupilot-mega/wiki/BuildingWithMake claims that you
can use the ARDUINO environment variable "Overrides the automatic detection of
the Arduino install location and forces the build system to consider this path
the root of the Arduino installation".
My patch fixes this, so that you can set ARDUINO on linux.
Original comment by jjwiseman@gmail.com
on 22 Oct 2012 at 4:46
BTW, this is the complete patch:
--- a/libraries/AP_Common/Arduino.mk
+++ b/libraries/AP_Common/Arduino.mk
@@ -194,8 +194,8 @@ ifeq ($(SYSTYPE),Darwin)
AWK = awk
endif
ifeq ($(SYSTYPE),Linux)
- # expect that tools are on the path
- TOOLPATH := $(subst :, ,$(PATH))
+ # use the tools that come with Arduino
+ TOOLPATH := $(ARDUINO)/hardware/tools/avr/bin
endif
ifeq ($(findstring CYGWIN, $(SYSTYPE)),CYGWIN)
TOOLPATH := $(ARDUINO)/hardware/tools/avr/bin
@@ -216,7 +216,7 @@ AVRDUDE := $(call FIND_TOOL,avrdude)
AVARICE := $(call FIND_TOOL,avarice)
OBJCOPY := $(call FIND_TOOL,avr-objcopy)
ifeq ($(CXX),)
-$(error ERROR: cannot find the compiler tools anywhere on the path $(TOOLPATH))
+$(error ERROR: cannot find the Arduino compiler tools, please set
ARDUINO=<path to arduino installation>)
endif
# Find awk
Original comment by jjwiseman@gmail.com
on 22 Oct 2012 at 4:48
Original issue reported on code.google.com by
jjwiseman@gmail.com
on 28 Jun 2012 at 5:29