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 Existing Arduino-project cannot be compiled (Read 8648 times)
Nicolas Nickisch
Junior Member
**
Offline


Posts: 11
Location: Germany
Joined: Feb 8th, 2013
Existing Arduino-project cannot be compiled
Feb 9th, 2013 at 2:28pm
Print Post  
I already started developing an Arduino-project with the Arduino-IDE.
A few days ago, I installed the visualmicro-plugin.
Loading the project seems to work okay, but compiling complains something about SPI.h cannot be found.

Th Arduino-IDE was installed prior to the plugin and was /is working okay.

Can someone help ? Huh
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Existing Arduino-project cannot be compiled
Reply #1 - Feb 9th, 2013 at 5:39pm
Print Post  
It sounds like it can't find the arduino install folder. 

Do you see a list of boards in the boards list on the tool bar?

Can you see the spi.h lib on "Project>Add Arduino Library"?

  
Back to top
WWW  
IP Logged
 
Nicolas Nickisch
Junior Member
**
Offline


Posts: 11
Location: Germany
Joined: Feb 8th, 2013
Re: Existing Arduino-project cannot be compiled
Reply #2 - Feb 10th, 2013 at 9:11am
Print Post  
Please, see my other posting.
Yes, I see a list of boards and NO, I cannot see spi.h in Add Arduino library as bot menues are grayed out.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Existing Arduino-project cannot be compiled
Reply #3 - Feb 10th, 2013 at 11:23am
Print Post  
Okay in the other post everything works for new arduino projects but you have a problem with this one existing project?

So we will continue in the other post? Thanks it's the same problem I think.

Please explain how you created the "existing" project. Thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Existing Arduino-project cannot be compiled
Reply #4 - Feb 11th, 2013 at 8:02pm
Print Post  
Thanks for emailing the sketch and sorry for the delay

I've looked at the vs project you emailed and it's set to be a win32 application, doesn't seem to be the empty c++ win32 project that vm auto created when you open a sketch. 

When vm creates a c++ project it uses the VS blank c++ template that is installed with all VS C++ versions. 

So before I ask some other questions I have two:-

1) Can you please tell me how this project was created, which menu items you used?

2) Please post the output error text of the error when you attempt to compile.

Thanks

Tim

  
Back to top
WWW  
IP Logged
 
Nicolas Nickisch
Junior Member
**
Offline


Posts: 11
Location: Germany
Joined: Feb 8th, 2013
Re: Existing Arduino-project cannot be compiled
Reply #5 - Feb 12th, 2013 at 9:18am
Print Post  
As far as I remember, I created the project without adding a new Arduino-file at first.
Then, I added an existing item, which was the .ino file previously written with the Arduino-IDE.

At the first trials, I got simply the message that SPI.h could not be found.
At the moment, I get hundreds of errors about things which belong to the missing core-librayy, I suppose.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Existing Arduino-project cannot be compiled
Reply #6 - Feb 12th, 2013 at 6:40pm
Print Post  
So you created a VS project of your own without using "File>New Arduino Project"? If so then the problem is that you created the wrong type of project.

I think you should delete the vs project files, open the .ino and let VM create the right type of project for you.

Then you can inspect the project to understand the type of project we use. We use the standard C++ Win32 empty C++ project template.

Does this make sense or am I missing the point?
  
Back to top
WWW  
IP Logged
 
Nicolas Nickisch
Junior Member
**
Offline


Posts: 11
Location: Germany
Joined: Feb 8th, 2013
Re: Existing Arduino-project cannot be compiled
Reply #7 - Feb 14th, 2013 at 6:38pm
Print Post  
Okay. Few days are over.
I just tried the following:

-delete anything inside the project folder except for .ino
- then open the  .ino-file.

Cheesy It now seems to load correct and compile
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint