Unable to Build ArduPilot (Aplane3.4.0) for APM2 on Windows with Make

697 views
Skip to first unread message

Ewing Kang

unread,
Oct 31, 2015, 12:27:21 AM10/31/15
to drones-discuss

Hello everyone.

I'm trying to build my ArduPlane 3.4.0 for APM2.5. And intended to modify some of the code. I was trying to fallow the instruction on the official site:

http://dev.ardupilot.com/wiki/building-ardupilot-for-apm2-x-on-windows-with-make/

The version I'm cloning is the ArduPlaen-release branch at https://github.com/diydrones

First of all, the

make configure

nolonger works. Thus I'm going on with

make apm2 ARDUINO="/c/px4/workspace/ArduPilot-Arduino-1.0.3-windows"

 However, this will give me the result of make error:

// BUILDROOT=/tmp/ArduPlane.build HAL_BOARD=HAL_BOARD_APM2 HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_AVR_APM2 TOOLCHAIN=AVR EXTRAFLAGS=-DGIT_VERSION="3aa9eb0c"
%% ArduPlane.o
/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/ArduPlane.o] Error 127 (ignored)
%% Attitude.o
/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/Attitude.o] Error 127 (ignored)
%% GCS_Mavlink.o
/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/GCS_Mavlink.o] Error 127 (ignored)
%% Log.o
/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/Log.o] Error 127 (ignored)
%% Parameters.o
/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/Parameters.o] Error 127 (ignored)
%% Plane.o
/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/Plane.o] Error 127 (ignored)
%% altitude.o

..........(omitted).........
/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/flash_stm32.o] Error 127 (ignored)
%% ArduPlane.elf
make: g: Command not found
make: [/tmp/ArduPlane.build/ArduPlane.elf] Error 127 (ignored)
cp: cannot stat `/tmp/ArduPlane.build/ArduPlane.elf': No such file or directory
make: *** [/tmp/ArduPlane.build/ArduPlane.elf] Error 1  

I've read at some not ardupilot page says that cygwin is needed? I thought the px4 toolchain already include the necessary file.
So am I missing something? Sry for this very amateur problem. Any suggection are appreciated.

BTW I don't think the Arduino IDE method still works since all the file are now in cpp style?

regards,
Ewing

Tom Pittenger

unread,
Oct 31, 2015, 1:19:55 AM10/31/15
to drones-discuss
Ewing,

I haven't tried building for APM 2.x but I know it's been depreciated. Seems the wiki needs some updating. There's a legacy branch which should still build for you. It is kept around for critical bug fixes but is otherwise dormant.

For APM 2.x you'll need the branch master-AVR and the tags from there.

If you're planning on doing any serious development, I suggest upgrading your hardware to the Pixhawk or a linux based board. We've long run out of RAM and program space on the AVRs and have been forced to play games to do any updates on it. It was holding back other development so we were forced to drop further support for it. No doubt you'll have to play those games too depending on how much your change the code.



--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ewing Kang

unread,
Oct 31, 2015, 3:06:29 AM10/31/15
to drones-discuss
Hi Tom,
Thanks for the quick reply! I know that we're shifting to Pixhawk. And indeed we have the hardware for that. I'm building some learning program for newbies to learn the ArduPilot system and the old APM hardware would be a cheaper solution in case of any damage :P.
Anyway, I'll try out the master-AVR now. Thank you very much.

Tom Pittenger於 2015年10月31日星期六 UTC+8下午1時19分55秒寫道:

Ewing Kang

unread,
Oct 31, 2015, 3:06:32 AM10/31/15
to drones-discuss
I've tried the ArduPilot master-AVR but still have no success :(. The errors are the same a lot of command not found and make error127 as shown below.
/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/something.o] Error 127 (ignored)
Maybe there are some stable version or compiling process that is still compatible with the APM board? It would be a little shame that our old APM hardware won't be usable anymore.
regards,
Ewing
 
Tom Pittenger於 2015年10月31日星期六 UTC+8下午1時19分55秒寫道:

Tom Pittenger

unread,
Oct 31, 2015, 3:45:37 AM10/31/15
to drones-discuss

Next suggestion would be to use master branch and jump to an older tag.

Lucas De Marchi

unread,
Oct 31, 2015, 7:13:56 AM10/31/15
to drones-discuss

It doesn't look like an error specific to the avr branch. Have you tried building for other target like pixhawk?

Lucas De Marchi

Craig Elder

unread,
Oct 31, 2015, 2:32:36 PM10/31/15
to drones-discuss
3.4.0 was the last supported build of plane for AVR.

Andrew Zaborowski

unread,
Oct 31, 2015, 6:40:34 PM10/31/15
to drones-...@googlegroups.com
On 31 October 2015 at 07:47, 'Ewing Kang' via drones-discuss
<drones-...@googlegroups.com> wrote:
> I've tried the ArduPilot master-AVR but still have no success :(. The errors
> are the same a lot of command not found and make error127 as shown below.
> /bin/sh: g: command not found

It sounds like for whatever reason it's trying "g" instead of "g++" on
Windows. make apm2 VERBOSE=1 would tell you a little more.

Cheers

Hamish Willee

unread,
Nov 1, 2015, 5:33:03 PM11/1/15
to drones-discuss
Yes, AFAIK APM builds don't work on master on any branch (including Rover!)

I tested the instructions against Copter 3.2.1 a few weeks ago and they worked fine. I did not test plane, and probably I should have (since presumably JBSIM stuff needs to be added :-( ). In my defence, APM isn't supported in the current stable version of Plane ... which makes this lower priority in terms of activities.

I am not certain Plane 3.4 build will work - Copter 3.2.1 is a much earlier build - still uses .pde files etc.

Ewing Kang

unread,
Nov 1, 2015, 11:06:23 PM11/1/15
to drones-discuss
Hello Andrew, I did what you've suggested, and here's the result. Sorry couldn't get the first few lines stay in the buffer thus I just screenshot it
and the and will be something like below:

make: [/tmp/ArduPlane.build/libraries/AP_HAL/utility/getopt_cpp.o] Error 127 (ignored)
%% libraries/AP_HAL/utility/print_vprintf.o
g -mmcu=atmega2560 -mcall-prologues  -DF_CPU=16000000L -DSKETCH=\"ArduPlane\" -DAPM_BUILD_DIRECTORY=APM_BUILD_ArduPlane -DGIT_VERSION="\"705d3d56\"" -DCONFIG_HAL_BOARD=HAL_BOARD_APM2 -Wa,-adhlns=/tmp/ArduPlane.build/libraries/AP_HAL/utility/print_vprintf.lst -Os -std=gnu++11 -Wformat -Wall -
make: [/tmp/ArduPlane.build/libraries/AP_HAL_AVR/utility/pins_arduino_mega.o] Error 127 (ignored)
%% libraries/AP_HAL_FLYMAPLE/utility/EEPROM.o
g -mmcu=atmega2560 -mcall-prologues  -DF_CPU=16000000L -DSKETCH=\"ArduPlane\" -DAPM_BUILD_DIRECTORY=APM_BUILD_ArduPlane -DGIT_VERSION="\"705d3d56\"" -DCONFIG_HAL_BOARD=HAL_BOARD_APM2 -Wa,-adhlns=/tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/EEPROM.lst -Os -std=gnu++11 -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wformat=2 -Wno-unused-parameter -Wno-missing-field-initializers -Wno-reorder -MD -MT /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/EEPROM.o -ffunction-sections -fdata-sections -fno-exceptions -fsigned-char -fno-use-cxa-atexit -c -o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/EEPROM.o /c/px4/workspace/ardupilot_master_AVR/libraries/AP_HAL_FLYMAPLE/utility/EEPROM.cpp -I/c/px4/workspace/ardupilot_master_AVR/libraries/AP_HAL_FLYMAPLE/utility//utility -I/c/px4/workspace/ardupilot_master_AVR/libraries/

/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/EEPROM.o] Error 127 (ignored)
%% libraries/AP_HAL_FLYMAPLE/utility/flash_stm32.o
g -mmcu=atmega2560 -mcall-prologues  -DF_CPU=16000000L -DSKETCH=\"ArduPlane\" -DAPM_BUILD_DIRECTORY=APM_BUILD_ArduPlane -DGIT_VERSION="\"705d3d56\"" -DCONFIG_HAL_BOARD=HAL_BOARD_APM2 -Wa,-adhlns=/tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/flash_stm32.lst -Os -std=gnu++11 -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wformat=2 -Wno-unused-parameter -Wno-missing-field-initializers -Wno-reorder -MD -MT /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/flash_stm32.o -ffunction-sections -fdata-sections -fno-exceptions -fsigned-char -fno-use-cxa-atexit -c -o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/flash_stm32.o /c/px4/workspace/ardupilot_master_AVR/libraries/AP_HAL_FLYMAPLE/utility/flash_stm32.cpp -I/c/px4/workspace/ardupilot_master_AVR/libraries/AP_HAL_FLYMAPLE/utility//utility -I/c/px4/workspace/ardupilot_master_AVR/libraries/

/bin/sh: g: command not found
make: [/tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/flash_stm32.o] Error 127 (ignored)
%% ArduPlane.elf
g -mmcu=atmega2560 -mcall-prologues  -Os -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wformat=2 -Wno-unused-parameter -Wno-missing-field-initializers -Wl,--gc-sections -Wl,-Map -Wl,/tmp/ArduPlane.build/ArduPlane.map -Wl,-m,avr6 -Wl,--relax -o /tmp/ArduPlane.build/ArduPlane.elf /tmp/ArduPlane.build/ArduPlane.o /tmp/ArduPlane.build/Attitude.o /tmp/ArduPlane.build/GCS_Mavlink.o /tmp/ArduPlane.build/Log.o /tmp/ArduPlane.build/Parameters.o /tmp/ArduPlane.build/Plane.o /tmp/ArduPlane.build/altitude.o /tmp/ArduPlane.build/arming_checks.o /tmp/ArduPlane.build/capabilities.o /tmp/ArduPlane.build/commands.o /tmp/ArduPlane.build/commands_logic.o /tmp/ArduPlane.build/commands_process.o /tmp/ArduPlane.build/control_modes.o /tmp/ArduPlane.build/events.o /tmp/ArduPlane.build/failsafe.o /tmp/ArduPlane.build/geofence.o /tmp/ArduPlane.build/landing.o /tmp/ArduPlane.build/navigation.o /tmp/ArduPlane.build/px4_mixer.o /tmp/ArduPlane.build/radio.o /tmp/ArduPlane.build/sensors.o /tm
p/ArduPlane.build/setup.o /tmp/ArduPlane.build/system.o /tmp/ArduPlane.build/takeoff.o /tmp/ArduPlane.build/test.o /tmp/ArduPlane.build/libraries/AP_HAL/UARTDriver.o /tmp/ArduPlane.build/libraries/AP_HAL/Util.o /tmp/ArduPlane.build/libraries/AP_Common/AP_Common.o /tmp/ArduPlane.build/libraries/AP_Common/c++.o /tmp/ArduPlane.build/libraries/AP_Progmem/AP_Progmem_AVR.o /tmp/ArduPlane.build/libraries/AP_Menu/AP_Menu.o /tmp/ArduPlane.build/libraries/AP_Param/AP_Param.o /tmp/ArduPlane.build/libraries/StorageManager/StorageManager.o /tmp/ArduPlane.build/libraries/AP_GPS/AP_GPS.o /tmp/ArduPlane.build/libraries/AP_GPS/AP_GPS_MTK.o /tmp/ArduPlane.build/libraries/AP_GPS/AP_GPS_MTK19.o /tmp/ArduPlane.build/libraries/AP_GPS/AP_GPS_NMEA.o /tmp/ArduPlane.build/libraries/AP_GPS/AP_GPS_PX4.o /tmp/ArduPlane.build/libraries/AP_GPS/AP_GPS_SBP.o /tmp/ArduPlane.build/libraries/AP_GPS/AP_GPS_SIRF.o /tmp/ArduPlane.build/libraries/AP_GPS/AP_GPS_UBLOX.o /tmp/ArduPlane.build/libraries/AP_GPS/GPS_Backend.o /tmp/
ArduPlane.build/libraries/AP_Baro/AP_Baro.o /tmp/ArduPlane.build/libraries/AP_Baro/AP_Baro_BMP085.o /tmp/ArduPlane.build/libraries/AP_Baro/AP_Baro_Backend.o /tmp/ArduPlane.build/libraries/AP_Baro/AP_Baro_HIL.o /tmp/ArduPlane.build/libraries/AP_Baro/AP_Baro_MS5611.o /tmp/ArduPlane.build/libraries/AP_Baro/AP_Baro_PX4.o /tmp/ArduPlane.build/libraries/AP_Compass/AP_Compass_AK8963.o /tmp/ArduPlane.build/libraries/AP_Compass/AP_Compass_Backend.o /tmp/ArduPlane.build/libraries/AP_Compass/AP_Compass_HIL.o /tmp/ArduPlane.build/libraries/AP_Compass/AP_Compass_HMC5843.o /tmp/ArduPlane.build/libraries/AP_Compass/AP_Compass_PX4.o /tmp/ArduPlane.build/libraries/AP_Compass/Compass.o /tmp/ArduPlane.build/libraries/AP_Compass/Compass_learn.o /tmp/ArduPlane.build/libraries/AP_Math/AP_Math.o /tmp/ArduPlane.build/libraries/AP_Math/edc.o /tmp/ArduPlane.build/libraries/AP_Math/location.o /tmp/ArduPlane.build/libraries/AP_Math/matrix3.o /tmp/ArduPlane.build/libraries/AP_Math/polygon.o /tmp/ArduPlane.build/li
braries/AP_Math/quaternion.o /tmp/ArduPlane.build/libraries/AP_Math/vector2.o /tmp/ArduPlane.build/libraries/AP_Math/vector3.o /tmp/ArduPlane.build/libraries/AP_ADC/AP_ADC.o /tmp/ArduPlane.build/libraries/AP_ADC/AP_ADC_ADS1115.o /tmp/ArduPlane.build/libraries/AP_ADC/AP_ADC_ADS7844.o /tmp/ArduPlane.build/libraries/AP_ADC_AnalogSource/AP_ADC_AnalogSource.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_Backend.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_Flymaple.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_HIL.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_L3G4200D.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_LSM9DS0.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_MPU6000.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_MPU9150.o /tmp/ArduPlane.build/libraries/AP_Ine
rtialSensor/AP_InertialSensor_MPU9250.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_PX4.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_UserInteract_MAVLink.o /tmp/ArduPlane.build/libraries/AP_InertialSensor/AP_InertialSensor_UserInteract_Stream.o /tmp/ArduPlane.build/libraries/AP_AHRS/AP_AHRS.o /tmp/ArduPlane.build/libraries/AP_AHRS/AP_AHRS_DCM.o /tmp/ArduPlane.build/libraries/AP_AHRS/AP_AHRS_NavEKF.o /tmp/ArduPlane.build/libraries/RC_Channel/RC_Channel.o /tmp/ArduPlane.build/libraries/RC_Channel/RC_Channel_aux.o /tmp/ArduPlane.build/libraries/AP_RangeFinder/AP_RangeFinder_BBB_PRU.o /tmp/ArduPlane.build/libraries/AP_RangeFinder/AP_RangeFinder_MaxsonarI2CXL.o /tmp/ArduPlane.build/libraries/AP_RangeFinder/AP_RangeFinder_PX4.o /tmp/ArduPlane.build/libraries/AP_RangeFinder/AP_RangeFinder_PX4_PWM.o /tmp/ArduPlane.build/libraries/AP_RangeFinder/AP_RangeFinder_PulsedLightLR
F.o /tmp/ArduPlane.build/libraries/AP_RangeFinder/AP_RangeFinder_analog.o /tmp/ArduPlane.build/libraries/AP_RangeFinder/RangeFinder.o /tmp/ArduPlane.build/libraries/AP_RangeFinder/RangeFinder_Backend.o /tmp/ArduPlane.build/libraries/Filter/DerivativeFilter.o /tmp/ArduPlane.build/libraries/Filter/LowPassFilter2p.o /tmp/ArduPlane.build/libraries/AP_Relay/AP_Relay.o /tmp/ArduPlane.build/libraries/AP_Camera/AP_Camera.o /tmp/ArduPlane.build/libraries/AP_Airspeed/AP_Airspeed.o /tmp/ArduPlane.build/libraries/AP_Airspeed/AP_Airspeed_I2C.o /tmp/ArduPlane.build/libraries/AP_Airspeed/AP_Airspeed_PX4.o /tmp/ArduPlane.build/libraries/AP_Airspeed/AP_Airspeed_analog.o /tmp/ArduPlane.build/libraries/AP_Airspeed/Airspeed_Calibration.o /tmp/ArduPlane.build/libraries/AP_Terrain/AP_Terrain.o /tmp/ArduPlane.build/libraries/AP_Terrain/TerrainGCS.o /tmp/ArduPlane.build/libraries/AP_Terrain/TerrainIO.o /tmp/ArduPlane.build/libraries/AP_Terrain/TerrainMission.o /tmp/ArduPlane.build/libraries/AP_Terrain/Terrain
Util.o /tmp/ArduPlane.build/libraries/APM_OBC/APM_OBC.o /tmp/ArduPlane.build/libraries/APM_Control/AP_AutoTune.o /tmp/ArduPlane.build/libraries/APM_Control/AP_PitchController.o /tmp/ArduPlane.build/libraries/APM_Control/AP_RollController.o /tmp/ArduPlane.build/libraries/APM_Control/AP_SteerController.o /tmp/ArduPlane.build/libraries/APM_Control/AP_YawController.o /tmp/ArduPlane.build/libraries/GCS_MAVLink/GCS_Common.o /tmp/ArduPlane.build/libraries/GCS_MAVLink/GCS_Logs.o /tmp/ArduPlane.build/libraries/GCS_MAVLink/GCS_MAVLink.o /tmp/ArduPlane.build/libraries/GCS_MAVLink/GCS_serial_control.o /tmp/ArduPlane.build/libraries/GCS_MAVLink/MAVLink_routing.o /tmp/ArduPlane.build/libraries/AP_SerialManager/AP_SerialManager.o /tmp/ArduPlane.build/libraries/AP_Mount/AP_Gimbal.o /tmp/ArduPlane.build/libraries/AP_Mount/AP_Mount.o /tmp/ArduPlane.build/libraries/AP_Mount/AP_Mount_Alexmos.o /tmp/ArduPlane.build/libraries/AP_Mount/AP_Mount_Backend.o /tmp/ArduPlane.build/libraries/AP_Mount/AP_Mount_MAVLi
nk.o /tmp/ArduPlane.build/libraries/AP_Mount/AP_Mount_SToRM32.o /tmp/ArduPlane.build/libraries/AP_Mount/AP_Mount_SToRM32_serial.o /tmp/ArduPlane.build/libraries/AP_Mount/AP_Mount_Servo.o /tmp/ArduPlane.build/libraries/AP_Declination/AP_Declination.o /tmp/ArduPlane.build/libraries/DataFlash/DataFlash.o /tmp/ArduPlane.build/libraries/DataFlash/DataFlash_APM1.o /tmp/ArduPlane.build/libraries/DataFlash/DataFlash_APM2.o /tmp/ArduPlane.build/libraries/DataFlash/DataFlash_Block.o /tmp/ArduPlane.build/libraries/DataFlash/DataFlash_Empty.o /tmp/ArduPlane.build/libraries/DataFlash/DataFlash_File.o /tmp/ArduPlane.build/libraries/DataFlash/DataFlash_SITL.o /tmp/ArduPlane.build/libraries/DataFlash/LogFile.o /tmp/ArduPlane.build/libraries/SITL/SIM_Aircraft.o /tmp/ArduPlane.build/libraries/SITL/SIM_Balloon.o /tmp/ArduPlane.build/libraries/SITL/SIM_CRRCSim.o /tmp/ArduPlane.build/libraries/SITL/SIM_Gazebo.o /tmp/ArduPlane.build/libraries/SITL/SIM_Gimbal.o /tmp/ArduPlane.build/libraries/SITL/SIM_Helicop
ter.o /tmp/ArduPlane.build/libraries/SITL/SIM_JSBSim.o /tmp/ArduPlane.build/libraries/SITL/SIM_Multicopter.o /tmp/ArduPlane.build/libraries/SITL/SIM_Rover.o /tmp/ArduPlane.build/libraries/SITL/SIM_Tracker.o /tmp/ArduPlane.build/libraries/SITL/SIM_last_letter.o /tmp/ArduPlane.build/libraries/SITL/SITL.o /tmp/ArduPlane.build/libraries/AP_Scheduler/AP_Scheduler.o /tmp/ArduPlane.build/libraries/AP_L1_Control/AP_L1_Control.o /tmp/ArduPlane.build/libraries/AP_RCMapper/AP_RCMapper.o /tmp/ArduPlane.build/libraries/AP_TECS/AP_TECS.o /tmp/ArduPlane.build/libraries/AP_NavEKF/AP_NavEKF.o /tmp/ArduPlane.build/libraries/AP_NavEKF/AP_SmallEKF.o /tmp/ArduPlane.build/libraries/AP_Mission/AP_Mission.o /tmp/ArduPlane.build/libraries/AP_Notify/AP_BoardLED.o /tmp/ArduPlane.build/libraries/AP_Notify/AP_Notify.o /tmp/ArduPlane.build/libraries/AP_Notify/Buzzer.o /tmp/ArduPlane.build/libraries/AP_Notify/ExternalLED.o /tmp/ArduPlane.build/libraries/AP_Notify/NavioLED.o /tmp/ArduPlane.build/libraries/AP_Notify/N
avioLED_I2C.o /tmp/ArduPlane.build/libraries/AP_Notify/OreoLED_PX4.o /tmp/ArduPlane.build/libraries/AP_Notify/RGBLed.o /tmp/ArduPlane.build/libraries/AP_Notify/ToneAlarm_Linux.o /tmp/ArduPlane.build/libraries/AP_Notify/ToneAlarm_PX4.o /tmp/ArduPlane.build/libraries/AP_Notify/ToshibaLED.o /tmp/ArduPlane.build/libraries/AP_Notify/ToshibaLED_I2C.o /tmp/ArduPlane.build/libraries/AP_Notify/ToshibaLED_PX4.o /tmp/ArduPlane.build/libraries/AP_Notify/VRBoard_LED.o /tmp/ArduPlane.build/libraries/AP_BattMonitor/AP_BattMonitor.o /tmp/ArduPlane.build/libraries/AP_BattMonitor/AP_BattMonitor_Analog.o /tmp/ArduPlane.build/libraries/AP_BattMonitor/AP_BattMonitor_Backend.o /tmp/ArduPlane.build/libraries/AP_BattMonitor/AP_BattMonitor_Bebop.o /tmp/ArduPlane.build/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_I2C.o /tmp/ArduPlane.build/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_PX4.o /tmp/ArduPlane.build/libraries/AP_Arming/AP_Arming.o /tmp/ArduPlane.build/libraries/AP_BoardConfig/AP_BoardConfig.o /tmp/
ArduPlane.build/libraries/AP_Frsky_Telem/AP_Frsky_Telem.o /tmp/ArduPlane.build/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.o /tmp/ArduPlane.build/libraries/AP_Rally/AP_Rally.o /tmp/ArduPlane.build/libraries/AP_OpticalFlow/AP_OpticalFlow_HIL.o /tmp/ArduPlane.build/libraries/AP_OpticalFlow/AP_OpticalFlow_Linux.o /tmp/ArduPlane.build/libraries/AP_OpticalFlow/AP_OpticalFlow_PX4.o /tmp/ArduPlane.build/libraries/AP_OpticalFlow/OpticalFlow.o /tmp/ArduPlane.build/libraries/AP_OpticalFlow/OpticalFlow_backend.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/AnalogIn_ADC.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/AnalogIn_Common.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/GPIO.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/HAL_AVR_APM1_Class.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/HAL_AVR_APM2_Class.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/I2CDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/RCInput_APM1.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/RCInput_APM2.o /tmp/ArduPlane.build/librar
ies/AP_HAL_AVR/RCOutput_APM1.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/RCOutput_APM2.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/SPIDeviceManager_APM1.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/SPIDeviceManager_APM2.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/SPIDevice_SPI0.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/SPIDevice_SPI2.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/SPIDevice_SPI3.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/Scheduler.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/Scheduler_Timer.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/Semaphores.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/Storage.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/UARTDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/memcheck.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/AnalogIn.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/HAL_SITL_Class.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/RCInput.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/RCOutput.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/SITL_Stat
e.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/SITL_cmdline.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/Scheduler.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/Storage.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/UARTDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/sitl_barometer.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/sitl_compass.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/sitl_gps.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/sitl_ins.o /tmp/ArduPlane.build/libraries/AP_HAL_SITL/sitl_optical_flow.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/AnalogIn.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/GPIO.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/HAL_PX4_Class.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/NSHShellStream.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/RCInput.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/RCOutput.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/Scheduler.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/Storage.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/UARTDriver.o
/tmp/ArduPlane.build/libraries/AP_HAL_PX4/Util.o /tmp/ArduPlane.build/libraries/AP_HAL_PX4/px4_param.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/AnalogIn.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/AnalogSource.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/GPIO.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/HAL_FLYMAPLE_Class.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/I2CDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/RCInput.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/RCOutput.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/SPIDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/Scheduler.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/Semaphores.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/Storage.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/UARTDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/AnalogIn.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/AnalogIn_Navio.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/ConsoleDevice.o /tmp/ArduP
lane.build/libraries/AP_HAL_Linux/GPIO.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/GPIO_BBB.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/GPIO_RPI.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/HAL_Linux_Class.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/I2CDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCInput.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCInput_AioPRU.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCInput_Navio.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCInput_PRU.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCInput_ZYNQ.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCOutput_AioPRU.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCOutput_Bebop.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCOutput_Navio.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCOutput_PRU.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/RCOutput_ZYNQ.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/SPIDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/SPIUARTDriver.o /tmp/ArduPlane.build
/libraries/AP_HAL_Linux/Scheduler.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/Semaphores.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/Storage.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/Storage_FRAM.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/TCPServerDevice.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/ToneAlarmDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/UARTDevice.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/UARTDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/UDPDevice.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/Util.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/dsm.o /tmp/ArduPlane.build/libraries/AP_HAL_Linux/sbus.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/AnalogIn.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/GPIO.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/HAL_Empty_Class.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/I2CDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/PrivateMember.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/RCInput.o /tmp/ArduP
lane.build/libraries/AP_HAL_Empty/RCOutput.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/SPIDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/Scheduler.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/Semaphores.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/Storage.o /tmp/ArduPlane.build/libraries/AP_HAL_Empty/UARTDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/AnalogIn.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/GPIO.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/HAL_VRBRAIN_Class.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/RCInput.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/RCOutput.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/Scheduler.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/Storage.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/UARTDriver.o /tmp/ArduPlane.build/libraries/AP_HAL_VRBRAIN/Util.o /tmp/ArduPlane.build/libraries/AP_HAL/utility/Print.o /tmp/ArduPlane.build/libraries/AP_HAL/utility/Socket.o /tmp/ArduPlane.build/libraries/AP_HAL/utility/ftoa_
engine.o /tmp/ArduPlane.build/libraries/AP_HAL/utility/getopt_cpp.o /tmp/ArduPlane.build/libraries/AP_HAL/utility/print_vprintf.o /tmp/ArduPlane.build/libraries/AP_HAL/utility/utoa_invert.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/utility/ISRRegistry.o /tmp/ArduPlane.build/libraries/AP_HAL_AVR/utility/pins_arduino_mega.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/EEPROM.o /tmp/ArduPlane.build/libraries/AP_HAL_FLYMAPLE/utility/flash_stm32.o -lm

make: g: Command not found
make: [/tmp/ArduPlane.build/ArduPlane.elf] Error 127 (ignored)
cp /tmp/ArduPlane.build/ArduPlane.elf ArduPlane.elf

cp: cannot stat `/tmp/ArduPlane.build/ArduPlane.elf': No such file or directory
make: *** [/tmp/ArduPlane.build/ArduPlane.elf] Error 1

