Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Compiling ArduCopter (Read 6252 times)
Francisc Bereczky
Newbies
*
Offline


Posts: 2
Location: Timisoara, Romania
Joined: Sep 13th, 2012
Compiling ArduCopter
Sep 13th, 2012 at 12:20pm
Print Post  
I had successfull compile of ArduCopter 2.5.5 with VS 2010 (Visual Micro installed)
Compiling 'ArduCopter' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 157236 bytes (of a 258048 byte maximum) (67.609375 secs)
Today I tried to biuld ArduCopter 2.7.3 but have a lot of errors like:
Compiling 'ArduCopter' for 'Arduino Mega 2560 or Mega ADK'
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
GCS_Mavlink.pde : macro "AP_GROUPINFO" passed 5 arguments, but takes just 4
ArduCopter.pde : In file included from
Parameters.h : 'AP_Camera' does not name a type
Parameters.h : Parameters()'
Parameters.h : RC_Channel(int)'
RC_Channel.h : RC_Channel()
..............
and a lot more...
Any ideas?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiling ArduCopter
Reply #1 - Sep 13th, 2012 at 12:26pm
Print Post  
I think this is the internal compiler optimizer getting confused with two sketch projects of the same name. Some work is due in this area but you should be able to fix the problem with any of these tasks

Click "Build>Clean Solution" 

or

Delete folder "C:\Users\[yourname]\AppData\Local\VMicro\Arduino\Builds\ArduCopter"

or

Switch off "Tools>Options>Visual Micro>Compiler Library Optimisation"

Try to avoid the last one because it will slow the compile down. I think it will only be required if you continually switch between arducopter versions.

More..

An alternative is to rename the arducopter folder to "arducopter_2_7_3" and the arducopter.ino to "arducopter_2_7_3.ino". 

It doesn't matter what the arducopter program is called, there isn't any code that depends on it. If you do the rename then delete the visual studio files such as .vcproj and .sln, .suo etc. in the arducopter folder. 

The delete will cause vs to re-create the project when the sketch is next opened.
« Last Edit: Sep 13th, 2012 at 12:45pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Francisc Bereczky
Newbies
*
Offline


Posts: 2
Location: Timisoara, Romania
Joined: Sep 13th, 2012
Re: Compiling ArduCopter
Reply #2 - Sep 13th, 2012 at 1:09pm
Print Post  
I set manually the right folder in Arduino-Preferences-Sketchbook Location.
Now it works well.
Compiling 'ArduCopter' for 'Arduino Mega 2560 or Mega ADK'
Binary sketch size: 190264 bytes (of a 258048 byte maximum) (98.625 secs)

Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiling ArduCopter
Reply #3 - Sep 13th, 2012 at 1:30pm
Print Post  
Oh I see, thanks for the update. 

I didn't realize that it might be a basic arducopter setup problem. I had assumed that it was compiling okay in the Arduino IDE.

Maybe you can add a reminder for others in the diydrones post?

Thanks again
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint