Is cmake
not a supported plugin for arm64
target?
I am trying to build below snap on an amd64
build VM
user@dev:~/armcrosscompile$ SNAPCRAFT_BUILD_ENVIRONMENT=host snapcraft pull os-build-scripts --target-arch=arm64 --debug
Setting target machine to 'arm64'
The plugin used by 'util' does not support cross-compiling to a different target architecture.
user@dev:~/armcrosscompile/os-core$
related snapcraft.yaml
snippet:
parts:
util:
source: src
plugin: cmake
override-pull: |
snapcraftctl pull
configflags:
- -DCMAKE_INSTALL_PREFIX=/usr
override-build: |-
snapcraftctl build
prime:
- -libutil.so rm -rf usr/include