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 How to work with libraries (Read 1720 times)
Don Winchell
Junior Member
**
Offline


Posts: 19
Location: Nova Scotia Canada
Joined: Nov 23rd, 2021
How to work with libraries
Dec 3rd, 2021 at 10:50pm
Print Post  
Please see screen shot.   I seem to have the library installed, over on the left, but the compiler is not finding the library. this file system really has me confused, I am still trying to sort out the problem from the beginning of this thread.  I seem to make progress, then get stuck again.  I also can not seem to figure out how to start a new post! 

well I have tried to attach or embed a screenshot but I can not figure out how to do that.   Tongue
« Last Edit: Dec 4th, 2021 at 10:12pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: access denied
Reply #1 - Dec 4th, 2021 at 12:13am
Print Post  
Hi

You might need to click the "Reply" button to add a reply with attachments. The quick reply at the top or bottom of this page offers less functionality.

Libraries work the same way as Arduino libraries which is slightly different to normal progamming. If anything it is supposed to be easier. You don't need libraries to show in the solution they are discovered from the #include's withing the code.

We do offer more advanced library management but for new Arduino users it is better not to include them in the solution that way things work the same as is documented for the Arduino IDE.

If you have installed an arduino library that simply means it has been copied to your "sketch book folder"/libraries. The arduino sketch book folder is usually documents/arduino.

I suggest you remove libs from the solution, have only your arduino project then try to build. If that fails then we need to see which settings you might  have altered so that we can explain what is happening. For that we need the information requested in the yellow box near the top of this page.

Some docs also here if that helps https://www.visualmicro.com/page/User-Guide.aspx?doc=index



« Last Edit: Dec 4th, 2021 at 12:14am by Tim@Visual Micro »  
Back to top
IP Logged
 
Don Winchell
Junior Member
**
Offline


Posts: 19
Location: Nova Scotia Canada
Joined: Nov 23rd, 2021
Re: access denied
Reply #2 - Dec 4th, 2021 at 12:41am
Print Post  
I can not find any other reply button, I have tried every one I can find.  in any case I will email the build file and link to this.  thanks.
  
Back to top
 
IP Logged
 
Don Winchell
Junior Member
**
Offline


Posts: 19
Location: Nova Scotia Canada
Joined: Nov 23rd, 2021
Re: access denied
Reply #3 - Dec 4th, 2021 at 1:35pm
Print Post  
I did send an email with the build file (at least I think it is what you wanted). And I am continuing to try to get visual micro working as it seems like a fantastic program, but so far I am not up and running reliably yet. in any case I discovered this line in a previous exchange wich was simply beyond my ability to respond to at the time.  

When you open the examples from the Visual Micro Explorer, are you clicking on the *.ino file name (which opens the example from the library), or on the example name (which offers to Open Copy, or Open Original)?

But with further investigation, I am either not clear on what you mean or the program is responding oddly.  I did ONCE get the offer to open copy or open original, but don't know how I got there.  Also, after I opened a copy, I had no idea where it was saving to, and it did not tell me to change the name (so as not to overwrite the original).  In any case I tried to find the difference between opening *.ino or the alternative, but I don't know what you mean by just opening the "file" name or the "example" name.  it seems if I click on the "example" (which seems to be the folder) it just drills down to the files and I have a choice of selecting an .ino or a .sln or .vcxproj   file. 

Also my arduino path file is   C:\Users\donwi\OneDrive\Documents\Arduino    note the "OneDrive"  this is also the path that occurs in the VM location section and this is where the Arduino installer put it.   I have tried changing this (in both places, Arduino and VM)   to get rid of "OneDrive", but this seems to make no difference. I have also reinstalled Arduino from scratch as well as VM.   I am totally at a loss here.   I am pretty sure once I get this path, permission, whatever issue is solved, I am going to love the app, but so far it is a bit frustrating  BTW I had already read and reread the info you sent in the last link.   I am puzzled Embarrassed

thanks for your help
« Last Edit: Dec 4th, 2021 at 10:09pm by Tim@Visual Micro »  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: access denied
Reply #4 - Dec 4th, 2021 at 3:52pm
Print Post  
The build output that you emailed shows the build has worked correctly. The only library you have used is SoftwareSerial.

What do you see that makes you think that you have a problem with a library? Sometimes intellisense needs a build before it can discover some libs. You see red squiggles but the build works and then the squiggles should go.

Examples tutorial here. It might explain things.

https://www.visualmicro.com/page/vMicro-Videos.aspx#UseExamplesInVM

You can right click any source file (or project) in the solution explorer and click "Open file location". That opens windows explorer on the location where the file or project is located. You can also select an item int he solution explorer and press F4 or "view>properties window" to see the properties of a solution explorer item in a tool window. One of the properties is the physical location (path)

The "copy example" creates a copy in a sub folder of "sketchbook/my examples". 

Visual Studio has the concept of a "Solution". A Solution is simply a way to group projects into a single easy to access work space. You can have one project per solution or multiple projects per solution. Multiple solutions can contain the same project. The solution has no relation to the build process, the Solution simply allow you to organise your work. If you don't save a solution during close (when promped), then you need to use "File>Open>Project" or "File>Open>Arduino Project" to reopen the next time you start the ide. 

In many cases, the File menu will also show last opened files and last opened projects. That allows you to find things more easily.







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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to work with libraries
Reply #5 - Dec 4th, 2021 at 8:05pm
Print Post  
Thanks for the screen shot. You are doing some good stuff!

I think there is some confusion with use of shared libraries. Remove the two "References" from the sketch project and it will work okay.

You can optionally remove the two library shared projects from the solution.

I have seen that problem where you can't add an attachment. It seems to happen if you click the link in an email notification. Navigating to the "Installation & troubleshooting" forum board and open this post then it works better. We will look into that thanks.
« Last Edit: Dec 4th, 2021 at 10:11pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint