Make error (libavcodec, libavformat) solved

Support and queries relating to all previous versions of ZoneMinder
Locked
tux
Posts: 55
Joined: Wed Mar 16, 2005 1:18 pm

Make error (libavcodec, libavformat) solved

Post by tux »

I have installed zm 1.21.3 using the howto zm debian. But I will install new version (1.21.4) and I need to compile zm in my debian.


I have a error in make, I think the problem is for ffmpeg,
I have installed :
ffmpeg 20051101-0sarge0.0
libavcodec-dev 0.cvs20050918-5
libavformat-dev 0.cvs20050918-5


CONFIGURE
---------------------

#debian:/usr/local/src/zm-1.21.4# ./configure -with-webdir=/var/www/zm --with-cgidir=/var/www/cgi-bin --with-mysql=/usr --wit-ffmpeg=/usr --with-lame=/usr --with-webuser=www-data --with-webgroup=www-data


checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
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... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking how to run the C++ preprocessor... g++ -E
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking whether MD5 is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for ff_gcd in -lavutil... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for lame_init in -lmp3lame... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating web/graphics/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zmconfig.pl
config.status: creating config.h
config.status: executing depfiles commands
checking for zmconfig.txt... yes




MAKE
-------------------------


Problem with make. zm 1.21.4
debian:/usr/local/src/zm-1.21.4# make
make all-recursive
make[1]: se ingresa al directorio `/usr/local/src/zm-1.21.4'
Making all in src
make[2]: se ingresa al directorio `/usr/local/src/zm-1.21.4/src'
g++ -g -O2 -L/usr -L/usr/lib -L/usr/lib/mysql -o zmc zmc.o zm.o zm_db.o zm_config.o zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_file_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_buffer.o zm_debug.o -lmp3lame -lavformat -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header': referencia a `dc1394_create_handle' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header': referencia a `dc1394_get_camera_nodes' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header': referencia a `dc1394_dma_setup_capture' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header': referencia a `dc1394_destroy_handle' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header': referencia a `dc1394_start_iso_transmission' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header': referencia a `dc1394_dma_unlisten' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header': referencia a `dc1394_dma_release_camera' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_packet': referencia a `dc1394_dma_done_with_buffer' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_packet': referencia a `dc1394_dma_single_capture' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_close': referencia a `dc1394_stop_iso_transmission' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_close': referencia a `dc1394_dma_unlisten' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_close': referencia a `dc1394_dma_release_camera' sin definir
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_close': referencia a `dc1394_destroy_handle' sin definir
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_header': referencia a `ogg_stream_init' sin definir
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_header': referencia a `ogg_stream_packetin' sin definir
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_packet': referencia a `ogg_stream_flush' sin definir
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_packet': referencia a `ogg_stream_packetin' sin definir
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_packet': referencia a `ogg_stream_pageout' sin definir
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_trailer': referencia a `ogg_stream_flush' sin definir
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_trailer': referencia a `ogg_stream_clear' sin definir
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_init': referencia a `dts_init' sin definir
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': referencia a `dts_frame' sin definir
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': referencia a `dts_blocks_num' sin definir
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': referencia a `dts_block' sin definir
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': referencia a `dts_samples' sin definir
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': referencia a `dts_blocks_num' sin definir
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': referencia a `dts_syncinfo' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_info_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_encode_init_vbr' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_analysis_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_block_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_comment_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_comment_add_tag' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_analysis_headerout' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_comment_clear' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': referencia a `vorbis_encode_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame': referencia a `vorbis_analysis_buffer' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame': referencia a `vorbis_analysis_wrote' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame': referencia a `vorbis_analysis_blockout' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame': referencia a `vorbis_analysis' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame': referencia a `vorbis_bitrate_addblock' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame': referencia a `vorbis_bitrate_flushpacket' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame': referencia a `vorbis_bitrate_flushpacket' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame': referencia a `vorbis_analysis_blockout' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_close': referencia a `vorbis_analysis_wrote' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_close': referencia a `vorbis_block_clear' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_close': referencia a `vorbis_dsp_clear' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_close': referencia a `vorbis_info_clear' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init': referencia a `vorbis_info_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init': referencia a `vorbis_comment_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init': referencia a `vorbis_synthesis_headerin' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init': referencia a `vorbis_synthesis_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init': referencia a `vorbis_block_init' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame': referencia a `vorbis_synthesis' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame': referencia a `vorbis_synthesis_pcmout' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame': referencia a `vorbis_synthesis_read' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame': referencia a `vorbis_synthesis_pcmout' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame': referencia a `vorbis_synthesis_blockin' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_close': referencia a `vorbis_info_clear' sin definir
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_close': referencia a `vorbis_comment_clear' sin definir
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_frame': referencia a `theora_decode_packetin' sin definir
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_frame': referencia a `theora_decode_YUVout' sin definir
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_end': referencia a `theora_info_clear' sin definir
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_end': referencia a `theora_comment_clear' sin definir
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init': referencia a `theora_info_init' sin definir
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init': referencia a `theora_decode_header' sin definir
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init': referencia a `theora_decode_init' sin definir
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_init': referencia a `gsm_create' sin definir
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_close': referencia a `gsm_destroy' sin definir
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_encode_frame': referencia a `gsm_encode' sin definir
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_decode_frame': referencia a `gsm_decode' sin definir
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: se sale del directorio `/usr/local/src/zm-1.21.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/usr/local/src/zm-1.21.4'
make: *** [all] Error 2
Last edited by tux on Mon Jan 16, 2006 5:54 pm, edited 1 time in total.
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Post by SyRenity »

Hi.

It seems as you have a lot of libraries compiled in your FFMPEG. If you are using a CVS version of FFMPEG, try to compile it without any additions - just by running
1) ./configure
2) make install
3) make installlib (triple-l!)

Btw, Phil, I probably cross-posting, but I'm having the same problem with Theora (http://www.zoneminder.com/forums/viewto ... highlight=). Please see my update below.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Replied on other thread :D
Phil
tux
Posts: 55
Joined: Wed Mar 16, 2005 1:18 pm

Post by tux »

Hi

thanks, I finally installed witout mpeg support (without ffmpeg).

Now I see in zm manual.
http://www.zoneminder.com/fileadmin/dow ... zm_manual/
that you can generate your video since zm-web.
Image

.....
streamed and still versions of the event (if supported) and generating an MPEG video of the event (if supported).
......
If I installed with ffmpeg is posible generate video with (1.21.4) version?
thanks
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

yes
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The previous problem you encountered was due to not having the development libraries for the other formats to support ffmpeg. If you install the libraries for dc1394, ogg, dts, and gsm you should have no problem building.

Corey
tux
Posts: 55
Joined: Wed Mar 16, 2005 1:18 pm

Post by tux »

NOw I installed with ffmpeg
I installed ffmpeg, libavcodec, libgsm....from this debian repository. http://www.spic.net/zoneminder/

I check video generation and zm can generate videos very well.

If I will use ZM_VIDEO_STREAM_METHOD mpeg, for internet explorer need cambozola (I not installed :D) but for mozilla firefox, streams is in ASF format.

FIrefox url (type about:plugins)
.
.
.
SI=YES

Windows Media Player Plug-in Dynamic Link Library

Nombre del fichero: npdsplay.dll
Npdsplay dll

Tipo MIME Descripción Sufijos Activado
application/asx Media Files * Sí
video/x-ms-asf-plugin Media Files * Sí
application/x-mplayer2 Media Files * Sí
video/x-ms-asf Media Files asf,asx,* Sí [ HERE ASF YES]
video/x-ms-wm Media Files wm,* Sí
audio/x-ms-wma Media Files wma,* Sí
audio/x-ms-wax Media Files wax,* Sí
video/x-ms-wmv Media Files wmv,* Sí
video/x-ms-wvx Media Files wvx,*
.
.
.
wolfram
Posts: 29
Joined: Sat Nov 26, 2005 12:36 pm

DEBIAN Install ffmpeg

Post by wolfram »

Just for clarification on how to install ffmpeg on debian:
To install ffmpeg the follwoing steps are necessary

1. # cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
2. # make
3. # make install
4. # make install-libs

1. fetch cvs code from sources
command 4 has changed in the newer ffmpeg versions from installlib to install-libs

ok that should properly install ffmpeg on a debian system.
wolfram
Locked