Skip to content

Commit 38cd04e

Browse files
committed
Fix aml dependency version for neatvnc
Building neatvnc v0.8.1 fails with: ``` meson.build:71:7: ERROR: Dependency "aml" not found, tried pkgconfig and cmake ``` According to meson.build:66, neatvnc requires aml in the range `>=0.3.0` and `<0.4.0`. Update the dependency to match this requirement so the build can succeed with the proper aml version.
1 parent 53b11ca commit 38cd04e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/build-neatvnc.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,21 @@ sudo apt install -y meson ninja-build libpixman-1-dev zlib1g-dev libdrm-dev pkg-
66

77
TOP_DIR=$(pwd)
88
# Clone and build aml
9-
git clone https://github.com/any1/aml && pushd aml
9+
if [ ! -d "aml" ]; then
10+
git clone https://github.com/any1/aml --depth=1 -b v0.3.0
11+
fi
12+
pushd aml
1013
meson -Dprefix=$TOP_DIR/_static --default-library=static build
1114
ninja -C build install
1215
popd
1316

1417
export PKG_CONFIG_PATH=$TOP_DIR/_static/lib/$(uname -m)-linux-gnu/pkgconfig
1518

1619
# Clone and build NeatVNC
17-
git clone https://github.com/any1/neatvnc --depth=1 -b v0.8.1 && pushd neatvnc
20+
if [ ! -d "neatvnc" ]; then
21+
git clone https://github.com/any1/neatvnc --depth=1 -b v0.8.1
22+
fi
23+
pushd neatvnc
1824
meson -Dprefix=$TOP_DIR/_static --default-library=static build
1925
ninja -C build install
2026
popd

0 commit comments

Comments
 (0)