maybe if that helps, thanks.
Ewing

Andrew Zaborowski於 2015年11月1日星期日 UTC+8上午6時40分34秒寫道:

Ewing Kang

unread,
Nov 2, 2015, 12:37:04 AM11/2/15
to drones-discuss
Hi Lucas,
I can complete the ArduPlane and ArduCopter compile for px4-v2 with the ArduPlane-release-AVR branch. With the output file ArduPlane-v2.px4 / ArduCopter-v2.px4.

Ewing

Lucas De Marchi於 2015年10月31日星期六 UTC+8下午7時13分56秒寫道:

Ewing Kang

unread,
Nov 2, 2015, 12:49:38 AM11/2/15
to drones-discuss
Hello Hamish,
I've clone the AC3.2.1 and give it a try. The ArduCopter works fine, but the ArduPlane will give the error of unmatching function call to library:

5909@5909-x550j-2 /c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane
$ make
// BUILDROOT=/tmp/ArduPlane.build HAL_BOARD=HAL_BOARD_APM2 HAL_BOARD_SUBTYPE= TOOLCHAIN=AVR EXTRAFLAGS=-DGIT_VERSION="03373d35"
building /tmp/ArduPlane.build/ArduPlane.cpp
%% ArduPlane.cpp
%% ArduPlane.o
In file included from c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/GCS_MAVLink/GCS_MAVLink.h:51,
                 from c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/AP_GPS/AP_GPS.h:26,
                 from /c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde:40:
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_types.h:36: warning: ignoring #pragma pack
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_types.h:119: warning: ignoring #pragma pack
In file included from c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/AP_GPS/AP_GPS.h:26,

                 from /c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde:40:
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/GCS_MAVLink/GCS_MAVLink.h:37: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
In file included from c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/AP_GPS/AP_GPS.h:26,
                 from /c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde:40:
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/GCS_MAVLink/GCS_MAVLink.h:148: warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde:227: error: no matching function for call to 'AP_InertialSensor_MPU6000::AP_InertialSensor_MPU6000()'
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/AP_InertialSensor/AP_InertialSensor_MPU6000.h:30: note: candidates are: AP_InertialSensor_MPU6000::AP_InertialSensor_MPU6000(AP_InertialSensor&)
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/AP_InertialSensor/AP_InertialSensor_MPU6000.h:28: note:                 AP_InertialSensor_MPU6000::AP_InertialSensor_MPU6000(const AP_InertialSensor_MPU6000&)
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde:250: error: no matching function for call to 'AP_AHRS_DCM::AP_AHRS_DCM(AP_InertialSensor_MPU6000&, AP_Baro_MS5611&, AP_GPS&)'
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/AP_AHRS/AP_AHRS_DCM.h:28: note: candidates are: AP_AHRS_DCM::AP_AHRS_DCM(AP_InertialSensor&, AP_Baro&, AP_GPS&)
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/AP_AHRS/AP_AHRS_DCM.h:25: note:                 AP_AHRS_DCM::AP_AHRS_DCM(const AP_AHRS_DCM&)
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde: In function 'void loop()':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde:822: error: 'class AP_InertialSensor_MPU6000' has no member named 'wait_for_sample'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde: In function 'void log_perf_info()':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/ArduPlane.pde:1032: warning: format not a string literal, argument types not checked
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/GCS_Mavlink.pde: In function 'void send_extended_status1(mavlink_channel_t)':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/GCS_Mavlink.pde:228: error: 'class AP_InertialSensor_MPU6000' has no member named 'healthy'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/GCS_Mavlink.pde: In member function 'bool GCS_MAVLINK::try_send_message(ap_message)':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/GCS_Mavlink.pde:571: error: no matching function for call to 'GCS_MAVLINK::send_raw_imu(AP_InertialSensor_MPU6000&, AP_Compass_HMC5843&)'

