Skip to content

Commit

Permalink
Add avresample lib to cmakelists and enable build
Browse files Browse the repository at this point in the history
  • Loading branch information
zevarito committed May 23, 2018
1 parent 6d21295 commit 62ba1e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions erizo/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ set (LIBS ${LIBS} ${AVCODEC})
find_library(AVFORMAT avformat HINTS "${THIRD_PARTY_LIB}")
test_lib(${AVFORMAT})
set (LIBS ${LIBS} ${AVFORMAT})
find_library(AVRESAMPLE avresample HINTS "${THIRD_PARTY_LIB}")
test_lib(${AVRESAMPLE})
set (LIBS ${LIBS} ${AVRESAMPLE})

# LOG4CXX
find_library(LOG log4cxx)
Expand Down
4 changes: 2 additions & 2 deletions scripts/installMacDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ install_mediadeps(){
curl -O -L https://ffmpeg.org/releases/ffmpeg-3.4.2.tar.gz
tar -zxvf ffmpeg-3.4.2.tar.gz
cd ffmpeg-3.4.2
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libx264 --enable-libopus --disable-doc && \
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libx264 --enable-libopus --disable-doc --enable-avresample && \
make $FAST_MAKE -s V=0 && \
make install
check_result $?
Expand All @@ -194,7 +194,7 @@ install_mediadeps_nogpl(){
curl -O -L https://ffmpeg.org/releases/ffmpeg-3.4.2.tar.gz
tar -zxvf ffmpeg-3.4.2.tar.gz
cd ffmpeg-3.4.2
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-libvpx --enable-libopus --disable-doc && \
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-libvpx --enable-libopus --disable-doc --enable-avresample && \
make $FAST_MAKE -s V=0 && \
make install
check_result $?
Expand Down
4 changes: 2 additions & 2 deletions scripts/installUbuntuDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ install_mediadeps(){
curl -O -L https://ffmpeg.org/releases/ffmpeg-3.4.2.tar.gz
tar -zxvf ffmpeg-3.4.2.tar.gz
cd ffmpeg-3.4.2
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libx264 --enable-libopus --disable-doc
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libx264 --enable-libopus --disable-doc --enable-avresample
make $FAST_MAKE -s V=0
make install
cd $CURRENT_DIR
Expand All @@ -179,7 +179,7 @@ install_mediadeps_nogpl(){
curl -O -L https://ffmpeg.org/releases/ffmpeg-3.4.2.tar.gz
tar -zxvf ffmpeg-3.4.2.tar.gz
cd ffmpeg-3.4.2
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libopus --disable-doc
PKG_CONFIG_PATH=${PREFIX_DIR}/lib/pkgconfig ./configure --prefix=$PREFIX_DIR --enable-shared --enable-gpl --enable-libvpx --enable-libopus --disable-doc --enable-avresample
make $FAST_MAKE -s V=0
make install
cd $CURRENT_DIR
Expand Down

0 comments on commit 62ba1e0

Please sign in to comment.