Error compiling Zoneminder
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- wildpossum
- Posts: 38
- Joined: Wed Jul 04, 2007 5:40 am
- Location: Sydney - AUSTRALIA
Same problem Ubuntu 8.04 (I lied, I'm an idiot)
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
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
Solved (!?)
Hi,
I had the same problem / message and solved it this way :
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.
By the way - i am a newby to zoneminder and I am quite excited about the capabilities.... (especially with x10).
Cheers
Falk
I had the same problem / message and solved it this way :
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.
By the way - i am a newby to zoneminder and I am quite excited about the capabilities.... (especially with x10).
Cheers
Falk
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?
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?