我尝试从源代码构建并下载 PPA,但都不起作用,因为它尚未升级到 15.04,那么是否可以在 15.04 上安装 slowmoVideo?
链接如下http://slowmovideo.granjow.net/download.php
CMAKE 错误:
asher@Asher-Dell-PC:~/slowmoVideo/build$ cmake -DENABLE_TESTS=FALSE ../src
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using qt5
CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
Could not find a package configuration file provided by "Qt5Script" with
any of the following names:
Qt5ScriptConfig.cmake
qt5script-config.cmake
Add the installation prefix of "Qt5Script" to CMAKE_PREFIX_PATH or set
"Qt5Script_DIR" to a directory containing one of the above files. If
"Qt5Script" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:64 (find_package)
CMake Warning at CMakeLists.txt:64 (find_package):
Found package configuration file:
/usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake
but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT
FOUND. Reason given by package:
Failed to find Qt5 component "Script" config file at
"/usr/lib/x86_64-linux-gnu/cmake/Qt5Script/Qt5ScriptConfig.cmake"
Qt libraries found at : Qt5::Gui /
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'libavformat'
-- found libavformat, version 56.1.0
-- checking for module 'libavcodec'
-- found libavcodec, version 56.1.0
-- checking for module 'libavutil'
-- found libavutil, version 54.3.0
-- checking for module 'libswscale'
-- found libswscale, version 3.0.0
-- checking: avformat.h
-- /usr/include/libavformat
-- checking: avcodec.h
-- /usr/include/libavcodec
-- checking: avutil.h
-- /usr/include/libavutil
-- checking: swscale.h
-- /usr/include/libswscale
-- FFMPEG libraries are at /usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so
CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreMacros.cmake:273 (find_package):
Could not find a package configuration file provided by "Qt5Script" with
any of the following names:
Qt5ScriptConfig.cmake
qt5script-config.cmake
Add the installation prefix of "Qt5Script" to CMAKE_PREFIX_PATH or set
"Qt5Script_DIR" to a directory containing one of the above files. If
"Qt5Script" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:78 (qt5_use_modules)
slowmoVideo/project/CMakeLists.txt:56 (qt_use_modules)
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreMacros.cmake:275 (message):
Can not use "Script" module which has not yet been found.
Call Stack (most recent call first):
CMakeLists.txt:78 (qt5_use_modules)
slowmoVideo/project/CMakeLists.txt:56 (qt_use_modules)
-- Configuring incomplete, errors occurred!
See also "/home/asher/slowmoVideo/build/CMakeFiles/CMakeOutput.log".
答案1
在 Ubuntu 15.04 上,源代码编译应该可以正常工作。
安装构建工具:
sudo apt-get install build-essential cmake git libavformat-dev libavcodec-dev libswscale-dev libqt4-dev freeglut3-dev libglew1.5-dev libsdl1.2-dev libjpeg-dev libopencv-video-dev libopencv-highgui-dev libopencv-dev
安装
ffmpeg
库:sudo apt-get install ffmpeg
从源代码编译
slowmoVideo
:git clone git://github.com/slowmoVideo/slowmoVideo.git cd slowmoVideo/ mkdir build cd build/ cmake -DENABLE_TESTS=FALSE ../src make
使用以下方式安装
checkinstall
:sudo apt-get install checkinstall sudo checkinstall
为什么
checkinstall
?CheckInstall 会跟踪通过“make install”或同等命令安装的所有文件。它会创建一个 .deb 包并将其添加到已安装包数据库中。这样以后就可以轻松删除包。— Ubuntu 维基