You are not logged in.

#1 2012-05-19 22:32:29

tritron4
Member
Registered: 2012-04-14
Posts: 153

libavcodec.a missing

After latest updates zoneminder stoped working. I had compiled ffmpeg-git but it lacks  libavcodec.a but libav provides it Without  libavcodec.a other libav*.a I cant recompile zoneminder. without it. I hope somone can point me to to were I can find libavcodec.a and recompile zoneminder

Offline

#2 2012-05-19 23:08:54

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: libavcodec.a missing

The Arch version uses the --disable-static flag when building. If you need static libraries, you'll need to recompile with --enable-static, which may be the default if not added.

Last edited by skottish (2012-05-19 23:09:25)

Offline

#3 2012-05-20 00:21:32

tritron4
Member
Registered: 2012-04-14
Posts: 153

Re: libavcodec.a missing

When i attempt to compile zoneminder it complaints about missing libav***.a fies I get error messages
In file included from zm_local_camera.cpp:24:0:
zm_local_camera.h:101:5: error: 'PixelFormat' does not name a type
zm_local_camera.h:102:5: error: 'PixelFormat' does not name a type
zm_local_camera.h:103:12: error: 'AVFrame' does not name a type
zm_local_camera.cpp:44:8: error: 'PixelFormat' does not name a type
zm_local_camera.cpp:259:1: error: 'AVFrame' does not name a type
zm_local_camera.cpp: In constructor 'LocalCamera::LocalCamera(int, const string&, int, int, const string&, int, int, int, int, int, int, int, bool)':
zm_local_camera.cpp:324:9: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:324:39: error: 'PIX_FMT_GRAY8' was not declared in this scope
zm_local_camera.cpp:324:53: error: 'PIX_FMT_RGB24' was not declared in this scope
zm_local_camera.cpp:325:9: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:325:79: error: 'getFfPixFormatFromV4lPalette' was not declared in this scope
zm_local_camera.cpp: In member function 'void LocalCamera::Initialise()':
zm_local_camera.cpp:341:27: error: 'AV_LOG_DEBUG' was not declared in this scope
zm_local_camera.cpp:341:40: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:343:27: error: 'AV_LOG_QUIET' was not declared in this scope
zm_local_camera.cpp:343:40: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:464:9: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:464:31: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:464:31: error: expected ';' before 'AVFrame'
zm_local_camera.cpp:488:18: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:488:36: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:490:58: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:493:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:493:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:493:187: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp: In static member function 'static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)':
zm_local_camera.cpp:774:22: error: 'PATH_MAX' was not declared in this scope
zm_local_camera.cpp:779:21: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:781:22: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:782:29: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:799:67: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:801:54: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:811:92: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:936:91: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:961:82: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp: In member function 'virtual int LocalCamera::Capture(Image&)':
zm_local_camera.cpp:1643:16: error: 'AVFrame' does not name a type
zm_local_camera.cpp:1645:14: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:1645:32: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:1649:146: error: 'SWS_BICUBIC' was not declared in this scope
zm_local_camera.cpp:1649:176: error: 'sws_getCachedContext' was not declared in this scope
zm_local_camera.cpp:1653:17: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1653:50: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:1656:85: error: 'avpicture_get_size' was not declared in this scope
zm_local_camera.cpp:1657:74: error: 'av_malloc' was not declared in this scope
zm_local_camera.cpp:1660:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:1660:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:1660:103: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:1662:46: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:1662:137: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1662:176: error: 'sws_scale' was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/home/dev/zoneminder/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dev/zoneminder/src/ZoneMinder-1.25.0'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().

Offline

#4 2012-05-20 01:03:53

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: libavcodec.a missing

Please use code tags for that. You can probably tell zoneminder to use the all-in-one libavcodec.so by editing the configure.in or configure.ac file. Change the individual libav* references to just say libavcodec. Or an even faster hack would be making symlinks in your /usr/lib.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#5 2012-05-20 01:06:49

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: libavcodec.a missing

Please use code tags when posting output of things. It helps a lot.

I missed the ffmpeg-git part, so I apologize for that.

How did you install FFmpeg? The ffmpeg-git package from AUR builds the static libraries ( *.a files ).

Offline

#6 2012-05-20 01:40:09

tritron4
Member
Registered: 2012-04-14
Posts: 153

Re: libavcodec.a missing

I compiled ffmpeg-git from aur with shared libraries  and also x264-git with shared libraries. I had compiled and installed zoneminder about two months ago .25 version from aur.

checking for x264_predict_16x16_init in -lx264... yes
checking for av_malloc in -lavutil... yes
checking for av_image_copy in -lavcore... no
checking for avcodec_init in -lavcodec... no
configure: WARNING: libavcodec.a is required for MPEG streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
checking for avdevice_register_all in -lavdevice... no
configure: WARNING: libavdevice.a may be required for MPEG streaming

After updating my system my zoneminder stoped working and database got messed up also.
I tried to compile with ffmpeg from arch linux repository and had same errors.

Offline

#7 2012-05-20 02:39:36

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: libavcodec.a missing

tritron4 wrote:

I compiled ffmpeg-git from aur with shared libraries  and also x264-git with shared libraries. I had compiled and installed zoneminder about two months ago .25 version from aur.

checking for x264_predict_16x16_init in -lx264... yes
checking for av_malloc in -lavutil... yes
checking for av_image_copy in -lavcore... no
checking for avcodec_init in -lavcodec... no
configure: WARNING: libavcodec.a is required for MPEG streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
checking for avdevice_register_all in -lavdevice... no
configure: WARNING: libavdevice.a may be required for MPEG streaming

After updating my system my zoneminder stoped working and database got messed up also.
I tried to compile with ffmpeg from arch linux repository and had same errors.

These errors are just telling you that ZM isn't going to have MPEG streaming. This isn't where you're failing.

From revisiting your original post, I'm guessing that you have a mismatch of a newer ABI from FFmpeg and a version of ZM that's looking for an older one. Have you contacted the ZM community or searched their forums at all?

Offline

Board footer

Powered by FluxBB