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 Installing a Library from a zip (Read 5314 times)
DennisH
Newbies
*
Offline


Posts: 2
Joined: Jul 27th, 2015
Installing a Library from a zip
Jul 27th, 2015 at 11:51pm
Print Post  
I am developing an Arduino Library and would like to test compatibility with Visual Micro. I can use the Library from Visual Micro if it is already installed via Arduino Sketch, but I wanted to see if I could load it in Visual Micro using the "Install a library from a zip" option.

I did read that the "Install a Library..." option would be part of the upgraded Pro version, but I assume the 30-day trial would still perform this function for now. However, when I choose to install the library from .zip I get the following error messages.

"Extract and detection of a library from this zip failed
Error: Version required to extract this entry not supported (788)" and then some .SharpZipLib messages "

I usually work under Ubuntu, so I regenerated the .zip file under Win7 and still get an error message, but a different message.
"Extract and detection of a library from this zip failed
Zip doesn't contain a library"

Does the "Install a library from zip" function work in the 30-day trial version? Or is everyone just installing libraries from Sketch?

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


Posts: 12164
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing a Library from a zip
Reply #1 - Jul 28th, 2015 at 12:14am
Print Post  
Hi,

Code
Select All
Zip doesn't contain a library 



That means it is attempting to work so not a license issue. Normally you can't click what you can't use so this type of error will never be a license issue.

The error is raised if the root of the zip contains more than one folder. It's quite a new feature and it seemed safe to prevent a zip being more than one top level lib folder. Obviously sub folders are fine. Say if you think this is wrong?

Does the Arduino ide unpack it okay?

The structure of the zip would be

Lib1
   Lib1.h
   Lib1.cpp
   \utility
       something_private_1.h
       something_private_2.h
   \examples
or

Lib1
   lib.properties
   \src
       Lib1.h
       Lib1.cpp
       \unlimited private sub folders
   \examples

nb: The actual lib name is deduced from the one and only root folder in the zip
« Last Edit: Jul 28th, 2015 at 12:23am by Tim@Visual Micro »  
Back to top
IP Logged
 
DennisH
Newbies
*
Offline


Posts: 2
Joined: Jul 27th, 2015
Re: Installing a Library from a zip
Reply #2 - Jul 28th, 2015 at 12:31am
Print Post  
Thanks for the tip. I didn't keep the whole library in 1 top-level subfolder. I had another look at the Arduino IDE 1.5: Library specification and realize I missed that Sad  Sketch will open the library regardless of the bad folder structure.

For Visual Micro, it works now if I generate the zip from Win7, but I still get the Ziplib errors when the zip is generated from Ubuntu1204. For release versions I'll just make sure I create the zip from Windows.

Just to clarify: Is the "Install library from zip" a Pro version feature only?

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


Posts: 12164
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing a Library from a zip
Reply #3 - Jul 28th, 2015 at 12:43am
Print Post  
Yes pro feature only. Install via the Explorer or the Project menu

You could also submit a url to the Arduino team for inclusion in the Library Manager

http://www.visualmicro.com/page/User-Guide.aspx?doc=Library-Manager.html



Thanks
« Last Edit: Jul 28th, 2015 at 12:43am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint