BrzTit / megapirateng

Automatically exported from code.google.com/p/megapirateng
0 stars 0 forks source link

mpNG 2.9 rev 173 -could not build using Arduino 1.03 #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

   Try to build using Arduino 1.03

What is the expected output? 

   Full build

What do you see instead?

ArduCopter:266: error: cannot declare variable 'compass' to be of abstract type 
'AP_Compass_HMC5843_Pirates'
E:\PKU\model\soft\src\mpNG2.9.173\libraries\AP_Compass/AP_Compass_HMC5843_Pirate
s.h:49: note:   because the following virtual functions are pure within 
'AP_Compass_HMC5843_Pirates':
E:\PKU\model\soft\src\mpNG2.9.173\libraries\AP_Compass/Compass.h:43: note: 
    virtual void Compass::accumulate()

What version of the MegaPirateNG are you using?

rev 173

Please provide any additional information below.

Class AP_Compass_HMC5843_Pirates needs to be defined fully so it will not be a 
pure virtual class.

It could be my paths are set so Arduino is calling another avr-gcc compiler but 
as for now it seems it's calling included with A1.03.
True question is if others are able to build rev.173 ???

Original issue reported on code.google.com by pa...@kulma.pl on 22 Jan 2013 at 10:01

GoogleCodeExporter commented 8 years ago
Looks like you are talking about r273.
Yes, I'm using Arduino 1.0.3

Check the libraries folder selected in the Arduino IDE in the preferences. 
Looks like you are use old libraries.

Original comment by Alexey.K...@gmail.com on 22 Jan 2013 at 10:06

GoogleCodeExporter commented 8 years ago
Sorry :)
Revision: 273
Author: Alexey.Kharlanov@gmail.com
Date: 22 stycznia 2013 00:40:18
Message:
set AHRS_GPS_GAIN to 0
----
Modified : /trunk/ArduCopter/Parameters.pde

But I am synchronized with 273, just copying folders out of SVN tree and trying 
to build .....

You mean mpNG libs or Arduino cores????

Will try to delete temp folders ....

I hate Arduino IDE, you know :)

BTW my boards came today so will be able to work more.
I'm, going to use one for copter and another for plane .. 

But first have to build 273 .... have you tested makefile ?? As I remember I 
have the same error on CLI build as well, and it was not a problem with libs as 
it was done outside Arduino ....

Deleted temp, no chages ....

here is command issued by Arduino ... looks good for me:

C:\cygwin\arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall 
-fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 
-DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=103 
-IC:\cygwin\arduino\hardware\arduino\cores\arduino 
-IC:\cygwin\arduino\hardware\arduino\variants\mega 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\FastSerial 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Common 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Menu 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\Arduino_Mega_ISR_Registry 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\APM_RC 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_GPS 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\I2C 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_AnalogSource 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Baro 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Compass 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Math 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_InertialSensor 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_PeriodicProcess 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_AHRS 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\APM_PI 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AC_PID 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\RC_Channel 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Motors 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_RangeFinder 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\Filter 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Buffer 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_LeadFilter 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Relay 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Camera 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Mount 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Airspeed 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_InertialNav 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\DigitalWriteFast 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\memcheck 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\GCS_MAVLink 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\SPI 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\DataFlash 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Declination 
-IE:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Limits 
C:\Users\paku\AppData\Local\Temp\build4028781181214911667.tmp\ArduCopter.cpp -o 
C:\Users\paku\AppData\Local\Temp\build4028781181214911667.tmp\ArduCopter.cpp.o 

still have:

E:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Compass/AP_Compass_HMC5843_Pirate
s.h:49: note:   because the following virtual functions are pure within 
'AP_Compass_HMC5843_Pirates':
E:\PKU\model\soft\src\mpNG2.9.273\libraries\AP_Compass/Compass.h:43: note:  

virtual void Compass::accumulate()

Original comment by pa...@kulma.pl on 22 Jan 2013 at 11:56

GoogleCodeExporter commented 8 years ago
Solved ... and it's really funny .....

I was at rev 273 but ... somewhere in the other branch.

BTW makefile should work on this what I have now.  Will check tomorrow as it's 
quite late now ...

paku

Original comment by pa...@kulma.pl on 23 Jan 2013 at 1:22

GoogleCodeExporter commented 8 years ago

Original comment by Alexey.K...@gmail.com on 12 Feb 2013 at 7:19