Make error with released version
Make error with released version
So just for kicks I down loaded the released version and went about building it using the same method as the beta which has worked in the past for me (2740 built a couple of days ago).
But now I get a make error. I have the latest svn version of ffmpeg installed and a clean configure from:
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --enable-debug=yes --with-webgroup=www-data --with-webuser=www-data ZM_SSL_LIB=openssl
I've searched for `avformat_alloc_context' - but to no avail - looks like I'm going back to my working 2740 beta version for a while....
Error message:
zm_rtsp.o: In function `RtspThread':
/home/tim/downloads/ZoneMinder-1.24.0/src/zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'
/home/tim/downloads/ZoneMinder-1.24.0/src/zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/home/tim/downloads/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tim/downloads/ZoneMinder-1.24.0'
make: *** [all] Error 2
Any ideas as to what I've screwed up this time ?
But now I get a make error. I have the latest svn version of ffmpeg installed and a clean configure from:
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local/bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --enable-debug=yes --with-webgroup=www-data --with-webuser=www-data ZM_SSL_LIB=openssl
I've searched for `avformat_alloc_context' - but to no avail - looks like I'm going back to my working 2740 beta version for a while....
Error message:
zm_rtsp.o: In function `RtspThread':
/home/tim/downloads/ZoneMinder-1.24.0/src/zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'
/home/tim/downloads/ZoneMinder-1.24.0/src/zm_rtsp.cpp:183: undefined reference to `avformat_alloc_context'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/home/tim/downloads/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tim/downloads/ZoneMinder-1.24.0'
make: *** [all] Error 2
Any ideas as to what I've screwed up this time ?
Last edited by timf on Tue Feb 10, 2009 5:18 am, edited 2 times in total.
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany
I had time some time this morning before heading out the door to manually upgrade the DVD I put out. I'll have a step by step or a download that people can grab and bring their DVD up to the stable release this evening. Worse case if the update doesn't work for whatever reason you could reinstall the DVD, but it works here on my end and gives you a nice clean install.
Just understand this update will wipe your zm database and all your settings and start you fresh with the newest build.
If you getting the error that is being mentioned, commend line 183 in zm_rtsp.cpp out. It worked for me, not really sure what the result would be, but everything installed and works. Hope this helps
Just understand this update will wipe your zm database and all your settings and start you fresh with the newest build.
If you getting the error that is being mentioned, commend line 183 in zm_rtsp.cpp out. It worked for me, not really sure what the result would be, but everything installed and works. Hope this helps
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
It appears that the avformat_alloc_context functions are very recently added. I only noticed the deprecation of the previous av_alloc_format_context equivalent yesterday or the day before. So you will need to make sure your ffmpeg is bang up to date I think before it will build. The alternative is just to rename the avformat_alloc_context calls to av_alloc_format_context in zm_rtsp.cpp however there were other changes I had to make to build with the latest ffmpeg also so updating it to the most recent (or r17098) which I was using would be easiest.
Phil
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany
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
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
Same here....
latest ffmpeg and still chokes ZM at the same point.
At least I'm thinking I'm getting the latest ffmpeg - will check later today.
What is it with ffmpeg anyway ? Always seems to cause problems Guess they're always 'improving' it !
At least I'm thinking I'm getting the latest ffmpeg - will check later today.
What is it with ffmpeg anyway ? Always seems to cause problems Guess they're always 'improving' it !
Re: Same here....
Gets a new flashy shirt dailytimf wrote:latest ffmpeg and still chokes ZM at the same point.
At least I'm thinking I'm getting the latest ffmpeg - will check later today.
What is it with ffmpeg anyway ? Always seems to cause problems Guess they're always 'improving' it !
You can down load the specific snv revision with -r. I'll be back later tonight to have a look.
-
- Posts: 381
- Joined: Sat Jan 17, 2009 7:49 pm
- Location: Germany
Just got home and have built from scratch Zoneminder stable with newest ffmpeg with no errors at all. I was rushed this morning when I tried and got the same error as others, but now that I had a little more time I started from the beginning and have everything working with Kubuntu 8.04. I didn't have to edit or modify anything, it just installed.
I'm uploading a new DVD to reflect this newest build and I would like to get some people to try out some of these new cam's and see how they work. Wish I could say what I did different then you guys, but as of 10 mins ago it all went together perfect.
Give it till this evening or early tomorrow and I'll have a link. My bandwidth is getting pounded by offering this DVD.
I'm uploading a new DVD to reflect this newest build and I would like to get some people to try out some of these new cam's and see how they work. Wish I could say what I did different then you guys, but as of 10 mins ago it all went together perfect.
Give it till this evening or early tomorrow and I'll have a link. My bandwidth is getting pounded by offering this DVD.
Re: Same here....
Got any old headers kicking around that aren't but updated with the new install of ffmpeg?timf wrote:latest ffmpeg and still chokes ZM at the same point.
At least I'm thinking I'm getting the latest ffmpeg - will check later today.
If you're using ccache try issuing ccache -C perhaps, or uninstalling ccache altogether.
I dunno what's getting you, I'm just throwing ideas out there.
Been quite a moving target of late....What is it with ffmpeg anyway ? Always seems to cause problems Guess they're always 'improving' it !
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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
Phil
make install-lib
Yes, in my case I had run make install-lib and ffmpeg appeared to install ok.
This was on a fresh ubuntu 8.10 so no old legacy ffmpeg stuff to pollute the system.
I'll repeat the process again this evening on another fresh install of Ubuntu 8.10 and see what happens - I have several hard drives prepared for this type of fun !
This was on a fresh ubuntu 8.10 so no old legacy ffmpeg stuff to pollute the system.
I'll repeat the process again this evening on another fresh install of Ubuntu 8.10 and see what happens - I have several hard drives prepared for this type of fun !