VS Arduino
Visual Micro >> Project Guidance >> Existing Arduino-project cannot be compiled
https://www.visualmicro.com/forums/YaBB.pl?num=1360420100

Message started by Nicolas Nickisch on Feb 9th, 2013 at 2:28pm

Title: Existing Arduino-project cannot be compiled
Post by Nicolas Nickisch on 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 ? :-?

Title: Re: Existing Arduino-project cannot be compiled
Post by Visual Micro on 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"?


Title: Re: Existing Arduino-project cannot be compiled
Post by Nicolas Nickisch on 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.

Title: Re: Existing Arduino-project cannot be compiled
Post by Visual Micro on 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

Title: Re: Existing Arduino-project cannot be compiled
Post by Visual Micro on 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


Title: Re: Existing Arduino-project cannot be compiled
Post by Nicolas Nickisch on 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.

Title: Re: Existing Arduino-project cannot be compiled
Post by Visual Micro on 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?

Title: Re: Existing Arduino-project cannot be compiled
Post by Nicolas Nickisch on 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.

:D It now seems to load correct and compile

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.