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 VS/VM can't find library (Read 4632 times)
hauwarea
Junior Member
**
Offline


Posts: 34
Location: Perth Western Australia
Joined: Apr 9th, 2017
VS/VM can't find library
Jan 20th, 2018 at 12:10am
Print Post  
I'm sure I posted this problem before but I can't find the post.

I have an Arduino program which needs the U8g2.  VS/VM couldn't read the library even though the Arduino IDE shows it is present.  I was advised to use #include <U8g2lib.h>  instead of #include <U8g2.h>, and that fixed the problem yesterday!  Now the problem is back.

What do I do now?
« Last Edit: Jan 21st, 2018 at 2:28pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS/VM can't find library
Reply #1 - Jan 21st, 2018 at 2:30pm
Print Post  
Hi,


1)

Please confirm:-

if the library shows on the Visual Micro Add Library menu but the compile fails?
   OR
the library does not show on the visual micro menu
 
2)

If you attempt to compile with the library #included you must see an error? Please ensure vmico>compiler>verbose is enabled and also the "show build properties" item. Then build and post or email the output.
  
Back to top
IP Logged
 
hauwarea
Junior Member
**
Offline


Posts: 34
Location: Perth Western Australia
Joined: Apr 9th, 2017
Re: VS/VM can't find library
Reply #2 - Jan 21st, 2018 at 10:24pm
Print Post  
I just got back to this project - sorry for the delay.
I went into the Arduino IDE and discovered that U8g2.h had disappeared.  I downloaded it again and reinstalled.
Then I found that it showed in Visual Micro Add Library.
Then I ran it.
It worked!  Cheesy

I cannot for the life of me figure out how that library and two others just disappeared from the Arduino setup.
Anyway - all's well.
Thanks for the help.

I did learn something - how to find libraries in VS/VM - so it wasn't totally wasted time.  Wink
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS/VM can't find library
Reply #3 - Jan 21st, 2018 at 11:22pm
Print Post  
Okay often the confusion is a change of "sketchbook folder"

Normally skethcbook is mydocuments\arduino therefore downloaded libraries are in mydocuments\arduino\libraries\[lib-name]

So if you download when sketchbook is set to no folder or folder A then change to folder B you will no longer see the downloaded libs.

  
Back to top
IP Logged
 
hauwarea
Junior Member
**
Offline


Posts: 34
Location: Perth Western Australia
Joined: Apr 9th, 2017
Re: VS/VM can't find library
Reply #4 - Jan 22nd, 2018 at 12:04am
Print Post  
Hi Tim

Tim@Visual Micro wrote on Jan 21st, 2018 at 11:22pm:
Normally skethcbook is mydocuments\arduino therefore downloaded libraries are in mydocuments\arduino\libraries\[lib-name]


Agent Ransack can't find me a folder in C:\ named "mydocuments".  Would you please give me the full address.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS/VM can't find library
Reply #5 - Jan 22nd, 2018 at 3:15pm
Print Post  
it's your normal windows "Documents" folder

often located in c:\users\[your name]\documents

If you do not set a sketchbook folder in arduino preferences or in visual micro ide location dialog then the default is your documents\arduino folder.

  
Back to top
IP Logged
 
hauwarea
Junior Member
**
Offline


Posts: 34
Location: Perth Western Australia
Joined: Apr 9th, 2017
Re: VS/VM can't find library
Reply #6 - Jan 22nd, 2018 at 10:49pm
Print Post  
I shifted my Documents folder to D:\ so I have D:\Documents\Arduino\Libraries.
I'll throw the ZIPs in there and reinstall with Arduino IDE.
You'll hear me scream if it doesn't work Cheesy
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS/VM can't find library
Reply #7 - Jan 22nd, 2018 at 11:20pm
Print Post  
There is nothing to installing an arduino library other than unpacking a zip into the sketchbook\libraries folder.

Nothing to installing an arduino ide than unpacking the arduino ide zip into a folder of your choice (first .exe install does install usb drivers but you can find them below the ide for manuall install in future).

Restart visual micro or click re-scan if you make changes.

Make sure you have not set a sketchbook path in visual micro, just in arduino ide file prefs so you don't get confused.

There isn't any info written to a hidden area that prevents you from moving stuff around without breakage other than being clear about where your \libraries folder is.

Thanks
« Last Edit: Jan 22nd, 2018 at 11:21pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint