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 Error Compiling Atmel Studio 6.2 + Visula Micro 1.1407.10 + Arduino 1.5.7 (Read 4437 times)
salwq88
Newbies
*
Offline


Posts: 2
Joined: Sep 9th, 2014
Error Compiling Atmel Studio 6.2 + Visula Micro 1.1407.10 + Arduino 1.5.7
Sep 9th, 2014 at 3:01pm
Print Post  
I have problem with compilation. Many time I reinstall all programs (Arduino, Atmel Studio 6 + Visual Micro). 

Code
Select All
Compiling 'isgood' for 'Arduino Mega w/ ATmega1280'
Build folder: 280
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\arduino/hardware/tools/avr/bin/
GCC: 4.8.1
Sketchbook: file:///C:/Users/slawq88/Documents/Arduino
Core Include Paths
Include Path 'C:\arduino\hardware\arduino\avr\cores\arduino'
Include Path 'C:\arduino\hardware\arduino\avr\variants\mega'
"C:\arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=157 -DARDUINO_AVR_MEGA -DARDUINO_ARCH_AVR -I"C:\arduino\hardware\arduino\avr\cores\arduino" -I"C:\arduino\hardware\arduino\avr\variants\mega" ood.cpp" -o ood.cpp.o" -DVISUALMICRO_COMPILER_VER=1
Error compiling
 



Full logs in attachmen.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling Atmel Studio 6.2 + Visula Micro 1.1407.10 + Arduino 1.5.7
Reply #1 - Sep 9th, 2014 at 3:21pm
Print Post  
Hi,

Thanks for the post and sorry you are having this issue.

For Arduino 1.5.7 we found that the core can not auto-discover the cygwin program that the g++ compiler uses. (The ide installs with the cygwin in the exe folder) 

We made a change to the last Visual Micro releases (which you are using) to cater for this by ensuring the path to the arduino exe folder was set as a PATH variable when running the compiler. This worked for most users.

Another user has subsequently reported that he has other software installed that uses a different version of cygwin and that version is in the global pc environment variables PATH which overrides Visual Micro. As such takes priority over our change and causes the compile to fail.

So we will shortly be releasing a new version of visual micro that prevents the "other" installation of cygwin from screwing up the Arduino compile.

I suspect this is the problem you are encountering because the useless error message is the same as we encountered originally with 1.5.7 and the same as was reported by the other user I mentioned previously.

To resolve this issue until the next Visual Micro update I suspect that you might simply be able to add the arduino.exe folder to the PATH variables via "MyComputer>Environment Settings"

If my reply does not make sense to you then please say and I will try to post clearer instructions.

Look forward to hearing your thoughts. Alternatively use arduino 1.5.6 until the next release which should be within the next week or so.

Thanks

ps: I think the arduino ide avoids this issue because the files are within the Ide folder.
« Last Edit: Sep 9th, 2014 at 3:39pm by Tim@Visual Micro »  
Back to top
IP Logged
 
salwq88
Newbies
*
Offline


Posts: 2
Joined: Sep 9th, 2014
Re: Error Compiling Atmel Studio 6.2 + Visula Micro 1.1407.10 + Arduino 1.5.7
Reply #2 - Sep 9th, 2014 at 8:32pm
Print Post  
Thanks a lot,
because I use many other tools and some of them may be causing the problem definitively reinstalled "visual micro" and I used the Arduino 1.5.6 r2. Everything works as it should. The simplest solutions tend to be the best.
One more time thanks a lot.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling Atmel Studio 6.2 + Visula Micro 1.1407.10 + Arduino 1.5.7
Reply #3 - Sep 20th, 2014 at 11:45am
Print Post  
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint