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

Error when trying to install on archlinux #4083

Open
nipnipj opened this issue Jun 24, 2024 · 4 comments
Open

Error when trying to install on archlinux #4083

nipnipj opened this issue Jun 24, 2024 · 4 comments

Comments

@nipnipj
Copy link

nipnipj commented Jun 24, 2024

The following error appears when trying to install on archlinux:

[ 24%] Linking CXX static library libRtspServer.a
[ 24%] Built target RtspServer
[ 25%] Building CXX object src/CMakeFiles/zm.dir/zm_analysis_thread.cpp.o
In file included from /home/cuysaurus/zoneminder/src/zoneminder-1.36.33/src/zm_monitor.h:24,
                 from /home/cuysaurus/zoneminder/src/zoneminder-1.36.33/src/zm_analysis_thread.cpp:3:
/home/cuysaurus/zoneminder/src/zoneminder-1.36.33/src/zm_camera.h: In member function ‘int Camera::getChannels()’:
/home/cuysaurus/zoneminder/src/zoneminder-1.36.33/src/zm_camera.h:111:51: error: ‘AVCodecParameters’ {aka ‘struct AVCodecParameters’} has no member named ‘channels’
  111 |     return mAudioStream ? mAudioStream->codecpar->channels : -1;
      |                                                   ^~~~~~~~
make[2]: *** [src/CMakeFiles/zm.dir/build.make:76: src/CMakeFiles/zm.dir/zm_analysis_thread.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:484: src/CMakeFiles/zm.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Copy link

welcome bot commented Jun 24, 2024

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

@nipnipj nipnipj changed the title Erro when trying to install on archlinux Error when trying to install on archlinux Jun 24, 2024
@synthead
Copy link

This seems related to #3983.

After upgrading on Arch, I get this:

$ ldd /usr/bin/zmc
	linux-vdso.so.1 (0x000072f32d9b2000)
	libz.so.1 => /usr/lib/libz.so.1 (0x000072f32d980000)
	libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x000072f32cb64000)
	libgnutls.so.30 => /usr/lib/libgnutls.so.30 (0x000072f32c96f000)
	libpcre.so.1 => /usr/lib/libpcre.so.1 (0x000072f32d905000)
	libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x000072f32c7de000)
	libmariadb.so.3 => /usr/lib/libmariadb.so.3 (0x000072f32c798000)
	libavformat.so.60 => not found
	libavcodec.so.60 => not found
	libavutil.so.58 => not found
	libswscale.so.7 => not found
	libswresample.so.4 => not found
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x000072f32c400000)
	libm.so.6 => /usr/lib/libm.so.6 (0x000072f32c6ad000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x000072f32c3d3000)
	libc.so.6 => /usr/lib/libc.so.6 (0x000072f32c1e7000)
	/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x000072f32d9b4000)
	libp11-kit.so.0 => /usr/lib/libp11-kit.so.0 (0x000072f32c051000)
	libidn2.so.0 => /usr/lib/libidn2.so.0 (0x000072f32c68b000)
	libunistring.so.5 => /usr/lib/libunistring.so.5 (0x000072f32bea1000)
	libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0x000072f32be8a000)
	libnettle.so.8 => /usr/lib/libnettle.so.8 (0x000072f32be33000)
	libhogweed.so.6 => /usr/lib/libhogweed.so.6 (0x000072f32bdea000)
	libgmp.so.10 => /usr/lib/libgmp.so.10 (0x000072f32bd44000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x000072f32bd1c000)
	libssl.so.3 => /usr/lib/libssl.so.3 (0x000072f32bc42000)
	libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x000072f32b600000)
	libffi.so.8 => /usr/lib/libffi.so.8 (0x000072f32bc37000)

@connortechnology
Copy link
Member

Your ffmpeg libraries are too new. There are fixes in the release-1.36 branch

@synthead
Copy link

If there are fixes available, can a new release be prioritized? As of this writing, the only way to use ZoneMinder with Arch (aside from Docker, etc.) is to use downgraded packages. It'd be great if this was seamless 🙂

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

No branches or pull requests

3 participants