基地問題/目標:如何添加自定義PPA到snapcraft
我希望能夠從自定義PPA使用一些共享庫,應前cmake的步驟(插件)獲取。
snapcraft.yaml:
name: mraa-blink-example
version: 'Latest'
summary: mraa for snapcraft
description: |
Blink Example from MRAA lib
grade: stable #devel # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
apps:
blinkapp:
command: bin/blink
parts:
blink:
plugin: cmake
build-packages:
- libmraa1
- libmraa-dev
- mraa-tools
- python-mraa
- python3-mraa
的CMakeLists.txt
cmake_minimum_required(VERSION 2.8.9)
project (MRAA)
file(GLOB SOURCES "src/*.cpp")
#For the shared library:
set (PROJECT_LINK_LIBS libmraa.so)
add_executable(blink ${SOURCES})
target_link_libraries(blink ${PROJECT_LINK_LIBS})
install(TARGETS blink DESTINATION /bin)
由於集結包是從一個自定義的PPA,我得到的錯誤:
Could not find a required package in 'build-packages': "The cache has no package named 'libmraa-dev'"
有一種解決這個問題的方法?
FWIW,其主訴其witth不同的相同文件,但包含'desktop-gtk3'部分時的內容。 – Cimm