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
Hot Topic (More than 8 Replies) Unable to compile sketches including additonal libs (Read 12637 times)
n8w1ng
Newbies
*
Offline


Posts: 8
Joined: Jan 14th, 2013
Unable to compile sketches including additonal libs
Jan 15th, 2013 at 3:51pm
Print Post  
hey
Im unable to compile sketches that point to any additional arduino libs(e.g. streaming etc), getting error: 
Streaming.h : No such file or directory.

All the sketch examples work ok as long as the sketches dont point to any non-defualt arduino library. The code itself is ok, since it compiles fine in the original arduino ide.  

setup:
VS 2012 ultimate(also tested in 2012 pro, ultimate-same errors)
windows 7
Visual micro 1.1212.30

any help will be appreciated

« Last Edit: Jan 15th, 2013 at 3:52pm by n8w1ng »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to compile sketches including additonal libs
Reply #1 - Jan 15th, 2013 at 4:03pm
Print Post  
Hi, 

So libs in myDocuments\Arduino\Libraries do not compile?

Questions

1)
Have you run arduino ide once?

2)
On the PROJECT menu at the top of the Visual Studio Ide is "Add new arduino library". Can you see libraries under the "User" section of this menu?

Thanks
« Last Edit: Jan 15th, 2013 at 4:04pm by Tim@Visual Micro »  
Back to top
IP Logged
 
n8w1ng
Newbies
*
Offline


Posts: 8
Joined: Jan 14th, 2013
Re: Unable to compile sketches including additonal libs
Reply #2 - Jan 15th, 2013 at 5:47pm
Print Post  
Tim@Visual Micro wrote on Jan 15th, 2013 at 4:03pm:

So libs in myDocuments\Arduino\Libraries do not compile?

sketches using these libraries do not compile.

Tim@Visual Micro wrote on Jan 15th, 2013 at 4:03pm:

1)
Have you run arduino ide once?

yes i have
Tim@Visual Micro wrote on Jan 15th, 2013 at 4:03pm:

2)
On the PROJECT menu at the top of the Visual Studio Ide is "Add new arduino library". Can you see libraries under the "User" section of this menu?

nope, only under the "core" section

PS: i have been using VM for a year without any problems. This has started after installing fresh OS.


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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to compile sketches including additonal libs
Reply #3 - Jan 15th, 2013 at 8:31pm
Print Post  
Okay so vm cannot find or is having a problem with a user library.  

Please switch on "tools>visual micro>user interface>trace" and post the output window contents after vs re-start

Thanks for all the info

« Last Edit: Jan 15th, 2013 at 8:33pm by Tim@Visual Micro »  
Back to top
IP Logged
 
n8w1ng
Newbies
*
Offline


Posts: 8
Joined: Jan 14th, 2013
Re: Unable to compile sketches including additonal libs
Reply #4 - Jan 16th, 2013 at 8:41am
Print Post  
Tim@Visual Micro wrote on Jan 15th, 2013 at 8:31pm:
Okay so vm cannot find or is having a problem with a user library.  

Please switch on "tools>visual micro>user interface>trace" and post the output window contents after vs re-start

Thanks for all the info



here it is:

Create UI command items      Begin
CreateCommandBarItems      Begin AddinVer=1.1212.30
Get Bar      Tools
Create Bar      Tools>Arduino
Adding      Tools>Ports
Adding      Tools>Other Ports
Adding      Tools>Programmers
Adding      Tools>Using Programmer
Adding      Tools>Burn Bootloader
Get      CustomToolBarObjects
Adding      UI Menu-Board-Items
Adding      UI Menu-SerialPort-Items
Adding      ToolBar-Lib-Items
Added      Library names to UI
Create UI command items      End

I hope we will figure out whats goin on, since VM makes my life much easier.

I have tried all versions available for download, but none of them work. Do you think it would b possible to get some of the older versions(beginning of 2012)?? I dont remember which one i had, but it must have been from beginning of 2012.

please let me know asap
thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to compile sketches including additonal libs
Reply #5 - Jan 16th, 2013 at 11:44am
Print Post  
This code hasn't changed so will be a problem in the older version. I'll add some more trace messages over the next few days so that we can see what is going wrong. I can see in the trace that it isn't trying to load user libs so must be hitting some other problem earlier on.

For now copy/move your user libs to the arduinoIDE/Libraries folder. They will show up in the Core libraries list, if not I need to know the names of your user libs so I can get them and replicate the issue.

It's annoying but is going to be something simple

Q: When you select File>Open>Arduino Sketch. Which folder does the "open file" dialog position at?
« Last Edit: Jan 16th, 2013 at 11:46am by Tim@Visual Micro »  
Back to top
IP Logged
 
n8w1ng
Newbies
*
Offline


Posts: 8
Joined: Jan 14th, 2013
Re: Unable to compile sketches including additonal libs
Reply #6 - Jan 16th, 2013 at 12:00pm
Print Post  
Tim@Visual Micro wrote on Jan 16th, 2013 at 11:44am:
This code hasn't changed so will be a problem in the older version. I'll add some more trace messages over the next few days so that we can see what is going wrong. I can see in the trace that it isn't trying to load user libs so must be hitting some other problem earlier on.

For now copy/move your user libs to the arduinoIDE/Libraries folder. They will show up in the Core libraries list, if not I need to know the names of your user libs so I can get them and replicate the issue.


yes, i have had them in the /Libraries folder since the beginning. I can see all of them under the "core" list. The code auto-completion works as well, which indicates that it reads the files. It "just" doesnt not compile.

Tim@Visual Micro wrote on Jan 16th, 2013 at 11:44am:

It's annoying but is going to be something simple

Q: When you select File>Open>Arduino Sketch. Which folder does the "open file" dialog position at?


A:I suppose u r referring to VS(not arduino IDE), file>open>arduino project points at "C:\Users\userName\Documents\Arduino"


I very appreciate your effort to solve this problem. 

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to compile sketches including additonal libs
Reply #7 - Jan 16th, 2013 at 1:08pm
Print Post  
Got to go out for the rest of the day but I think I know what the problem is

User libs are normally placed in SketchFolder\Libraries and core in ArduinoIde\Libraries

It doesn't matter where you put them but when In core Vm doesn't know they are not core.

So the problem is something else and I have an outstanding bug that vm fails to compile libraries if an example folder below the library contains an example with the same name as the current sketch

Vm should not be looking below each lib for more code so that is the bug.

I think that if you remove the examples from below the library that is failing or rename your sketch then the problem will be fixed

You can rename the sketch in vs by right clicking the master "sketch".ino and selecting rename. Vm will prompt you the rest of the way
  
Back to top
IP Logged
 
n8w1ng
Newbies
*
Offline


Posts: 8
Joined: Jan 14th, 2013
Re: Unable to compile sketches including additonal libs
Reply #8 - Jan 16th, 2013 at 1:35pm
Print Post  
Tim@Visual Micro wrote on Jan 16th, 2013 at 1:08pm:
Got to go out for the rest of the day but I think I know what the problem is

User libs are normally placed in SketchFolder\Libraries and core in ArduinoIde\Libraries

It doesn't matter where you put them but when In core Vm doesn't know they are not core.

So the problem is something else and I have an outstanding bug that vm fails to compile libraries if an example folder below the library contains an example with the same name as the current sketch

Vm should not be looking below each lib for more code so that is the bug.

I think that if you remove the examples from below the library that is failing or rename your sketch then the problem will be fixed

You can rename the sketch in vs by right clicking the master "sketch".ino and selecting rename. Vm will prompt you the rest of the way


I have tried all your suggestions, but none of them worked. Still the same:/.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to compile sketches including additonal libs
Reply #9 - Jan 16th, 2013 at 2:25pm
Print Post  
ok, please zip and email your sketch to info [at] visualmicro.com and tell me where to get the library(s) you are using. thanks
  
Back to top
IP Logged
 
n8w1ng
Newbies
*
Offline


Posts: 8
Joined: Jan 14th, 2013
Re: Unable to compile sketches including additonal libs
Reply #10 - Jan 16th, 2013 at 2:55pm
Print Post  
Tim@Visual Micro wrote on Jan 16th, 2013 at 2:25pm:
ok, please zip and email your sketch to info [at] visualmicro.com and tell me where to get the library(s) you are using. thanks


sent...check your email.
  
Back to top
 
IP Logged
 
n8w1ng
Newbies
*
Offline


Posts: 8
Joined: Jan 14th, 2013
Re: Unable to compile sketches including additonal libs
Reply #11 - Jan 16th, 2013 at 3:56pm
Print Post  
just a quick update.

The following setup works ok:
visual studio 2010 ultimate
visual micro v21(trace output)

This doesnt change the fact that i would like to get it workin in VS 2012:)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to compile sketches including additonal libs
Reply #12 - Jan 17th, 2013 at 2:19pm
Print Post  
When you tried 1.0.3 did you alter the vm options path to the ide?
  
Back to top
IP Logged
 
n8w1ng
Newbies
*
Offline


Posts: 8
Joined: Jan 14th, 2013
Re: Unable to compile sketches including additonal libs
Reply #13 - Jan 17th, 2013 at 4:21pm
Print Post  
Tim@Visual Micro wrote on Jan 17th, 2013 at 2:19pm:
When you tried 1.0.3 did you alter the vm options path to the ide?


Its all good now. VM(1.1212.30) works in 2012 for me now. Even though i have tried before and it didnt work, now it does. I must have mixed up different version of arduino,VS and VM.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to compile sketches including additonal libs
Reply #14 - Jan 20th, 2013 at 12:47pm
Print Post  
Thanks for letting me know, that's easily done when installing new machines Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint