Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Existing Arduino-project cannot be compiled (Read 6345 times)
Nicolas Nickisch
Junior Member
**
Offline



Posts: 11
Germany
Existing Arduino-project cannot be compiled
Feb 9th, 2013 at 2:28pm
 
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
 

I program like a man: copy CON: >filename.hex
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Existing Arduino-project cannot be compiled
Reply #1 - Feb 9th, 2013 at 5:39pm
 
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
Germany
Re: Existing Arduino-project cannot be compiled
Reply #2 - Feb 10th, 2013 at 9:11am
 
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
 

I program like a man: copy CON: >filename.hex
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Existing Arduino-project cannot be compiled
Reply #3 - Feb 10th, 2013 at 11:23am
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Existing Arduino-project cannot be compiled
Reply #4 - Feb 11th, 2013 at 8:02pm
 
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
Germany
Re: Existing Arduino-project cannot be compiled
Reply #5 - Feb 12th, 2013 at 9:18am
 
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
 

I program like a man: copy CON: >filename.hex
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Existing Arduino-project cannot be compiled
Reply #6 - Feb 12th, 2013 at 6:40pm
 
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
Germany
Re: Existing Arduino-project cannot be compiled
Reply #7 - Feb 14th, 2013 at 6:38pm
 
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
 

I program like a man: copy CON: >filename.hex
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print