Posted: Tue Feb 10, 2009 5:56 pm
It should be relatviely easy to track down just by grepping for av_alloc_format_context and avformat_alloc_context in the ffmpeg build directories and/or install dirs.
Perhaps I'm a n00b but:zoneminder wrote:Did you remember to 'make install-lib'?mgob wrote:Hrm, when I attempted my build last night it was against the latest and greatest FFMPEG but perhaps I had checked out a dud version. I'll try again today.
Edit:
Still no joy for me:
zm_rtsp.cpp:183: error: ‘avformat_alloc_context’ was not declared in this scope
zm_rtsp.cpp: In member function ‘virtual int RtspThread::run()’:
[root@dvr ZoneMinder]# ffmpeg
FFmpeg version SVN-r17132, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-postproc --enable-swscale --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug--disable-optimizations --disable-stripping
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.14. 0 / 52.14. 0
libavformat 52.26. 0 / 52.26. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 3. 0 / 0. 3. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Feb 10 2009 09:06:19, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)
At least one output file must be specified
Code: Select all
[root@dvr ffmpeg]# make install-lib
make: *** No rule to make target `install-lib'. Stop.
Code: Select all
diff -urN ZoneMinder-1.24.0.old//src/zm_rtsp.cpp ZoneMinder-1.24.0//src/zm_rtsp.cpp
--- ZoneMinder-1.24.0.old//src/zm_rtsp.cpp 2009-02-09 14:43:19.000000000 +0000
+++ ZoneMinder-1.24.0//src/zm_rtsp.cpp 2009-02-15 19:15:23.629245785 +0000
@@ -180,7 +180,7 @@
else
mUrl += '/'+mPath;
}
- mFormatContext = avformat_alloc_context();
+ mFormatContext = av_alloc_format_context();
mSsrc = rand();
error: 'avformat_alloc_context' was not declared in this scope
This worked for me.timtim wrote:Try this if you got the following error:Code: Select all
diff -urN ZoneMinder-1.24.0.old//src/zm_rtsp.cpp ZoneMinder-1.24.0//src/zm_rtsp.cpp --- ZoneMinder-1.24.0.old//src/zm_rtsp.cpp 2009-02-09 14:43:19.000000000 +0000 +++ ZoneMinder-1.24.0//src/zm_rtsp.cpp 2009-02-15 19:15:23.629245785 +0000 @@ -180,7 +180,7 @@ else mUrl += '/'+mPath; } - mFormatContext = avformat_alloc_context(); + mFormatContext = av_alloc_format_context(); mSsrc = rand();
error: 'avformat_alloc_context' was not declared in this scope