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 compile arduplane in visualmicro (Read 3728 times)
Madhan
Newbies
*
Offline


Posts: 1
Joined: Jun 11th, 2012
compile arduplane in visualmicro
Jun 11th, 2012 at 12:42pm
Print Post  
getting the following error when compiling arduplane in visual micro...

version is 2.40 b.

I think its the problem with the library files not being integrated into the project.but i don't know where to put the library files in visual micro...

Compiling 'ArduPlane' for 'Arduino Mega 2560 or Mega ADK'
ArduPlane.pde : In function 'void init_home()'
commands_logic.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void handle_process_nav_cmd()'
commands_logic.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void handle_process_condition_command()'
commands_logic.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void handle_process_do_command()'
commands_logic.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void handle_no_commands()'
commands_logic.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'bool verify_nav_wp()'
commands_process.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void do_jump()'
commands_process.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void change_command(uint8_t)'
events.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void process_next_command()'
events.pde : 'gcs_send_text_fmt' was not declared in this scope
failsafe.pde : 'gcs_send_text_fmt' was not declared in this scope
failsafe.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void failsafe_short_on_event(int)'
GCS_Mavlink.pde : 'gcs_send_text_fmt' was not declared in this scope
ArduPlane.pde : In function 'void failsafe_long_on_event(int)'
GCS_Mavlink.pde : 'gcs_send_text_fmt' was not declared in this scope
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compile arduplane in visualmicro
Reply #1 - Jun 19th, 2012 at 1:26pm
Print Post  
UPDATE: I hope you don't mind but I have removed the previous discussions in this thread because they confuse the problem (my fault).

I now have a fresh working install of ArduPilot so have been able to test and resolve this issue.

There is a bug in the visual micro compiler that fails to declare the prototype for one of the ArduPilot functions. A prototype is a function signature. The compiler extracts all functions from all of the .pde files and adds them as prototypes but failed to find one for the gcs_send_text_fmt function.

In the current version of vm this issue can be resolved simply by adding the following source just prior to the "//  Serial Ports" comment (as shown below)

[code]static void gcs_send_text_fmt(const prog_char_t *fmt, ...);


// Serial ports
[/code]

Sorry for all the messing about. I am surprised that noone else has reported this problem.

After all of the messing about (sorry again) we need to ensure that your vm is working. Please make sure the checkboxes are checked for the Vm addin in "Tools>Addin Manager".

Best of luck, now that I have a clean ArduPilot install I hope to be able to guide you more easily!

Thanks for all your wasted efforts!!

[b]PS: The good news is that VM compiles Ardupilot in under 7 seconds, the Arduino 1.0.1 ide compiles in 27 seconds. So I hope you find it is worth the effort.

If you prefer to continue to use the "External Editor" checkbox in Arduino so that you edit in VS and compile in Arduino then this is okay[/b]
« Last Edit: Jun 19th, 2012 at 1:36pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compile arduplane in visualmicro
Reply #2 - Jul 3rd, 2012 at 3:42pm
Print Post  
This is fixed in the 1.1206.30 beta in the downloads list of codeplex. Please let me know if you find any problems with the build
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint