在Ubuntu上更新cxImage,有使用包管理器和从源代码编译安装两种方法:
sudo apt update
更新软件包列表,再执行sudo apt install --only-upgrade libcximage-dev
来更新cxImage库。git clone https://github.com/cximage/cximage.git
克隆源代码仓库,然后进入仓库目录cd cximage
,切换到主分支git checkout master
,拉取最新更改git pull origin master
,安装依赖库sudo apt-get install build-essential cmake libpng-dev libjpeg-dev
,最后通过mkdir build
、cd build
、cmake ..
、make
、sudo make install
完成编译安装。