c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/GCS_MAVLink/GCS.h:196: note: candidates are: void GCS_MAVLINK::send_raw_imu(const AP_InertialSensor&, const Compass&)
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/GCS_Mavlink.pde:581: error: no matching function for call to 'GCS_MAVLINK::send_sensor_offsets(AP_InertialSensor_MPU6000&, AP_Compass_HMC5843&, AP_Baro_MS5611&)'
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/GCS_MAVLink/GCS.h:198: note: candidates are: void GCS_MAVLINK::send_sensor_offsets(const AP_InertialSensor&, const Compass&, AP_Baro&)
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/GCS_Mavlink.pde: In member function 'void GCS_MAVLINK::handleMessage(mavlink_message_t*)':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/GCS_Mavlink.pde:996: error: 'class AP_InertialSensor_MPU6000' has no member named 'calibrate_accel'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/Log.pde: In function 'void Log_Write_Performance()':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/Log.pde:225: error: 'class AP_InertialSensor_MPU6000' has no member named 'error_count'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/Log.pde: In function 'void Log_Write_Control_Tuning()':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/Log.pde:277: error: 'class AP_InertialSensor_MPU6000' has no member named 'get_accel'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/Log.pde: In function 'void Log_Write_IMU()':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/Log.pde:487: error: no matching function for call to 'DataFlash_APM2::Log_Write_IMU(AP_InertialSensor_MPU6000&)'
c:/px4/workspace/ardupilot_arducopter_3.2.1/libraries/DataFlash/DataFlash.h:60: note: candidates are: void DataFlash_Class::Log_Write_IMU(const AP_InertialSensor&)
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/commands_logic.pde: In function 'bool start_command(const AP_Mission::Mission_Command&)':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/commands_logic.pde:160: error: 'class AP_Mount' has no member named 'configure_cmd'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/commands_logic.pde:164: error: 'class AP_Mount' has no member named 'control_cmd'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/setup.pde: In function 'int8_t setup_accel_scale(uint8_t, const Menu::arg*)':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/setup.pde:303: error: 'class AP_InertialSensor_MPU6000' has no member named 'init'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/setup.pde:305: error: 'class AP_InertialSensor_MPU6000' has no member named 'calibrate_accel'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/setup.pde: In function 'void print_accel_offsets_and_scaling()':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/setup.pde:468: error: 'class AP_InertialSensor_MPU6000' has no member named 'get_accel_offsets'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/setup.pde:469: error: 'class AP_InertialSensor_MPU6000' has no member named 'get_accel_scale'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/setup.pde: In function 'void print_gyro_offsets()':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/setup.pde:482: error: 'class AP_InertialSensor_MPU6000' has no member named 'get_gyro_offsets'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/system.pde: In function 'void startup_INS_ground(bool)':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/system.pde:484: error: 'class AP_InertialSensor_MPU6000' has no member named 'init'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/system.pde:486: error: 'class AP_InertialSensor_MPU6000' has no member named 'init_accel'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/test.pde: In function 'int8_t test_ins(uint8_t, const Menu::arg*)':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/test.pde:421: error: 'class AP_InertialSensor_MPU6000' has no member named 'init'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/test.pde:449: error: 'class AP_InertialSensor_MPU6000' has no member named 'get_gyro'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/test.pde:450: error: 'class AP_InertialSensor_MPU6000' has no member named 'get_accel'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/test.pde: In function 'int8_t test_mag(uint8_t, const Menu::arg*)':
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/test.pde:485: error: 'class AP_InertialSensor_MPU6000' has no member named 'init'
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/altitude.pde: At global scope:
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/altitude.pde:446: warning: 'float lookahead_adjustment()' defined but not used
/c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane/system.pde:636: warning: 'void telemetry_send()' defined but not used
make: *** [/tmp/ArduPlane.build/ArduPlane.o] Error 1
5909@5909-x550j-2 /c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane$
 
