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 include library (Read 5808 times)
Henk Levels
Junior Member
**
Offline


Posts: 81
Joined: Sep 28th, 2015
include library
Sep 29th, 2015 at 5:46pm
Print Post  
Hi,

First I'm new to programming and perhaps is this question to easy, but not for me.
I have a arduino Uno board and use Atmel Studio 6.2 with a Visual Micro plug in for Arduino.
I have made in Atmel Studio a new Arduino project and created some source code and like to include a library called LCD16x2.
When I choose alt F7 toolchain directories (in C and C++) and select the LCD16x2 directory and go back to the ino file and try to complile I get an error directory not found.
Going back to the toolchain the selected LCD16x2 directory is gone, even when I press Save All??
How can I add a directory to the toolchain directory window?
The project add/import arduino library - user is not selectable only core.
I copied the the LCD16x2 library to the Arduino IDE library environment but it is not recognised.
The documentation of visual micro is about MS visual studio. Where can i find it info for the Atmel environment?
Please help I'm lost.
« Last Edit: Sep 29th, 2015 at 6:04pm by Henk Levels »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include library
Reply #1 - Sep 29th, 2015 at 6:06pm
Print Post  
Hi,

We are in change over with the docs. The older version will be republished shortly but atmel studio 7 is due shortly which will also use the newer version of Visual Micro. 

However the isn't much difference apart from libraries and breakpoint window.

Libraries in the older release are included by selecting the project in the solution explorer and using menu "Project>Add/Import Sketch Library". This includes in Arduino format which is just an #include in the [sketchname].ino without any path specification.

Arduino library paths are worked out automatically which is why we just use #include "myLib.h"
« Last Edit: Sep 29th, 2015 at 6:07pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Henk Levels
Junior Member
**
Offline


Posts: 81
Joined: Sep 28th, 2015
Re: include library
Reply #2 - Sep 29th, 2015 at 6:13pm
Print Post  
Thanks,

But in project - add/import arduino library the user selection is greyed out and cannot be selected.
When trying to import a zip file I get the message Unable to move library from temp to c:\arduino-sketches\libraries\LLCD16x2
please help
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include library
Reply #3 - Sep 29th, 2015 at 6:29pm
Print Post  
For Arduino the user libraries folder is located below the sketch book folder. The sketch book folder is where arduino projects are saved by default.

You have changed your sketchbook folder from the default of mydocument\arduino to c:\arduino-sketches

Visual Micro does not have permission to c:\arduino-sketches

Create c:\arduino-sketches\libraries yourself

Then unpack the zip so the you see a folder called c:\arduino-sketches\LLCD16x2 that contains the library sources or \src folder.

Re-start AS6 or click "tools>visual micro>reload toolchains"

This is all there is to installing a library
  
Back to top
IP Logged
 
Henk Levels
Junior Member
**
Offline


Posts: 81
Joined: Sep 28th, 2015
Re: include library
Reply #4 - Sep 29th, 2015 at 6:41pm
Print Post  
Thanks for the quick reply.
I tried pressing menu project  - show sketch core and library sources and compilation worked without errors
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include library
Reply #5 - Sep 29th, 2015 at 6:46pm
Print Post  
Great. Thanks for the update. Sorry between docs at moment
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint