Make error with released version
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany
Or maybe the same day several hours later? I installed this morning, same error as everyone else except I went into the src folder and commented line 183 on the file the error showed.
Then this evening started from the beginning again and did everything the same and got no errors at all. Very strange, but I've captured all my work and it's uploading now.
Then this evening started from the beginning again and did everything the same and got no errors at all. Very strange, but I've captured all my work and it's uploading now.
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.
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Well haven't they always changed that at some arbitrary phase of the solar system.
As I recall 6 years ago was "make installlib" a year and quarter later became "make installlibs" a year and 5 months afterward s "make install-lib", eight months after which became "make install-libs".
It's been about a couple years now so I think it's due to change again
I think they just want to make sure your running "./configure --help" before each build to see what your options are
As I recall 6 years ago was "make installlib" a year and quarter later became "make installlibs" a year and 5 months afterward s "make install-lib", eight months after which became "make install-libs".
It's been about a couple years now so I think it's due to change again
I think they just want to make sure your running "./configure --help" before each build to see what your options are
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
-
- Posts: 260
- Joined: Tue Aug 21, 2007 1:42 pm
- Location: Baltimore, MD
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
make install-libs did not.
FFMPEG_VERSION "SVN-r17388"
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany