Compile AC using Eclipse LUNA & Cygwin

Hi, 

I am having difficulty compiling ArduCopter 3.2 using eclipse. 

Compiles using, cygwin in the SITL target but does not compile in apm2 target.

With eclipse, I am having trouble giving it the arduino path. 

Setting path variables in eclipse:

SKETCHBOOK "D:\CWD_D\Share\ardupilot"

ARDUINO "D:\CWD_D\Arduino"

-----------------------------------------------------------

grep: d:CWD_DArduPilot-Arduino/hardware/arduino/boards.txt: No such file or directory
/cygdrive/c/Program Files (x86)/MHV AVR Tools/bin/cut.exe: error while loading shared libraries: msys-intl-8.dll: cannot open shared object file: No such file or directory
../mk/board_avr.mk:118: *** ERROR: Could not locate board mega2560 in d:\CWD_D\ArduPilot-Arduino/hardware/arduino/boards.txt. Stop.

-----------------------------------------------------------

With "/cygdrive/d/CWD_D/Arduino" I still get an error

board_avr.mk:72: *** ERROR: hardware directory for arduino not found

When compiling with cygwin, apm2 target. I get this error:

-----------------------------------------------------------

$ make apm2

/bin/sh: git: command not found
// BUILDROOT=/tmp/ArduCopter.build HAL_BOARD=HAL_BOARD_APM2 HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_AVR_APM2 TOOLCHAIN=AVR EXTRAFLAGS=-DGIT_VERSION=""
building /tmp/ArduCopter.build/ArduCopter.cpp
%% ArduCopter.cpp
%% ArduCopter.o
avr-g++.exe: error: /tmp/ArduCopter.build/ArduCopter.cpp: No such file or directory
avr-g++.exe: fatal error: no input files
compilation terminated.
D:/CWD_D/Share/ardupilot/mk/board_avr.mk:194: recipe for target '/tmp/ArduCopter.build/ArduCopter.o' failed
make: *** [/tmp/ArduCopter.build/ArduCopter.o] Error 1

-----------------------------------------------------------

but an ArduCopeter.cpp exists at tmp/

Pls let me know how to give the path for arduino..

Thanks

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

Join diydrones

Email me when people reply –

Replies

  • I got the SITL working with Eclipse LUNA

    It seems that the "make" was running inside windows not cygwin.. [ by adding a "make -v" to the default make command]

    Fix:

    1. Add "Cygwin gcc" to the tool chain / rather than "none" as shown in wiki [http://dev.ardupilot.com/wiki/ez-using-eclipse-for-ardupilot-develo...]

    this will add a PATH variable in the BUILD section of project properties in Eclipse LUNA, -> trick is to remove all contents of PATH other then cygwin.

    2. Target name is now "sitl" not "SIL" as given in the wiki. [?]

    ---------------

    Still not got 'apm2' target to compile

This reply was deleted.

Activity