Spice-Protocol

git clone https://gitlab.freedesktop.org/spice/spice-protocol.git
cd spice-protocol
mkdir build && cd build

meson ../
ninja install
export PKG_CONFIG_PATH=/usr/local/share/pkgconfig/:/usr/local/lib/pkgconfig

Spice

git clone https://gitlab.freedesktop.org/spice/spice.git
cd spice
git submodule update --init --recursive
apt install pkg-config m4 libtool automake autoconf autoconf-archive libglib2.0-dev
apt install libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg8-dev libgif-dev libsasl2-dev
apt install libopus-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev liblz4-dev
pip3 install pyparsing
pip install pyparsing

make 编译

./autogen.sh
./configure --enable-gstreamer=yes --enable-lz4=yes --enable-tests=no #跳过测试,改造不涉及测试用例补充及修改
make; sudo make install

也可使用 MesonNinja 编译

mkdir build && cd build
meson ../
ninja install

# 偶发so动态链接库不更新
cp server/libspice-server.so.1 /usr/local/lib/libspice-server.so.1
cp server/libspice-server.so.1.14.1 /usr/local/lib/libspice-server.so.1.14.1

编译时偶发 pyparsing 缺失的报错,如已安装,应是编译时检测命令有问题。可手动修改,或更新到最新版本

spice/spice/subprojects/spice-common/meson.build

foreach module : ['six', 'pyparsing']
    message('Checking for python module @0@'.format(module))
    cmd = run_command(python, '-c', 'import @0@'.format(module))
    if cmd.returncode() != 0
    error('Python module @0@ not found'.format(module))
    endif
endforeach

Spice-GTK

git clone https://gitlab.freedesktop.org/spice/spice-gtk.git
cd spice-gtk
git submodule update --init --recursive
mkdir build && cd build

apt install libjson-glib-dev libgtk-3-dev
meson ../
ninja install

results matching ""

    No results matching ""