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 Re: Error Compiling (Read 5419 times)
Val
Newbies
*
Offline


Posts: 3
Joined: Jan 14th, 2015
Re: Error Compiling
Jan 14th, 2015 at 11:46pm
Print Post  
Running AtmelStudio v6.2.1153 and Arduino v1.5.8 with a pretty simple sketch that compiles just fine under Arduion, but I get the following when I try to build it under AtmelStudio:

"Compiling 'UltraSonicSensorTest' for 'Arduino Uno'
Error compiling"

- Not really too descriptive.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling
Reply #1 - Jan 15th, 2015 at 11:32am
Print Post  
Hi Val,

The solution is described above but you can also download the latest BETA from our download page on visualmicro.com.

The cause is that the toolchain in 1.5.8 does not auto discover files that it requires which are installed into the arduino ide folder when you install the arduino ide. The files are cygwin files.

The atmel gallery version of visual micro resolves this for most users but if you have installed any software (such as winavr) that includes cygwin that has also added its location to your windows path then arduino 1.5.8 still becomes confused. 

The latest beta simply ensures that the arduino ide folder has priority over all other path definitions (only applies when the toolchain is running does not globally affect your pc config)

The beta is SP4 of the version you are running so it is quite mature.

Thanks
  
Back to top
IP Logged
 
Val
Newbies
*
Offline


Posts: 3
Joined: Jan 14th, 2015
Re: Error Compiling
Reply #2 - Jan 15th, 2015 at 6:20pm
Print Post  
Tim, I appreciate your prompt feedback.  After downloading and installing the Beta I still experience the exact same results (as previously described).  Any other ideas?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling
Reply #3 - Jan 15th, 2015 at 6:23pm
Print Post  
Oh, maybe it wasn't the issue that I suspected.

Please switch on tools>visual micro>verbose messages and then click build>clean, then build and email the output to info[at]visualmicro.com

That should save me asking a load of questions.

Thanks

as a precaution to avoid wasting your time I also suggest you manually add the location of the arduino ide folder to the start of the "path" environment variable via control panel. Does that make sense or should I explain more?
  
Back to top
IP Logged
 
Val
Newbies
*
Offline


Posts: 3
Joined: Jan 14th, 2015
Re: Error Compiling
Reply #4 - Jan 18th, 2015 at 5:16pm
Print Post  
Looks like adding the location of the arduino ide folder to the start of the "path" environment variable did the trick - it seems to work just fine now...    Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint