zm_mpeg.cpp:308: undefined reference to `img_convert'

Support and queries relating to all previous versions of ZoneMinder
Locked
luk00
Posts: 4
Joined: Thu Oct 28, 2004 9:33 am

zm_mpeg.cpp:308: undefined reference to `img_convert'

Post by luk00 »

zm_mpeg.o(.text+0xa0b): In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned)':
/ZoneMinder-1.22.3/src/zm_mpeg.cpp:308: undefined reference to `img_convert'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/ZoneMinder-1.22.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/ZoneMinder-1.22.3'
make: *** [all] Error 2
[root@video /ZoneMinder-1.22.3]#


what can I do with this ?????
emo82
Posts: 21
Joined: Wed Oct 18, 2006 6:21 pm
Contact:

Post by emo82 »

what distr?
luk00
Posts: 4
Joined: Thu Oct 28, 2004 9:33 am

Post by luk00 »

2.0 PLD-linux kernel 2.6.16.38-1
Zm 1.22.3
emo82
Posts: 21
Joined: Wed Oct 18, 2006 6:21 pm
Contact:

Post by emo82 »

* apache2
* apache2-worker
* apache2-mod_perl
* apache2-mod_php5
* apache2-mod-apparmor
* php5
* php5-mysql
* mysql
* mysql-devel
* gcc
* gcc-c++
* libmpeg2
* libmpeg2-devel
* ffmpeg
* libffmpeg0
* libffmpeg0-devel
* libjpeg
* libjpeg-devel
* pcre-devel
* xawtv
* openssl-devel

Is everithing installed?

Sorry my english is not very good
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

img_convert is an ffmpeg function. Do you know which version of ffmpeg you have installed?
Phil
luk00
Posts: 4
Joined: Thu Oct 28, 2004 9:33 am

Post by luk00 »

All from list above I have, ffmpeg installed is...:

ffmpeg-0.4.9-3.20061204.2
ffmpeg-devel-0.4.9-3.20061204.2
ffmpeg-ffplay-0.4.9-3.20061204.2
ffmpeg-ffserver-0.4.9-3.20061204.2
ffmpeg-libs-0.4.9-3.20061204.2
ffmpeg-static-0.4.9-3.20061204.2
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Post by SyRenity »

Hi.

It seems as the img_* functions were deprecated by swscaler functions, and package maintainers began to use the "--enable-swscale" switch during compilations:
http://article.gmane.org/gmane.comp.vid ... mg+convert

A patch can be probably done to resolve this, but manual FFMPEG compilation (without the "--enable-swscale" switch) seems to be the best option so far.
ryan
Posts: 3
Joined: Thu May 17, 2007 5:52 pm

Post by ryan »

I had exacty the same issue when doing a fresh install of Zoneminder on Fedora 6.

Version 0.4.9-0.34.20070204 of the ffmpeg fixed the problem introduced with the "swcaler' previously. After fooling around downloading and building the latest ffmpeg from svn, I reverted to rpm building the src rpm and installing.

Here is a snipit from the ffmpeg changelog:
%changelog
* Sun Feb 4 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.4.9-0.34.20070204
- 2007-02-04 snapshot, enable libtheora.
- Make swscaler optional, disabled again by default (#1379).
Locked