Should I try to use the IDE directly?
regards,
Ewing

Hamish Willee於 2015年11月2日星期一 UTC+8上午6時33分03秒寫道:

Hamish Willee

unread,
Nov 2, 2015, 5:20:30 AM11/2/15
to drones-discuss
Hi Ewing

I don't know, I haven't tried this yet. I put it on my list to look at later - hopefully later in the week https://github.com/diydrones/ardupilot-wiki-issue-tracker/issues/199

Regards
Hamish 


On Monday, 2 November 2015 16:49:38 UTC+11, Ewing Kang wrote:
Hello Hamish,
I've clone the AC3.2.1 and give it a try. The ArduCopter works fine, but the ArduPlane will give the error of unmatching function call to library:

59...@5909-x550j-2 /c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane
59...@5909-x550j-2 /c/px4/workspace/ardupilot_arducopter_3.2.1/ArduPlane$

Ewing Kang

unread,
Nov 3, 2015, 10:30:21 AM11/3/15
to drones-discuss
Thanks Hamish.
Me myself haven't been compiling for APM for a long time too. I'm also using the newer px4 and pixhawk hardware which can compile without problem. It is not until lately, we have some demend for the teaching material and I was trying to reuse our old APM hardware for newbies (to destroy), that I found myself couldn't get the compile done.
Thank you very much, anyway!
Ewing
Cheers

Hamish Willee於 2015年11月2日星期一 UTC+8下午6時20分30秒寫道:

Andrew Zaborowski

unread,
Nov 3, 2015, 5:22:04 PM11/3/15
to drones-...@googlegroups.com
FWIW I've built ArduCopter for APM2 a few weeks ago without much
problem (minor fixes were needed), this was after the switch to .cpp
files, on Linux.

(The problem with it of course was the binary size, it was about
520kB. Half of that, about 260kB was contained in two EKF functions:
CovariancePrediction and FuseMagnetometer, so I estimate with DCM it
may still fit on the board. I have patches for a little earlier
version to bring back DCM that I actually fly with, but that minimizes
the benefits of running a recent version because a lot of the
interesting stuff is in EKF)

Cheers
Reply all
Reply to author
Forward
0 new messages