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) Add the User library (Read 2703 times)
udas
Newbies
*
Offline


Posts: 8
Location: Russia
Joined: Jun 22nd, 2019
Add the User library
Jun 22nd, 2019 at 2:48pm
Print Post  
Hello!
I’m novice, just installed Atmel Studio + Visual micro and investigate the options.
I download simple Arduino sketch that uses known UTFT display library and I see vMicro\Add Library\User option is not active.
Is that because I have not registered yet  or I do something wrong?
Igor
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add the User library
Reply #1 - Jun 22nd, 2019 at 8:35pm
Print Post  
Hi,

How did you create your project?

It is important that the folder, project and an .ino all have the same name. The Arduino IDE requires that the folder and an .ino have the same name. 

Does the sketch compile in the arduino ide?
  
Back to top
WWW  
IP Logged
 
udas
Newbies
*
Offline


Posts: 8
Location: Russia
Joined: Jun 22nd, 2019
Re: Add the User library
Reply #2 - Jun 23rd, 2019 at 10:34am
Print Post  
Hi Tim!

I just used vMicro option "Open Existing Arduino Project" and
open "sketch_jun11a.ino" from the foulder "sketch_jun11a" of my Arduino sketches foulder.
Sketch is compiled in Arduino IDE, dowunloaded to Mega and
Due and I get a fine pictures.
Regards
Igor

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add the User library
Reply #3 - Jun 23rd, 2019 at 5:41pm
Print Post  
Can I see a screen shot of the full ide with project open and grayed out add library menu?

Thanks
  
Back to top
WWW  
IP Logged
 
udas
Newbies
*
Offline


Posts: 8
Location: Russia
Joined: Jun 22nd, 2019
Re: Add the User library
Reply #4 - Jun 24th, 2019 at 12:56pm
Print Post  
Hello Tim!
I attached two shots, one with add library menu, and second
with visible head of the Sketh, becase library menu covers one.
Regards
Igor
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add the User library
Reply #5 - Jun 24th, 2019 at 1:08pm
Print Post  
Oh I see the "User Installed " library list is empty but the Add Library menu is enabled and working correctly. I missed the "User" part of your report.

The libraries that you install are placed in the \libraries folder below what, in Arduino speak, is called the Sketchbook Folder

By default, in both Visual Micro and the Arduino IDE, the SketchBook folder is assumed to be myDocuments\Arduino

If you alter the Sketcbook folder in the Arduino IDE File>Preferences then close the Arduino IDE (so that it saves the config change). Visual Micro will also use the config change.

If you alter the SketchBook folder in the Visual Micro IDE Locations window then the Arduino IDE will not see the change and will show a different Sketchbook Folder and therefore a different list of User Installed Libraries

I suspect that you have entered a sketchbook folder into the Visual Micro IDE Locations window? If this is the case and it is a mistake then please clear the path and click OK.

If you intended to use a different SketchBook Location then you should copy of move the \Libraries folder from MyDocuments\Arduino\Libraries to the new location otherwise the "User Installed" libraries list will be empty. Alternatively reinstall the libraries using Visual Micro which would then locate them in your alternative Sketchbook\Libraries folder.

Does this make sense?
« Last Edit: Jun 24th, 2019 at 1:08pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
udas
Newbies
*
Offline


Posts: 8
Location: Russia
Joined: Jun 22nd, 2019
Re: Add the User library
Reply #6 - Jun 24th, 2019 at 1:28pm
Print Post  
Tim!
It seems I did solve the problem, but in strange way.
The UTFT lib. is already installed and located in the default
Arduino libraries foulder(C:/Admin/Docs/Arduino.
But vMicro does not see one.
I used option" Add library/Install Arduino Library from ZIP",
the new foulder "libraries" appeared in my Sketches foulder
with UTFT lib. And after that UTFT did appear in "Add library/
User Installed".
Compilation is successeful now.
I supposed that "User installed' opens the explorer and I choose already installed library, but no.....
So I have two copies of the UTFT.
Regards
Igor
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add the User library
Reply #7 - Jun 24th, 2019 at 1:36pm
Print Post  
Thanks but I am still confused and this still sounds like you have set a different SketchBook folder in Visual Micro. There is no "default" libraries folder in the Arduino world...

  • After you installed the library using Visual Micro, what is the exact path of the installed library?
  • What is the sketch book folder for the Arduino1.6/1.8 app in Visual Micro IDE Locations?
« Last Edit: Jun 24th, 2019 at 1:37pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
udas
Newbies
*
Offline


Posts: 8
Location: Russia
Joined: Jun 22nd, 2019
Re: Add the User library
Reply #8 - Jun 24th, 2019 at 1:42pm
Print Post  
Ok Tim!
I have sent my replay #6 before read yours #5.
I"ll study #5 thoroughly.
Explain me, please, the preferences of the registered copy
of the vMicro?
I did not find anything  at the site.
Thank very much
Igor
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add the User library
Reply #9 - Jun 24th, 2019 at 1:49pm
Print Post  
Okay, there are a few ways to open the IDE locations window.

On your tool bar you have the app name "Arduino 1.6/1.8". Click to drop down that list and you will see <Configure IDE Locations>

OR

Click vMicro>General>Configure IDE Locations

OR

Click "vMicro>Platform Explorer", then on the tool bar of the platform explorer you have an "IDE Locations" button.


You can see more information about how to configure the Visual Micro IDE locations in the document


  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
udas
Newbies
*
Offline


Posts: 8
Location: Russia
Joined: Jun 22nd, 2019
Re: Add the User library
Reply #10 - Jun 24th, 2019 at 1:57pm
Print Post  
To #7
UTFT lib.  path D:\Scetches\libraries
And this only lib. in that foulder.
All other libs. are in C:\Users\Igor\Mydocuments\Arduino\libraries. That foulder was created but not me but Arduino IDE
in process of installation. Thats why I named one default foulder.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add the User library
Reply #11 - Jun 24th, 2019 at 2:02pm
Print Post  
In Visual Micro, please clear the path "D:\Scetches" from the "IDE locations>Sketch book folder".

We want to use the default so you are not confused. The default will be used if the sketch book folder path is empty.

We want to be Arduino IDE compatible so DO NOT enter a sketchbook folder in Visual Micro.

Thanks
« Last Edit: Jun 24th, 2019 at 2:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
udas
Newbies
*
Offline


Posts: 8
Location: Russia
Joined: Jun 22nd, 2019
Re: Add the User library
Reply #12 - Jun 24th, 2019 at 2:56pm
Print Post  
I cleared "IDE locations>Sketch book folder".
I did check other Sketches- all are OK.
Tipical error of the newbie.

Fantastic online help!
Thank you very much!!!

  
Back to top
 
IP Logged
 
udas
Newbies
*
Offline


Posts: 8
Location: Russia
Joined: Jun 22nd, 2019
Re: Add the User library
Reply #13 - Jun 24th, 2019 at 3:27pm
Print Post  
I did register with pleasure!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Add the User library
Reply #14 - Jun 24th, 2019 at 3:33pm
Print Post  
Thanks for buying. Good luck with your projects.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint