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 Wire.h is missing. (Works in Arduino IDE) (Read 9477 times)
Johnny Nilsson
Newbies
*
Offline


Posts: 1
Joined: May 20th, 2013
Wire.h is missing. (Works in Arduino IDE)
Jul 19th, 2013 at 6:44am
Print Post  
Trying to convert an old working Arduino IDE project to VisualStudio 2012 with VisualMicro plugin.

Code
Select All
// ==============================================================================
// Create FreeIMU and use quaternion to get compass navigation
// ==============================================================================
#include <ADXL345.h>
#include <bma180.h>
#include <HMC58X3.h>
#include <ITG3200.h>
#include <MS561101BA.h>
#include <I2Cdev.h>
#include <MPU60X0.h>
#include <EEPROM.h>

//#define DEBUG
#include "DebugUtils.h"
#include "CommunicationUtils.h"
#include "FreeIMU.h"
#include <Wire.h>
#include <SPI.h>
 



The Wire.h and SPI.h is not found. Works in Arduino IDE.
Searched for the Wire.h in Arduino libraries but its not there. Is Wire.h included in Arduino IDE but VisualMicro/VS2012 need the library to be in librarys?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Wire.h is missing. (Works in Arduino IDE)
Reply #1 - Jul 19th, 2013 at 1:54pm
Print Post  
Hi,

I assume you are using arduino 1.5 which, for us, is still beta for a week or two. 

1.5 has different library config for normal arduino avr boards and for the sam (due) boards and Visual Micro is not finding these hardware specific libs.

You can either use Arduino 1.0.4 or if you want 1.5 support you can MOVE the wire and SPI libraries from "arduinoIde\hardware\arduino\avr\libraries" to "arduinoIde\libraries"

If you move the libs and already have VS 2012 open then click Tools>Arduino>reload Toolchain.

To be honest I can't see a reason for you to use 1.5 at the moment.

Thanks

ps: I still miss Fabio
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Wire.h is missing. (Works in Arduino IDE)
Reply #2 - Aug 18th, 2013 at 10:33pm
Print Post  
These library problems in versions since may 2013 are fixed in  1308.18

This new version of Visual Micro provides compatibility for the next version of the arduino ide and also with all previous versions.

Sorry for the time wasting and thanks for the reports
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint