是否可以快速拥有一个共享库?

Ini*_*hib 6 shared-library c++ 16.04 snap

今天我正在试验这个。我决定拍一张我的图书馆。我的 snapcraft.yaml 看起来像这样:

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
Run Code Online (Sandbox Code Playgroud)

我用 来创建档案snapcraft,然后用 安装它sudo snap install --devmode inverse_4.1_amd64.snap
问题是,我不能用
经过基本检查,我得出了以下结论:

/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)
Run Code Online (Sandbox Code Playgroud)

毫不奇怪,当我尝试使用它时会g++ 失败

g++: fatal error: inverse/InverseRandom.h: no such file or directory
g++: compilation terminated
Run Code Online (Sandbox Code Playgroud)

我已经将限制设置为最低级别(devmode),所以,我的问题是:甚至可以快速拥有一个共享库吗?


一些系统信息:

Ubuntu GNOME 16.04(全新安装,不到一周)
Snapcraft 版本 2.13.1

use*_*.dz 1

Snap 的主要目标是将应用程序打包为完整的捆绑包,以便在隔离的容器中运行。所以它不适合共享库、插件、模块、操作系统主题......

您可以从 PPA 或官方存档中提供 Debian 软件包。即使作为源存档,应用程序开发人员也可以在同一树中为他们的快照构建您的库。