首先安装cmake:
sudo apt install cmake
cmake --version然后这个输出正常就装好了
然后安装ffmpeg:
tar xvzf n4.4.tar.gz
cd FFmpeg-n4.4
chmod +x configure
./configure --enable-gpl --enable-nonfree --enable-libx264 --enable-debug --disable-optimizations --enable-shared --enable-pthreads --enable-version3 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
make -j16 (-j16的作用是快一点,多核处理)
sudo make install
不成功的话,加一个环境变量:sudo gedit /etc/profile
然后安装libssh:
tar xvf libssh-0.8.7.tar.xz
cd libssh-0.8.7
mkdir build
cd build
cmake ..
make
sudo make install
不成功的话:
把之前的clean:make clean
安装libtool: sudo apt-get install libtool
sudo apt-get install libssh-dev