Error compiling Zoneminder

Support and queries relating to all previous versions of ZoneMinder
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I am at a bit of a loss as the definition of the function in your headers is the same as mine. You are compiling 1.23.1 from source against those files?
Phil
User avatar
wildpossum
Posts: 38
Joined: Wed Jul 04, 2007 5:40 am
Location: Sydney - AUSTRALIA

Post by wildpossum »

Yes, I am compiling from source.
Grahame
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Same problem Ubuntu 8.04 (I lied, I'm an idiot)

Post by coke »

Edit: Ok, for the record, changing line 280 did the trick just fine on 8.0.4. Changing a line that looks similar to but isn't 280, on the other hand, isn't useful. :)


I'm having the same issue. I'm really hoping this to be my first successful ZM source compile and actually have ffmpeg enabled this time around. Any clues? I've tried editing line 280 as suggested, that didn't help. I uninstalled ffmpeg and reinstalled from latest SVN.

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure
make
make install
cd ..

./configure --with-webdir=/var/www --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local
make


Results in

zm_mpeg.cpp: In destructor ‘VideoStream::~VideoStream()’:
zm_mpeg.cpp:281: error: cannot convert ‘ByteIOContext’ to ‘ByteIOContext*’ for argument ‘1’ to ‘int url_fclose(ByteIOContext*)’
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)’:
zm_mpeg.cpp:325: warning: ‘img_convert’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2575)
zm_mpeg.cpp:325: warning: ‘img_convert’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2575)
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/home/george/ZoneMinder-1.23.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/george/ZoneMinder-1.23.3'
make: *** [all] Error 2
nachbar
Posts: 5
Joined: Tue May 15, 2007 4:03 am

Post by nachbar »

I am upgrading from ZoneMinder 1.22.3 to 1.23.3, and also have the same issue. I had ffmpeg installed and working on 1.22.3 .

Still no official solution to this problem.
falk
Posts: 1
Joined: Fri Aug 15, 2008 3:55 pm

Solved (!?)

Post by falk »

Hi,

I had the same problem / message and solved it this way :lol: :

when 'make install' for ffmpeg some new folders have being created in usr/local/include like
- libavcodec
- libavdevice
- libavformat
- libavutil

these folders now contain new versions of header-files compared to those that used to be in my /usr/local/include/ffmpeg folder (older installation from 2006 of ffmpeg). Now, when compiling zoneminder, the old header-files have been linked in by the compiler and caused this problem.

Solution:
I just copied the header-files from the new folders to the ffmpeg folder and achieved a clean compile (and a working zoneminder at the end).
Hope that helps. :roll:

By the way - i am a newby to zoneminder and I am quite excited about the capabilities.... (especially with x10).

Cheers
Falk
koalas
Posts: 9
Joined: Wed Dec 17, 2008 1:19 am

Post by koalas »

I got the same error myself.

CentOS 5, all the latest updates that I'm aware of, installing 1.23.3 from source.

I added the exclamation point to the zm_mpeg as was suggested, and that worked for me ... or at least it compiled ;)

Anyway, I didn't install ffmpeg from subversion, I installed it from the package manager... is that a problem?

Did I miss out on some better configuration?
Locked