1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 07:16:48 -04:00

DATV demod: include it only if FFmpeg > 3.1 is installed

This commit is contained in:
f4exb 2018-06-14 18:01:02 +02:00
parent 1eb8716a9f
commit d17775f5e1
2 changed files with 15 additions and 2 deletions

View File

@ -351,6 +351,13 @@ Install cmake version 3:
- `sudo apt-get remove cmake` (if already installed)
- `sudo apt-get install cmake`
<h3>Prerequisites for 16.04 LTS</h3>
You need to install the ffmpeg v.3 suite. Therefore you will need to add this PPA to the sources list using this command:
`sudo add-apt-repository ppa:jonathonf/ffmpeg-3`
Then do `sudo apt-get update` and go to the next step. Alternatively if you have an older version of ffmpeg suite already installed just do `sudo apt-get dist-upgrde`.
<h3>With newer versions just do:</h3>
- `sudo apt-get install cmake g++ pkg-config libfftw3-dev libqt5multimedia5-plugins qtmultimedia5-dev qttools5-dev qttools5-dev-tools libqt5opengl5-dev qtbase5-dev libusb-1.0 librtlsdr-dev libboost-all-dev libasound2-dev pulseaudio libnanomsg-dev libopencv-dev libsqlite3-dev libxml2-dev bison flex ffmpeg libavcodec-dev libavformat-dev`

View File

@ -15,8 +15,14 @@ if(LIBDSDCC_FOUND AND LIBMBE_FOUND)
endif(LIBDSDCC_FOUND AND LIBMBE_FOUND)
find_package(FFmpeg)
if(FFMPEG_FOUND)
add_subdirectory(demoddatv)
if (FFMPEG_FOUND)
# You can only get FFmpeg version from the command line
EXECUTE_PROCESS(COMMAND ffmpeg -version COMMAND grep ffmpeg COMMAND cut -d\ -f3 COMMAND tr -d '\n' OUTPUT_VARIABLE FFMPEG_VERSION)
message(STATUS "FFmpeg version ${FFMPEG_VERSION} found")
if(FFMPEG_VERSION VERSION_GREATER "3.1")
message(STATUS "Include demoddatv")
add_subdirectory(demoddatv)
endif()
endif()
if (BUILD_DEBIAN)