zm_mpeg.cpp:386:77: error: ‘av_rescale_q’ was not declared

Forum for questions and support relating to the 1.25.x releases only.
Locked
spacegoat
Posts: 3
Joined: Mon Nov 28, 2011 1:09 am

zm_mpeg.cpp:386:77: error: ‘av_rescale_q’ was not declared

Post by spacegoat »

Hi, my make error is :
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)’:
zm_mpeg.cpp:386:77: error: ‘av_rescale_q’ was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/home/adrfhi/bin/source/ZoneMinder-1.25.0/src'
My environment is:
Linux sabayon 3.1.0-sabayon #1 SMP Sat Nov 12 08:03:21 UTC 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux

My config command was:
./configure --with-libarch=lib64 --with-ffmpeg=/usr/bin --with-mysql --with-extralibs="-lmp3lame" --with-webdir=/var/wwww/localhost/htdocs \
--with-cgidir=/var/www/localhost/cgi-bin --with-webuser=nginx --with-webgroup=nginx --with-webhost=localhost \
--disable-debug --disable-crashtrace --enable-mmap=no
FYI. Prior to the above I had to use the
CPPFLAGS=-D__STDC_CONSTANT_MACROS
fix from the FAQ to solve
libavutil/avutil.h: present but cannot be compiled
messages.

Your advice would be much appreciated.
christophe_y2k
Posts: 102
Joined: Mon Oct 12, 2009 8:47 am
Location: EUROPE-FRANCE-MANDELIEU

Re: zm_mpeg.cpp:386:77: error: ‘av_rescale_q’ was not declar

Post by christophe_y2k »

hello, for my Linux Gentoo i need this paquet compiled before install ZM maybe that can help you

Code: Select all

www-servers/apache
dev-db/mysql
dev-lang/php
dev-lang/perl

app-admin/sudo
media-video/ffmpeg
dev-libs/libpcre
virtual/jpeg
net-libs/gnutls
dev-lang/perl
virtual/perl-Archive-Tar
dev-perl/Archive-Zip
dev-perl/DateManip
dev-perl/DBD-mysql
dev-perl/DBI
dev-perl/Device-SerialPort
dev-perl/libwww-perl
dev-perl/MIME-Lite
dev-perl/MIME-tools
dev-perl/PHP-Serialization
virtual/perl-Getopt-Long
virtual/perl-libnet
virtual/perl-Module-Load
virtual/perl-Sys-Syslog
virtual/perl-Time-HiRes
media-libs/netpbm
dev-libs/boost
dev-libs/pcre++
and my configure is

Code: Select all

./configure --prefix=/usr --with-webhost=zoneminder --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-libarch=lib64 --with-mysql=/usr --with-ffmpeg=/usr --with-webdir=/var/www/zoneminder/htdocs --with-cgidir=/var/www/zoneminder/cgi-bin --with-webuser=apache --with-webgroup=apache --enable-debug=no --enable-crashtrace=no --enable-mmap=no ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=myuser ZM_DB_PASS=mypassword CXXFLAGS=-D__STDC_CONSTANT_MACROS
verify: --with-ffmpeg=/usr
and compile ffmpeg before
spacegoat
Posts: 3
Joined: Mon Nov 28, 2011 1:09 am

Re: zm_mpeg.cpp:386:77: error: ‘av_rescale_q’ was not declar

Post by spacegoat »

christophe_y2k wrote:hello, for my Linux Gentoo i need this paquet compiled before install ZM maybe that can help you
Many thanks. Sorry for the late reply.
Locked