以下仅为个人开发时候的笔记,如有侵权请联系1157301659@qq.com,欢迎借鉴与转载,如有问题欢迎评论
1 下载libopenshot源码
git clone https://github.com/OpenShot/libopenshot.git
git clone https://github.com/OpenShot/libopenshot-audio.git
2 安装依赖库
sudo add-apt-repository ppa:openshot.developers/libopenshot-daily
sudo apt-get update
sudo apt-get install openshot-qt \
cmake \
libx11-dev \
libasound2-dev \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavresample-dev \
libavutil-dev \
libfdk-aac-dev \
libfreetype6-dev \
libjsoncpp-dev \
libmagick++-dev \
libopenshot-audio-dev \
libswscale-dev \
libunittest++-dev \
libxcursor-dev \
libxinerama-dev \
libxrandr-dev \
libzmq3-dev \
pkg-config \
python3-dev \
qtbase5-dev \
qtmultimedia5-dev \
swig
3 安装libopenshot-audio
cd [libopenshot-audio repo folder]
mkdir build
cd build
cmake ../
make
make install
make install 会报错,是安装路径没有写入权限,只需要sudo chmod 777继续执行make install即可。
4 安装liboenshot之前需要安装依赖库
sudo apt-get install ruby
git clone https://github.com/catchorg/Catch2
mkdir build
cd build
cmake ..
make
sudo make install
sudo apt-get install doxgen
5 安装liboenshot
cd [libopenshot repo directory]
mkdir -p build
cd build
cmake ../
make
make test
make doc
make install
6 安装错误:CMake Error at /usr/local/lib/cmake/Catch2/Catch.cmake:193 (message):Cannot set more than one TEST_INCLUDE_FILE Call Stack (most recent call first):
只需注释Catch.cmake以下几行即可:
#else()
# message(FATAL_ERROR
# "Cannot set more than one TEST_INCLUDE_FILE"
#)