Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed when prerequisites #1761

Open
umeshshende opened this issue Jan 11, 2025 · 4 comments
Open

Installation failed when prerequisites #1761

umeshshende opened this issue Jan 11, 2025 · 4 comments
Assignees
Labels
investigating Being checked

Comments

@umeshshende
Copy link

umeshshende commented Jan 11, 2025

Describe the bug
Installation failed when prerequisites

To Reproduce
Steps to reproduce the behavior:

  1. curl -LOJ https://github.com/AirenSoft/OvenMediaEngine/archive/v0.16.0.tar.gz
  2. tar xvfz OvenMediaEngine-0.16.0.tar.gz
  3. sudo apt-get update
  4. OvenMediaEngine-0.16.0/misc/prerequisites.sh

Expected behavior
It should install Oven without failed

Logs

./libavcodec/x86/mathops.h: Assembler messages:
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
CC      libavformat/asfcrypt.o
CC      libavformat/asfdec_f.o
make: *** [ffbuild/common.mak:78: libavformat/adtsenc.o] Error 1
make: *** Waiting for unfinished jobs....
libavformat/asfcrypt.c: In function ‘multiswap_enc’:
libavformat/asfcrypt.c:118:11: warning: ‘multiswap_step’ reading 48 bytes from a region of size 24 [-Wstringop-overread]
  118 |     tmp = multiswap_step(keys + 6, b);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/asfcrypt.c:118:11: note: referencing argument 1 of type ‘const uint32_t[12]’ {aka ‘const unsigned int[12]’}
libavformat/asfcrypt.c:75:17: note: in a call to function ‘multiswap_step’
   75 | static uint32_t multiswap_step(const uint32_t keys[12], uint32_t v)
      |                 ^~~~~~~~~~~~~~
libavformat/asfcrypt.c: In function ‘multiswap_dec’:
libavformat/asfcrypt.c:139:11: warning: ‘multiswap_inv_step’ reading 48 bytes from a region of size 24 [-Wstringop-overread]
  139 |     b   = multiswap_inv_step(keys + 6, tmp);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/asfcrypt.c:139:11: note: referencing argument 1 of type ‘const uint32_t[12]’ {aka ‘const unsigned int[12]’}
libavformat/asfcrypt.c:87:17: note: in a call to function ‘multiswap_inv_step’
   87 | static uint32_t multiswap_inv_step(const uint32_t keys[12], uint32_t v)
      |                 ^~~~~~~~~~~~~~~~~~
STRIP   libswresample/x86/audio_convert.o
(ffmpeg) installation has failed.

Server (please complete the following information):

Player (please complete the following information):
NO need

Additional context
We simply follow below step for installation but its failed at prerequisites.sh

  1. curl -LOJ https://github.com/AirenSoft/OvenMediaEngine/archive/v0.16.0.tar.gz
  2. tar xvfz OvenMediaEngine-0.16.0.tar.gz
  3. sudo apt-get update
  4. OvenMediaEngine-0.16.0/misc/prerequisites.sh
@bchah
Copy link
Collaborator

bchah commented Jan 11, 2025

Try building on 22.04 - there are some dependencies that don't build on 24.xx yet.

@getroot getroot added the investigating Being checked label Jan 14, 2025
@umeshshende
Copy link
Author

Yes. it works on 20.04

@getroot
Copy link
Member

getroot commented Jan 14, 2025

We will support Utuntu 24 so I will leave this issue open for them.

@getroot getroot reopened this Jan 14, 2025
@Remboooo
Copy link

Remboooo commented Jan 21, 2025

This can be resolved by updating the ffmpeg dep. This required dropping the --disable-lzo flag as it is no longer supported.
I used 5.1.6 for this as it's currently the latest 5.x release. I did not dare upgrade to 6.x or 7.x as it will undoubtedly will break stuff.

diff --git a/misc/prerequisites.sh b/misc/prerequisites.sh
index 36593c9c..97adf1a7 100755
--- a/misc/prerequisites.sh
+++ b/misc/prerequisites.sh
@@ -13,7 +13,7 @@ OPUS_VERSION=1.3.1
 VPX_VERSION=1.11.0
 FDKAAC_VERSION=2.0.2
 NASM_VERSION=2.15.05
-FFMPEG_VERSION=5.0.1
+FFMPEG_VERSION=5.1.6
 JEMALLOC_VERSION=5.3.0
 PCRE2_VERSION=10.39
 OPENH264_VERSION=2.4.0
@@ -337,13 +337,14 @@ install_ffmpeg()
     fi

     # Build & Install
     (cd ${DIR} && PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig:${PREFIX}/lib64/pkgconfig:${PREFIX}/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} ./configure \
     --prefix="${PREFIX}" \
     --extra-cflags="-I${PREFIX}/include ${ADDI_CFLAGS}"  \
     --extra-ldflags="${ADDI_LDFLAGS} -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib " \
     --extra-libs=-ldl ${ADDI_EXTRA_LIBS} \
     ${ADDI_LICENSE} \
-    --disable-everything --disable-programs --disable-avdevice --disable-dwt --disable-lsp --disable-lzo --disable-faan --disable-pixelutils \
+    --disable-everything --disable-programs --disable-avdevice --disable-dwt --disable-lsp --disable-faan --disable-pixelutils \
     --enable-shared --enable-zlib --enable-libopus --enable-libvpx --enable-libfdk_aac --enable-libopenh264 --enable-openssl --enable-network --enable-libsrt --enable-dct --enable-rdft  ${ADDI_LIBS} \
     ${ADDI_HWACCEL} \
     --enable-ffmpeg \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating Being checked
Projects
None yet
Development

No branches or pull requests

5 participants