Sunday, June 5, 2016

16.04 - Is it possible to have a shared library in a snap?

Today I was experimenting with this. I decided to make a snap of my library. My snapcraft.yaml looks like this:



name: inverse
version: "4.1"
summary: [insert summary here]
descrption: [insert short desc here]

[insert long desc here]
confinement: devmode

parts:
inverse:
plugin: cmake
source: https://github.com/InitializeSahib/Inverse/archive/v4.1.tar.gz


I create the archive with snapcraft, then install it with sudo snap install --devmode inverse_4.1_amd64.snap.
The problem is, I can't use it.
After basic inspection, I've come to this:




/snap (contains the inverse snap [headers and shared objects])
/usr/local/lib, /lib, /usr/lib (nothing in here)
/usr/local/include, /usr/include (nothing in here either)


No surprise that g++ flops when I'm trying to use it:



g++: fatal error: inverse/InverseRandom.h: no such file or directory
g++: compilation terminated



I've set confinement to the lowest level (devmode), so, my question is: is it even possible to have a shared library in a snap?






Some system information:



Ubuntu GNOME 16.04 (fresh installation, less than a week old)
Snapcraft version 2.13.1

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...