Page 1 of 1

resolving small problems

Posted: Mon Jul 25, 2005 8:54 pm
by isladelobos
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.



resolve....... install the c++

Most distro's assume that the user won't NEED
or WANT all languages supported, and they split
it up for you to choose from

---------- yum install gcc-c++ ------- in fedora

anothers ""yums"" necesary

Posted: Mon Jul 25, 2005 9:22 pm
by isladelobos
yum install gcc gcc-c++

yum mysql mysql-server mysql-devel

yum install php-mysql

yum install libjpeg-devel

yum install zlib-devel

yum install pcre-devel

yum install ffmpeg ffmpeg-devel

yum install perl-MIME-tools

yum install perl-TIME-HiRes

yum install xvidcore

yum install netpbm

:idea:

configure: error: zm requires libmysqlclient.a

Posted: Mon Jul 25, 2005 9:54 pm
by isladelobos
ERROR
configure: error: zm requires libmysqlclient.a

CONFIGURE
ln -s /usr/lib/mysql/libmysqlclient.a /usr/lib
----------------------------------------------------------

ERROR
configure: WARNING: Now run 'perl zmconfig.pl' to create your ZoneMinder configuration


CONFIGURE
perl ./zmconfig.pl
DB user name, needs at least select, insert, update and delete privileges (alphanumeric) [] :zm
DB user password (alphanumeric) [] :hoge
Default language used by web interface (directory) [en_gb] :ja_jp
Secret used when encoding authentication information (string) [] : ZoneMinder
What width should each monitor in the montage view be (integer) [0] :0
What height should each monitor in the montage view be (integer) [0] :0

Now please create your database and database users and then run 'perl zmconfig.pl -noi' to import your configuration into the database

CREATING A MYSQL BD

/etc/rc.d/init.d/mysqld start
mysql mysql < db/zmschema.sql
mysql mysql
grant select,insert,update,delete on zm.* to zm@localhost identified by 'hoge';
quit
mysqladmin reload

--------ZMCONFIG.PL------

perl zmconfig.pl -noi
perl ./zmconfig.pl ZM_STRICT_VIDEO_CONFIG


----END------

make
make install


------CAMBOZOLA--------

http://www.charliemouse.com/code/cambozola/
http://www.zoneminder.com/fileadmin/dow ... bozola.jar

cp dist/cambozola.jar /var/www/html/zm

Download Java 2 Platform, Standard Edition, v 1.4.2 (J2SE)
http://java.sun.com/j2se/1.4.2/download.html


chmod 755 j2sdk-1_4_2_07-linux-i586-rpm.bin
./j2sdk-1_4_2_07-linux-i586-rpm.bin
rpm -ivh j2sdk-1_4_2_07-linux-i586.rpm



wget http://www.charliemouse.com/code/camboz ... est.tar.gz
tar xvzf cambozola-latest.tar.gz
cd cambozola-0.65
ant


cp scripts/zm /etc/rc.d/init.d/
chmod 755 /etc/rc.d/init.d/zm
chkconfig --add zm

/etc/rc.d/init.d/zm start

http://server_address/zm/

Posted: Mon Jul 25, 2005 11:55 pm
by cordel
Or just for Fedora Core 3
yum -c http://www.computerntelecom.com/download/zm-fc3.repo install zm
Regards,
Cordel

uffffffff

Posted: Tue Jul 26, 2005 9:32 am
by isladelobos
this software is very difficult to install and to work

Now today I cannot run it

Please we we needed aa good install Documentation.

I am crying I cannot have this software :cry:

you have won to me

Posted: Tue Jul 26, 2005 10:08 am
by isladelobos
configure: WARNING: libcrypto.a is required for authenticated streaming
checking for pcre_compile in -lpcre... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
checking for lame_init in -lmp3lame... no
configure: WARNING: libmp3lame.a may be required if ffmpeg was built with it


fedora core 3

zm-1.21.3.tar.gz
lame-3.96.1-2.1.fc3.rf.i386.rpm
ffmpeg-0.4.9-9_cvs20050517.rhfc3.at.i386.rpm
ffmpeg-devel-0.4.9-9_cvs20050517.rhfc3.at.i386.rpm


ffmpeg ----->>running----->>/usr/bin
lame-------->>running----->>/usr/lib

