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