Make error with released version

Forum for questions and support relating to the 1.24.x releases only.
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

Make error with released version

Post by timf »

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 ? :-)
Last edited by timf on Tue Feb 10, 2009 5:18 am, edited 2 times in total.
mgob
Posts: 8
Joined: Tue Mar 18, 2008 7:47 pm

Post by mgob »

I'm having the same issue, attempting to remedy now.

-Scott
mgob
Posts: 8
Joined: Tue Mar 18, 2008 7:47 pm

Post by mgob »

Okay I've tried rolling back ffmpeg prior to Jan 1 '09 due to a change there that could have affected this but no change. Not sure what's up with this.

Help?

-S
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

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 :)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

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
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Post by nuck »

Phil - Right you are. I just installed the latest ffmpeg and zm built fine.
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

Thanks for the heads up. I'll take note of this and upgrade ffmpeg once again and roll it all into an update for my dvd.
mgob
Posts: 8
Joined: Tue Mar 18, 2008 7:47 pm

Post by mgob »

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
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

Same here....

Post by timf »

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 !
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Same here....

Post by cordel »

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.

What is it with ffmpeg anyway ? Always seems to cause problems :-) Guess they're always 'improving' it !
Gets a new flashy shirt daily :lol:

You can down load the specific snv revision with -r. I'll be back later tonight to have a look.
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

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.
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Re: Same here....

Post by nuck »

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.
Got any old headers kicking around that aren't but updated with the new install of ffmpeg?

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.
What is it with ffmpeg anyway ? Always seems to cause problems :-) Guess they're always 'improving' it !
Been quite a moving target of late....
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You might consider putting it up on a torrent.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

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
Did you remember to 'make install-lib'?
Phil
timf
Posts: 132
Joined: Mon Mar 21, 2005 4:07 pm
Location: Lytham St.Annes Lancs.

make install-lib

Post by timf »

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 !
Locked