i don`t know resolve this warnings

Posted: Tue Jul 26, 2005 11:42 am
by zoneminder
You do not need libcrypto or libavformat to build and use ZM initially. It might be worth you just building and playing with what you've got initially and then trying to solve the missing libraries problem after.

Also perhaps use 'locate' to see if you actually have the libcrypto.a and libavformat.a libraries on your system at all.

Phil

making ZoneMinder

Posted: Tue Jul 26, 2005 10:09 pm
by isladelobos
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int, int, int)':
zm_mpeg.cpp:88: error: 'struct AVCodecContext' no tiene un miembro llamado 'frame_rate'
zm_mpeg.cpp:89: error: 'struct AVCodecContext' no tiene un miembro llamado 'frame_rate_base'
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/home/isladelobos/zm-1.21.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/isladelobos/zm-1.21.3'
make: *** [all] Error 2


this error ocurred wen MAKE

Posted: Wed Jul 27, 2005 4:58 am
by cordel
Have you installed ffmpeg?
and if so, did you configure it to install the share library files?
else you can run configure for zm and leave out --with-ffmpeg
Regards,
Cordel

Posted: Wed Jul 27, 2005 12:49 pm
by isladelobos
Have you installed ffmpeg?

yess install ffmpeg-0.4.9-9_cvs20050517.rhfc3.at.i386.rpm

and if so, did you configure it to install the share library files?

the library files install ffmpeg-devel-0.4.9-9_cvs20050517.rhfc3.at.i386.rpm

else you can run configure for zm and leave out --with-ffmpeg

[root@localhost zm-1.21.3]# ./configure --with-mysql=/usr/lib/mysql --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/include/ffmpeg --with-lame=/usr/lib --with-webuser=apache --with-webgroup=apache


configure: WARNING: libavformat.a is required for MPEG streaming


[root@localhost zm-1.21.3]# make
make all-recursive
make[1]: Entering directory `/home/isladelobos/zm-1.21.3'
Making all in src
make[2]: Entering directory `/home/isladelobos/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/mysql/include -I/usr/include/ffmpeg/include -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int, int, int)':
zm_mpeg.cpp:88: error: 'struct AVCodecContext' no tiene un miembro llamado 'frame_rate'
zm_mpeg.cpp:89: error: 'struct AVCodecContext' no tiene un miembro llamado 'frame_rate_base'
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/home/isladelobos/zm-1.21.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/isladelobos/zm-1.21.3'
make: *** [all] Error 2




FFMPEG-DEVEL-0.4.9-9_cvs20050517
Content of RPM :
/usr/include/ffmpeg
/usr/include/ffmpeg/avcodec.h
/usr/include/ffmpeg/avformat.h
/usr/include/ffmpeg/avio.h
/usr/include/ffmpeg/common.h
/usr/include/ffmpeg/rational.h
/usr/include/ffmpeg/rtp.h
/usr/include/ffmpeg/rtsp.h
/usr/include/ffmpeg/rtspcodes.h
/usr/include/postproc
/usr/include/postproc/postprocess.h
/usr/lib/libavcodec
/usr/lib/libavcodec.a
/usr/lib/libavcodec/libavcodec.a
/usr/lib/libpostproc.so

ffmpeg-0.4.9-9_cvs20050517
Content of RPM :
/usr/bin/ffmpeg
/usr/bin/ffplay
/usr/bin/ffserver
/usr/lib/libavcodec-0.4.9-pre1.so
/usr/lib/libavcodec.so
/usr/lib/libavformat-0.4.9-pre1.so
/usr/lib/libavformat.so
/usr/lib/libpostproc.so.0.0.1
/usr/lib/vhook
/usr/lib/vhook/drawtext.so
/usr/lib/vhook/fish.so
/usr/lib/vhook/imlib2.so
/usr/lib/vhook/null.so
/usr/lib/vhook/ppm.so
/usr/lib/vhook/watermark.so
/usr/share/doc/ffmpeg-0.4.9
/usr/share/doc/ffmpeg-0.4.9/COPYING
/usr/share/doc/ffmpeg-0.4.9/CREDITS
/usr/share/doc/ffmpeg-0.4.9/Changelog
/usr/share/doc/ffmpeg-0.4.9/README
/usr/share/doc/ffmpeg-0.4.9/doc
/usr/share/doc/ffmpeg-0.4.9/doc/.cvsignore
/usr/share/doc/ffmpeg-0.4.9/doc/CVS
/usr/share/doc/ffmpeg-0.4.9/doc/CVS/Entries
/usr/share/doc/ffmpeg-0.4.9/doc/CVS/Repository
/usr/share/doc/ffmpeg-0.4.9/doc/CVS/Root
/usr/share/doc/ffmpeg-0.4.9/doc/TODO
/usr/share/doc/ffmpeg-0.4.9/doc/faq.texi
/usr/share/doc/ffmpeg-0.4.9/doc/ffmpeg-doc.texi
/usr/share/doc/ffmpeg-0.4.9/doc/ffmpeg_powerpc_performance_evaluation_howto.txt
/usr/share/doc/ffmpeg-0.4.9/doc/ffplay-doc.texi
/usr/share/doc/ffmpeg-0.4.9/doc/ffserver-doc.texi
/usr/share/doc/ffmpeg-0.4.9/doc/ffserver.conf
/usr/share/doc/ffmpeg-0.4.9/doc/hooks.texi
/usr/share/doc/ffmpeg-0.4.9/doc/optimization.txt
/usr/share/doc/ffmpeg-0.4.9/doc/texi2pod.pl


The problem is in the rpm install?

Posted: Wed Jul 27, 2005 4:08 pm
by cordel
Try this.

./configure --with-mysql=/usr/lib/mysql --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr --with-lame=/usr --with-webuser=apache --with-webgroup=apache

Regards,
Cordel

nooooooooooooooooooooo

Posted: Wed Jul 27, 2005 4:24 pm
by isladelobos
the errors are identical in both cases


configure: WARNING: libavformat.a is required for MPEG streaming


[root@localhost zm-1.21.3]# make
make all-recursive
make[1]: Entering directory `/home/isladelobos/zm-1.21.3'
Making all in src
make[2]: Entering directory `/home/isladelobos/zm-1.21.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/mysql/include -I/usr/include/ffmpeg/include -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
zm_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int, int, int)':
zm_mpeg.cpp:88: error: 'struct AVCodecContext' no tiene un miembro llamado 'frame_rate'
zm_mpeg.cpp:89: error: 'struct AVCodecContext' no tiene un miembro llamado 'frame_rate_base'
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/home/isladelobos/zm-1.21.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/isladelobos/zm-1.21.3'
make: *** [all] Error 2

:arrow: Regards

Posted: Thu Jul 28, 2005 9:32 am
by zoneminder
I think the problem is that you are using the latest 0.4.9 cvs of ffmpeg. This changed the interface and format of some of the data structures. ZM can manage with the previous 0.4.9 version or with 0.4.8 but not the latest version currently. Your easiest solution is just to install the released versions of 0.4.8 or 0.4.9 for now until I have time and resources to figure out what has changed.

Phil

yesssss

Posted: Thu Jul 28, 2005 1:57 pm
by isladelobos
ok Phil Thank you

in this moment ZoneMinder is working in my old computer !!!

-------------------------------------------------

UNINSTALL
RPM -e ffmpeg-0.4.9-9_cvs20050517.rhfc3.at.i386.rpm
RPM -e ffmpeg-devel-0.4.9-9_cvs20050517.rhfc3.at.i386.rpm

AND INSTALL
RPM -i ffmpeg-0.4.9-0.20041110.3.1.fc3.rf.i386.rpm
RPM -i ffmpeg-devel-0.4.9-0.20041110.3.1.fc3.rf.i386.rpm

Requires :
SDL-devel
libogg-devel
lame-devel
/usr/bin/perl
rpmlib(CompressedFileNames) <= 3.0.4-1
freetype-devel
zlib-devel
libvorbis-devel
a52dec-devel
faac-devel
faad2-devel
xvidcore-devel
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
ffmpeg = 0.4.9
imlib2-devel
........................................bla bla blaaa bla.... But this is other history

FFMPEG

Posted: Mon Aug 01, 2005 8:54 pm
by isladelobos
hi

today install the old fedora core 2 ffmpg and no see errors.

install this rpm in my fedora core3 and no errors

ffmpeg-0.4.8-3.1.fc2.fr.i386.rpm
ffmpeg-devel-0.4.8-3.1.fc2.fr.i386.rpm

to repair this 2 errors:

checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
checking for lame_init in -lmp3lame... no
configure: WARNING: libmp3lame.a may be required if ffmpeg was built with it

-------------------------------------------


you nee install the openssl-devel
to repair this error:


configure: WARNING: libcrypto.a is required for authenticated streaming