Build: Remove dependency on libavdevice
We currently don't use the library so don't depend on it.
This commit is contained in:
parent
3d34e6f177
commit
5c96eedac8
|
@ -38,7 +38,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: apt-get -qq install make cmake g++ default-libmysqlclient-dev libavdevice-dev libcurl4-gnutls-dev libvlc-dev libvncserver-dev libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl libpolkit-gobject-1-dev catch2 ${{ matrix.crypto_package }} ${{ matrix.jwt_package }}
|
run: >
|
||||||
|
apt-get -qq install make cmake g++
|
||||||
|
default-libmysqlclient-dev
|
||||||
|
libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev
|
||||||
|
libcurl4-gnutls-dev libvlc-dev libvncserver-dev
|
||||||
|
libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl
|
||||||
|
libpolkit-gobject-1-dev
|
||||||
|
catch2
|
||||||
|
${{ matrix.crypto_package }} ${{ matrix.jwt_package }}
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
- name: Configure
|
- name: Configure
|
||||||
|
|
|
@ -38,7 +38,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: apt-get -qq install make cmake g++ default-libmysqlclient-dev libavdevice-dev libcurl4-gnutls-dev libvlc-dev libvncserver-dev libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl libpolkit-gobject-1-dev ${{ matrix.crypto_package }} ${{ matrix.jwt_package }}
|
run: >
|
||||||
|
apt-get -qq install make cmake g++
|
||||||
|
default-libmysqlclient-dev
|
||||||
|
libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev
|
||||||
|
libcurl4-gnutls-dev libvlc-dev libvncserver-dev
|
||||||
|
libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl
|
||||||
|
libpolkit-gobject-1-dev
|
||||||
|
${{ matrix.crypto_package }} ${{ matrix.jwt_package }}
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
- name: Configure
|
- name: Configure
|
||||||
|
|
|
@ -24,7 +24,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: apt-get -qq install make cmake g++ default-libmysqlclient-dev libavdevice-dev libcurl4-gnutls-dev libvlc-dev libvncserver-dev libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl libpolkit-gobject-1-dev libssl-dev
|
run: >
|
||||||
|
apt-get -qq install make cmake g++
|
||||||
|
default-libmysqlclient-dev
|
||||||
|
libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev
|
||||||
|
libcurl4-gnutls-dev libvlc-dev libvncserver-dev
|
||||||
|
libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libwww-perl
|
||||||
|
libpolkit-gobject-1-dev
|
||||||
|
libssl-dev
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
- name: Configure
|
- name: Configure
|
||||||
|
|
|
@ -18,7 +18,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get -qq install libavdevice-dev libcurl4-gnutls-dev libvlc-dev libvncserver-dev libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl libpolkit-gobject-1-dev
|
run: >
|
||||||
|
sudo apt-get -qq install libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev
|
||||||
|
libcurl4-gnutls-dev libvlc-dev libvncserver-dev
|
||||||
|
libdate-manip-perl libdbd-mysql-perl libsys-mmap-perl
|
||||||
|
libpolkit-gobject-1-dev
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
- name: Configure
|
- name: Configure
|
||||||
|
|
|
@ -52,7 +52,7 @@ jobs:
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libavdevice-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libjwt-gnutls-dev
|
sudo apt-get install libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libjwt-gnutls-dev
|
||||||
sudo apt-get install libbz2-dev libcurl4-gnutls-dev libjpeg-turbo8-dev libturbojpeg0-dev
|
sudo apt-get install libbz2-dev libcurl4-gnutls-dev libjpeg-turbo8-dev libturbojpeg0-dev
|
||||||
sudo apt-get install default-libmysqlclient-dev libpcre3-dev libpolkit-gobject-1-dev libv4l-dev libvlc-dev
|
sudo apt-get install default-libmysqlclient-dev libpcre3-dev libpolkit-gobject-1-dev libv4l-dev libvlc-dev
|
||||||
sudo apt-get install libdate-manip-perl libdbd-mysql-perl libphp-serialization-perl libsys-mmap-perl
|
sudo apt-get install libdate-manip-perl libdbd-mysql-perl libphp-serialization-perl libsys-mmap-perl
|
||||||
|
|
|
@ -449,16 +449,6 @@ find_package(FFMPEG REQUIRED
|
||||||
set(CMAKE_REQUIRED_INCLUDES ${FFMPEG_avutil_INCLUDE_DIRS})
|
set(CMAKE_REQUIRED_INCLUDES ${FFMPEG_avutil_INCLUDE_DIRS})
|
||||||
check_include_file("libavutil/hwcontext.h" HAVE_LIBAVUTIL_HWCONTEXT_H)
|
check_include_file("libavutil/hwcontext.h" HAVE_LIBAVUTIL_HWCONTEXT_H)
|
||||||
|
|
||||||
find_package(FFMPEG COMPONENTS avdevice)
|
|
||||||
if(FFMPEG_avdevice_FOUND)
|
|
||||||
set(HAVE_LIBAVDEVICE 1)
|
|
||||||
set(HAVE_LIBAVDEVICE_AVDEVICE_H 1)
|
|
||||||
list(APPEND ZM_BIN_LIBS "${FFMPEG_avdevice_LIBRARIES}")
|
|
||||||
set(optlibsfound "${optlibsfound} AVDevice")
|
|
||||||
else()
|
|
||||||
set(optlibsnotfound "${optlibsnotfound} AVDevice")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(PATH_FFMPEG "")
|
set(PATH_FFMPEG "")
|
||||||
set(OPT_FFMPEG "no")
|
set(OPT_FFMPEG "no")
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ Maintainer: Isaac Connor <isaac@zoneminder.com>
|
||||||
Uploaders: Isaac Connor <isaac@zoneminder.com>
|
Uploaders: Isaac Connor <isaac@zoneminder.com>
|
||||||
Build-Depends: debhelper, sphinx-doc, dh-linktree, dh-apache2
|
Build-Depends: debhelper, sphinx-doc, dh-linktree, dh-apache2
|
||||||
,cmake
|
,cmake
|
||||||
,libavdevice-dev
|
|
||||||
,libavcodec-dev
|
,libavcodec-dev
|
||||||
,libavformat-dev
|
,libavformat-dev
|
||||||
,libavutil-dev
|
,libavutil-dev
|
||||||
|
|
|
@ -9,7 +9,6 @@ Build-Depends: debhelper (>= 9), cmake
|
||||||
, libjpeg8-dev | libjpeg-dev
|
, libjpeg8-dev | libjpeg-dev
|
||||||
, libpcre3-dev
|
, libpcre3-dev
|
||||||
, libavcodec-dev, libavformat-dev (>= 3:0.svn20090204), libswscale-dev (>= 3:0.svn20090204), libavutil-dev
|
, libavcodec-dev, libavformat-dev (>= 3:0.svn20090204), libswscale-dev (>= 3:0.svn20090204), libavutil-dev
|
||||||
, libavdevice-dev
|
|
||||||
, libv4l-dev (>= 0.8.3)
|
, libv4l-dev (>= 0.8.3)
|
||||||
, libbz2-dev
|
, libbz2-dev
|
||||||
, ffmpeg | libav-tools
|
, ffmpeg | libav-tools
|
||||||
|
@ -47,7 +46,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
|
||||||
,libnumber-bytes-human-perl
|
,libnumber-bytes-human-perl
|
||||||
,libfile-slurp-perl
|
,libfile-slurp-perl
|
||||||
, libpcre3
|
, libpcre3
|
||||||
, ffmpeg | libav-tools, libavdevice53 | libavdevice55 | libavdevice57
|
, ffmpeg | libav-tools
|
||||||
, rsyslog | system-log-daemon
|
, rsyslog | system-log-daemon
|
||||||
, netpbm
|
, netpbm
|
||||||
, zip
|
, zip
|
||||||
|
|
|
@ -8,7 +8,7 @@ Build-Depends: debhelper (>= 9), po-debconf (>= 1.0), autoconf, automake, libtoo
|
||||||
, libdate-manip-perl, libwww-perl
|
, libdate-manip-perl, libwww-perl
|
||||||
, libjpeg8-dev | libjpeg9-dev | libjpeg62-turbo-dev
|
, libjpeg8-dev | libjpeg9-dev | libjpeg62-turbo-dev
|
||||||
, libpcre3-dev
|
, libpcre3-dev
|
||||||
, libavcodec-ffmpeg-dev, libavformat-ffmpeg-dev, libswscale-ffmpeg-dev, libavutil-ffmpeg-dev, libavdevice-ffmpeg-dev
|
, libavcodec-ffmpeg-dev, libavformat-ffmpeg-dev, libswscale-ffmpeg-dev, libavutil-ffmpeg-dev
|
||||||
, libv4l-dev (>= 0.8.3)
|
, libv4l-dev (>= 0.8.3)
|
||||||
, libbz2-dev
|
, libbz2-dev
|
||||||
, libsys-mmap-perl
|
, libsys-mmap-perl
|
||||||
|
|
|
@ -5,7 +5,6 @@ Maintainer: Isaac Connor <isaac@zoneminder.com>
|
||||||
Uploaders: Isaac Connor <isaac@zoneminder.com>
|
Uploaders: Isaac Connor <isaac@zoneminder.com>
|
||||||
Build-Depends: debhelper (>= 9), dh-systemd, python3-sphinx, apache2-dev, dh-linktree, dh-systemd, dh-apache2
|
Build-Depends: debhelper (>= 9), dh-systemd, python3-sphinx, apache2-dev, dh-linktree, dh-systemd, dh-apache2
|
||||||
,cmake
|
,cmake
|
||||||
,libavdevice-dev (>= 6:10~)
|
|
||||||
,libavcodec-dev (>= 6:10~)
|
,libavcodec-dev (>= 6:10~)
|
||||||
,libavformat-dev (>= 6:10~)
|
,libavformat-dev (>= 6:10~)
|
||||||
,libavutil-dev (>= 6:10~)
|
,libavutil-dev (>= 6:10~)
|
||||||
|
|
|
@ -4,7 +4,6 @@ Priority: optional
|
||||||
Maintainer: Isaac Connor <isaac@zoneminder.com>
|
Maintainer: Isaac Connor <isaac@zoneminder.com>
|
||||||
Build-Depends: debhelper (>= 12), sphinx-doc, python3-sphinx, dh-linktree, dh-apache2
|
Build-Depends: debhelper (>= 12), sphinx-doc, python3-sphinx, dh-linktree, dh-apache2
|
||||||
,cmake
|
,cmake
|
||||||
,libavdevice-dev
|
|
||||||
,libavcodec-dev
|
,libavcodec-dev
|
||||||
,libavformat-dev
|
,libavformat-dev
|
||||||
,libavutil-dev
|
,libavutil-dev
|
||||||
|
|
|
@ -137,20 +137,6 @@ extern "C" {
|
||||||
( (LIBAVFORMAT_VERSION_MICRO < 100 && LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(a, b, c) ) || \
|
( (LIBAVFORMAT_VERSION_MICRO < 100 && LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(a, b, c) ) || \
|
||||||
(LIBAVFORMAT_VERSION_MICRO >= 100 && LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(a, d, e) ) )
|
(LIBAVFORMAT_VERSION_MICRO >= 100 && LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(a, d, e) ) )
|
||||||
|
|
||||||
// AVDEVICE
|
|
||||||
#if HAVE_LIBAVDEVICE_AVDEVICE_H
|
|
||||||
#include <libavdevice/avdevice.h>
|
|
||||||
|
|
||||||
/* LIBAVDEVICE_VERSION_CHECK checks for the right version of libav and FFmpeg
|
|
||||||
* a is the major version
|
|
||||||
* b and c the minor and micro versions of libav
|
|
||||||
* d and e the minor and micro versions of FFmpeg */
|
|
||||||
#define LIBAVDEVICE_VERSION_CHECK(a, b, c, d, e) \
|
|
||||||
( (LIBAVDEVICE_VERSION_MICRO < 100 && LIBAVDEVICE_VERSION_INT >= AV_VERSION_INT(a, b, c) ) || \
|
|
||||||
(LIBAVDEVICE_VERSION_MICRO >= 100 && LIBAVDEVICE_VERSION_INT >= AV_VERSION_INT(a, d, e) ) )
|
|
||||||
|
|
||||||
#endif /* HAVE_LIBAVDEVICE_AVDEVICE_H */
|
|
||||||
|
|
||||||
// SWSCALE
|
// SWSCALE
|
||||||
#include <libswscale/swscale.h>
|
#include <libswscale/swscale.h>
|
||||||
|
|
||||||
|
|
|
@ -34,8 +34,6 @@
|
||||||
#cmakedefine HAVE_LIBGNUTLS 1
|
#cmakedefine HAVE_LIBGNUTLS 1
|
||||||
#cmakedefine HAVE_LIBMYSQLCLIENT 1
|
#cmakedefine HAVE_LIBMYSQLCLIENT 1
|
||||||
#cmakedefine HAVE_MYSQL_H 1
|
#cmakedefine HAVE_MYSQL_H 1
|
||||||
#cmakedefine HAVE_LIBAVDEVICE 1
|
|
||||||
#cmakedefine HAVE_LIBAVDEVICE_AVDEVICE_H 1
|
|
||||||
#cmakedefine HAVE_LIBAVUTIL_HWCONTEXT_H 1
|
#cmakedefine HAVE_LIBAVUTIL_HWCONTEXT_H 1
|
||||||
#cmakedefine HAVE_LIBVLC 1
|
#cmakedefine HAVE_LIBVLC 1
|
||||||
#cmakedefine HAVE_VLC_VLC_H 1
|
#cmakedefine HAVE_VLC_VLC_H 1
|
||||||
|
|
Loading…
Reference in New Issue