Install ZM on Ubuntu

Support and queries relating to all previous versions of ZoneMinder
Locked
cerelli
Posts: 2
Joined: Thu Mar 23, 2006 5:03 pm

Install ZM on Ubuntu

Post by cerelli »

marco@ubuntu:~/ZoneMinder-1.22.1$ make install
Making install in src
make[1]: Entering directory `/home/marco/ZoneMinder-1.22.1/src'
g++ -g -O2 -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_poly.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_loc al_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_signal.o zm_buffer.o zm_debug.o -lavformat -lavcodec -l avutil -lcrypto -lmysqlclient -ldl -lz -ljpeg
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_create_handle'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_get_camera_nodes'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_dma_setup_capture'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_destroy_handle'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_start_iso_transmission'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_dma_unlisten'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_header':
: undefined reference to `dc1394_dma_release_camera'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_packet':
: undefined reference to `dc1394_dma_done_with_buffer'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_read_packet':
: undefined reference to `dc1394_dma_single_capture'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_close':
: undefined reference to `dc1394_stop_iso_transmission'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_close':
: undefined reference to `dc1394_dma_unlisten'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_close':
: undefined reference to `dc1394_dma_release_camera'
/usr/lib/libavformat.a(dc1394.o): In function `dc1394_close':
: undefined reference to `dc1394_destroy_handle'
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_header':
: undefined reference to `ogg_stream_init'
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_header':
: undefined reference to `ogg_stream_packetin'
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_packet':
: undefined reference to `ogg_stream_packetin'
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_packet':
: undefined reference to `ogg_stream_pageout'
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_packet':
: undefined reference to `ogg_stream_flush'
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_trailer':
: undefined reference to `ogg_stream_flush'
/usr/lib/libavformat.a(ogg.o): In function `ogg_write_trailer':
: undefined reference to `ogg_stream_clear'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_init':
: undefined reference to `dts_init'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_frame'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_blocks_num'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_block'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_samples'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_blocks_num'
/usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame':
: undefined reference to `dts_syncinfo'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_info_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_encode_init_vbr'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_analysis_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_block_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_comment_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_comment_add_tag'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_analysis_headerout'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_comment_clear'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init':
: undefined reference to `vorbis_encode_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis_buffer'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis_wrote'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis_blockout'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_bitrate_addblock'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_bitrate_flushpacket'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_bitrate_flushpacket'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_frame':
: undefined reference to `vorbis_analysis_blockout'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_close':
: undefined reference to `vorbis_analysis_wrote'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_close':
: undefined reference to `vorbis_block_clear'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_close':
: undefined reference to `vorbis_dsp_clear'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_close':
: undefined reference to `vorbis_info_clear'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_info_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_comment_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_synthesis_headerin'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_synthesis_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_init':
: undefined reference to `vorbis_block_init'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis_pcmout'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis_read'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis_pcmout'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_frame':
: undefined reference to `vorbis_synthesis_blockin'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_close':
: undefined reference to `vorbis_info_clear'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_decode_close':
: undefined reference to `vorbis_comment_clear'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_frame':
: undefined reference to `theora_decode_packetin'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_frame':
: undefined reference to `theora_decode_YUVout'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_end':
: undefined reference to `theora_info_clear'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_end':
: undefined reference to `theora_comment_clear'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init':
: undefined reference to `theora_info_init'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init':
: undefined reference to `theora_decode_header'
/usr/lib/libavcodec.a(oggtheora.o): In function `Theora_decode_init':
: undefined reference to `theora_decode_init'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_init':
: undefined reference to `gsm_create'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_close':
: undefined reference to `gsm_destroy'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_encode_frame':
: undefined reference to `gsm_encode'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_decode_frame':
: undefined reference to `gsm_decode'
collect2: ld returned 1 exit status
make[1]: *** [zmc] Error 1
make[1]: Leaving directory `/home/marco/ZoneMinder-1.22.1/src'
make: *** [install-recursive] Error 1
marco@ubuntu:~/ZoneMinder-1.22.1$

this is my error. I think that the error depend of ffmpeg. How can i install zm without ffmpeg on Ubuntu 5.10?

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Looks like you are missing some of the header files for oggvorbis, theora, dts, lib gsm, and dc1394.
If you install their development packages zm should build.

Regards,
Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You will need to specify the additional libraries that your ffmpeg was built with, in the EXTRA_LIBS parameter to the ZM configure script.
Phil
zmuser
Posts: 2
Joined: Tue May 03, 2005 10:32 pm

ZM 1.22.1 and Ubuntu 5.10

Post by zmuser »

As far as I can tell, this is a problem with recent ffmpeg binaries & source, and I'm not so sure omitting ffmpeg is really an option with Zoneminder. (disclaimer -- this is the first time I tried building ZM from scratch, and by no means do I actually consider myself knowledge in linux).

I was able to complete "make install" by downloading the most recent ffmpeg source from cvs and hand-editing files in libavcodec and libavformat to remove references to the offending codecs (oggvorbis, theora, libgsm, dc1394). I couldn't seem to get the ffmpeg configure script to disable the codecs (e.g.: "--disable-encoder=OGGVORBIS"), and even if I edited the config.mak file to remove references to those codecs, it didn't seem to make a difference when I ran make.

I could be entirely wrong about the configure options, but by this time my system was quite dirty, so YMMV.

...This was entirely an academic pursuit on a virtual system, but it was good practice for when I actually try this on Ubuntu 6.06 on my current ZM machine (currently running the LiveCD)...

Just FYI here was the build system:

Asus A7V8X-MX SE
AMD Athlon XP 2400+
Maxtor Maxline 300GB HDD
VMWare Workstation 5.0
Host OS: Windows XP
Guest OS: Ubuntu 5.10 full install, 10GB HDD, 512MB RAM, Bridged Network

I learned quite a bit through this exercise, and I would've loved to see if I could actually run ZM through the VM, but I don't have any more time nor capture cards...

- a zmuser -
breizhbug
Posts: 61
Joined: Wed May 10, 2006 10:59 am
Location: France

Post by breizhbug »

Does someone make a successfull complete instal of ZoneMinder on ubuntu.
Regarding my instal, my problem is with zm service which doesn't want to start and stop correctly. Problem with zm script instal (zmpkg.pl)
Locked