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 build errors not consistent with running the Arduino IDE (Read 9847 times)
patstyles
Newbies
*
Offline


Posts: 3
Joined: Jun 26th, 2013
build errors not consistent with running the Arduino IDE
Jun 27th, 2013 at 12:24am
Print Post  
Hello.

I have the following items installed...
   
  Visual Studio Pro 2012
  Visual Micro 1.1.305.09
  Arduino IDE 1.5.2

Note that I installed Arduino 1.5.2 by unpacking it and overlaying over a 1.05 installation. I hope this is the correct procedure.

When I compile my sketch using the Arduino IDE, I get no errors.

When I compile using VS, I get these errors...

Compiling 'miniE' for 'Arduino Mega 2560 or Mega ADK'
._RTClib.cpp : stray '\5' in program
._RTClib.cpp : stray '\26' in program
._RTClib.cpp : stray '\7' in program
._RTClib.cpp : stray '\2' in program
._RTClib.cpp : stray '\2' in program
._RTClib.cpp : stray '\16' in program
._RTClib.cpp : stray '\260' in program
._RTClib.cpp : stray '\2' in program
._RTClib.cpp : stray '\16' in program
._RTClib.cpp : stray '\342' in program
._RTClib.cpp : stray '\1' in program
._RTClib.cpp : stray '\36' in program
._RTClib.cpp : stray '\1' in program
._RTClib.cpp : stray '\16' in program
._RTClib.cpp : stray '\342' in program
._RTClib.cpp : stray '\230' in program
._RTClib.cpp : stray '\1' in program
._RTClib.cpp : stray '\230' in program
._RTClib.cpp : stray '\25' in program
._RTClib.cpp : invalid suffix "f8968" on integer constant
._RTClib.cpp : stray '\' in program
._RTClib.cpp : invalid suffix "F1C6176" on integer constant
._RTClib.cpp : stray '\1' in program
._RTClib.cpp : stray '\1' in program
._RTClib.cpp : stray '\36' in program
._RTClib.cpp : stray '\1' in program
._RTClib.cpp : stray '\1' in program
._RTClib.cpp : stray '\36' in program
._RTClib.cpp : stray '\34' in program
._RTClib.cpp : stray '\36' in program
._RTClib.cpp : stray '\377' in program
._RTClib.cpp : stray '\377' in program
._RTClib.cpp : 'Mac' does not name a type
._RTClib.cpp : expected unqualified-id before numeric constant
._RTClib.cpp : 'Google' does not name a type
._RTClib.cpp : expected unqualified-id before numeric constant
Error compiling

These are the remaining errors. I have picked through and fixed some other similar errors that are not displayed in this email. But I was reluctant to work on errors in a library that I did not write. It seems to me that this should compile.

Also note that I removed Robot_Control library after reading other notes in this forum.

I have also tried doing all this with Arduino 1.05 but after reading the forum notes, I overlaid 1.5 beta. Regardless, the results were unchanged.

Any help is appreciated.

thanks,
.pat styles
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build errors not consistent with running the Arduino IDE
Reply #1 - Jun 27th, 2013 at 12:38am
Print Post  
Hi,

If you can give a link to a forum note that has caused this confusion then please do so I can clean it up. Sorry about that.

The correct procedure is to install all Arduino versions in their own clean folder. 

Each Arduino exe is programmed to work one way but you are still lucky that overwriting a version allows the arduino.exe to continue to function. This might not be the case if you switched back to an earlier version.

In any case Visual Micro has to attempt to be more intelligent because it is designed to support all the different versions of Arduino. This is why it would be confused by merging two different Arduino installations.

If you are using 1.5 you probably do not need 1.0.x but in any event the  best way to work is to always put each arduino in a clean folder.

For Visual Micro you can either open Tools>Options>Visual Micro and alter the Arduino location to the location of the arduino.exe you want to use.

Or you can use a constant folder name for the current version of arduino that Visual Micro is pointing to. for example c:\arduino\arduinoIDE

In the latter case, when installing a new arduino version, you would rename c:\arduino\arduinoIDE to c:\arduino\arduinoIDE_1x_blah and install the new version into c:\arduino\arduinoIDE. After doing this click "Tools>Arduino>Reload Toolchain" and Visual Micro will auto detect the changes (or re-start vs/atmel)

You are right to remove the robot_control and robot_motor libs for the current version of Visual Micro. However if you use Arduino 1.0.4 it does not include the libs.

I hope this helps. After cleaning your arduino install, before compile, it would be a good idea to click "Build>Clean Solution". After clicking clean, you may see an error when you next compile, the error will clear when you click compile again.

I hope this helps, look forward to hearing how you get on after the arduino ide re-install
« Last Edit: Jun 27th, 2013 at 12:40am by Tim@Visual Micro »  
Back to top
IP Logged
 
patstyles
Newbies
*
Offline


Posts: 3
Joined: Jun 26th, 2013
Re: build errors not consistent with running the Arduino IDE
Reply #2 - Jun 27th, 2013 at 12:57am
Print Post  
Thanks.

I did as asked and found not difference in behavior. Here is some detail...

I renamed the Arduino program directory and copied in the 1.5 stuff into a new directory with the old name of ...

  C:\Program Files (x86)\Arduino

The is the same as the old directory.

I ran the Arduino IDE from the Start Menu to make sure it was the 1.5 bits.

I ran VS, did a clean solution, and recompiled. Same errors.

But then I went back to Tools->Options->Visual Micro and I found evidence that Visual Micro thinks it is running 1.0.x The line items under "Applications & Locations" list the 1.0.x product.

Thanks for all your help.
.p
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build errors not consistent with running the Arduino IDE
Reply #3 - Jun 27th, 2013 at 1:25am
Print Post  
Thanks,

The 1.0.x is an incorrect label in the last versions of Visual Micro. Please ignore.

The version number of arduino is determined from the version.txt under an arduino.exe sub folder.

Would you please switch on Tools>options>Visual Micro>Compiler>Verbose and email the output after compile to info [at] visualmicro.com

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


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build errors not consistent with running the Arduino IDE
Reply #4 - Jun 27th, 2013 at 1:10pm
Print Post  
Thanks for sending the compiler output

The 1.5.2 version of Visual Micro is in beta because it does not find the libraries in the 1.5.2 hardware folder. These are libs that can work for avr boards but not for Due/Sam boards.

You can see below these errors where at the top of the standard compiler output. The errors you posted were further down but a result of these missing libraries.

The two libs your project needs are EEPROM and SoftwareSerial

You can fix this by moving the libraries from "arduino\hardware\arduino\avr\libraries" to "arduino\libraries"

Thanks

mE_bluetooth.ino : 'SoftwareSerial' does not name a type
miniE.ino : : In function 'void bluetooth_setup()':
mE_bluetooth.ino : 'btSerial' was not declared in this scope
miniE.ino : : In function 'boolean is_eeprom_saved()':
mE_eeprom.ino : 'EEPROM' was not declared in this scope
« Last Edit: Jun 27th, 2013 at 1:11pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build errors not consistent with running the Arduino IDE
Reply #5 - Jun 27th, 2013 at 3:29pm
Print Post  
Hi Pat,

Thanks for your email and your patience.

Yes with 1.0.4 we can now see the real errors.

The plugin is supposed to clear invalid (for Arduino) unicode characters from the source comments prior to compile of a temporary copy of your program. 

Please zip and email the RTCLib to that I can try it. If Visual Micro is failing to clear the chars then we should be able to clear them ourselves as a short term workaround, however it would be useful for my tests to have a source file that contains these commented characters so please zip and send "as is"

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


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build errors not consistent with running the Arduino IDE
Reply #6 - Jun 27th, 2013 at 4:20pm
Print Post  
Hi Pat,

It's okay to email files thanks, I have a problem getting the forum attachments to work.

I found the problem. Visual Micro should be ignoring some junk/invalid files in the RTClib folder. Delete all the files in the library folder that have names that start with a . (full stop)

more specifically...

.RTClib.cpp
.RTClib.h

You will see that in these files we have weird stuff for max source code control or something Smiley 

If you have VS or Atmel open the after deleting the files click Tools>Arduino>reload Toolchain

The Visual Micro library reader is currently being re-written so I expect this problem will be resolved in the next release.

Thanks very much for the report and info.
  
Back to top
IP Logged
 
patstyles
Newbies
*
Offline


Posts: 3
Joined: Jun 26th, 2013
Re: build errors not consistent with running the Arduino IDE
Reply #7 - Jun 28th, 2013 at 12:39am
Print Post  
Hi Tim.

It compiled fine. Thanks so much. I'm off to the races now.

.p
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint