Installation Problem

Support and queries relating to all previous versions of ZoneMinder
Locked
oscarliu
Posts: 7
Joined: Thu Nov 22, 2007 4:18 am

Installation Problem

Post by oscarliu »

I'm using Fedora 7. While installing ZOneMinder 1.22.3 from source, the following errors are shown. Can anyone help?

=========================
[root@mamaday ZoneMinder-1.22.3]# make
make all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.22.3'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.22.3/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/bin/include -g -O3 -march=pentium4 -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 destructor ‘VideoStream::~VideoStream()’:
zm_mpeg.cpp:280: error: cannot convert ‘ByteIOContext**’ to ‘ByteIOContext*’ for argument ‘1’ to ‘int url_fclose(ByteIOContext*)’
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)’:
zm_mpeg.cpp:308: warning: ‘img_convert’ is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2421)
zm_mpeg.cpp:310: warning: ‘img_convert’ is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2421)
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.22.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.22.3'
make: *** [all] Error 2
[root@mamaday ZoneMinder-1.22.3]#
ThomasH
Posts: 3
Joined: Mon Dec 03, 2007 2:16 am

Post by ThomasH »

I am having the same problem on CentOS 5 with the latest version of ffmpeg from the SVN.
kevin_robson
Posts: 247
Joined: Sun Jan 16, 2005 11:26 am

Post by kevin_robson »

Same problem on fedora 8. Tried the fixes on various posts but gives the same problem. Has anyone got past this?
ioane
Posts: 9
Joined: Sat Oct 13, 2007 11:54 pm

Post by ioane »

I had the same problem.
I solved it by installing an older version of ffmpeg. I found it on sourceforge, at the motion project.
Good luck.
oscarliu
Posts: 7
Joined: Thu Nov 22, 2007 4:18 am

Post by oscarliu »

Hi ioane,

Thanks. I've just downloaded the old version of ffmpeg from project motion. While compiling, the following errors are shown. Any idea?

Thanks in advance.
=============
./libavcodec/libavcodec.so: undefined reference to `ff_ac3_frame_sizes'
./libavcodec/libavcodec.so: undefined reference to `flashsv_encoder'
./libavcodec/libavcodec.so: undefined reference to `sgi_encoder'
./libavcodec/libavcodec.so: undefined reference to `dsicinvideo_decoder'
./libavcodec/libavcodec.so: undefined reference to `h261_decoder'
./libavcodec/libavcodec.so: undefined reference to `rawvideo_decoder'
./libavformat/libavformat.so: undefined reference to `end_tag'
./libavcodec/libavcodec.so: undefined reference to `dnxhd_encoder'
./libavcodec/libavcodec.so: undefined reference to `xsub_decoder'
./libavformat/libavformat.so: undefined reference to `get_frame_filename'
./libavcodec/libavcodec.so: undefined reference to `wavpack_decoder'
./libavcodec/libavcodec.so: undefined reference to `ptx_decoder'
./libavcodec/libavcodec.so: undefined reference to `av_init_random'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg1_default_non_intra_matrix'
./libavcodec/libavcodec.so: undefined reference to `v2_mb_type'
./libavcodec/libavcodec.so: undefined reference to `h261_parser'
./libavcodec/libavcodec.so: undefined reference to `vp6_decoder'
./libavformat/libavformat.so: undefined reference to `apc_demuxer'
./libavformat/libavformat.so: undefined reference to `ff_mp4_obj_type'
./libavcodec/libavcodec.so: undefined reference to `wmv1_y_dc_scale_table'
./libavcodec/libavcodec.so: undefined reference to `init_vlc'
./libavcodec/libavcodec.so: undefined reference to `ff_sgaintab'
./libavcodec/libavcodec.so: undefined reference to `ff_fgaintab'
./libavcodec/libavcodec.so: undefined reference to `wmv1_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_mpa_sblimit_table'
./libavcodec/libavcodec.so: undefined reference to `ff_sdecaytab'
./libavcodec/libavcodec.so: undefined reference to `smackaud_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_ac3_bit_alloc_calc_bap'
./libavformat/libavformat.so: undefined reference to `mpeg2vob_muxer'
./libavcodec/libavcodec.so: undefined reference to `adpcm_adx_encoder'
./libavformat/libavformat.so: undefined reference to `dxa_demuxer'
./libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_3dn2'
./libavcodec/libavcodec.so: undefined reference to `ff_ac3_bitratetab'
./libavcodec/libavcodec.so: undefined reference to `vp6f_decoder'
./libavformat/libavformat.so: undefined reference to `nuv_demuxer'
./libavcodec/libavcodec.so: undefined reference to `ff_floortab'
./libavformat/libavformat.so: undefined reference to `crc_muxer'
./libavcodec/libavcodec.so: undefined reference to `pgm_encoder'
./libavcodec/libavcodec.so: undefined reference to `mjpega_dump_header_bsf'
./libavcodec/libavcodec.so: undefined reference to `ff_wma_hgain_huffbits'
./libavcodec/libavcodec.so: undefined reference to `dump_extradata_bsf'
./libavcodec/libavcodec.so: undefined reference to `ac3_common_init'
./libavcodec/libavcodec.so: undefined reference to `mp3_header_compress_bsf'
./libavcodec/libavcodec.so: undefined reference to `nuv_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg12_vlc_dc_lum_code'
./libavcodec/libavcodec.so: undefined reference to `mm_flags'
./libavcodec/libavcodec.so: undefined reference to `wmv1_scantable'
./libavcodec/libavcodec.so: undefined reference to `mpegaudio_parser'
./libavcodec/libavcodec.so: undefined reference to `ljpeg_encoder'
./libavformat/libavformat.so: undefined reference to `matroska_audio_muxer'
./libavcodec/libavcodec.so: undefined reference to `ff_wma_hgain_huffcodes'
./libavcodec/libavcodec.so: undefined reference to `flashsv_decoder'
./libavformat/libavformat.so: undefined reference to `ogg_muxer'
./libavcodec/libavcodec.so: undefined reference to `ff_wma_init'
./libavcodec/libavcodec.so: undefined reference to `wmav2_encoder'
./libavcodec/libavcodec.so: undefined reference to `cavs_decoder'
./libavformat/libavformat.so: undefined reference to `start_tag'
./libavcodec/libavcodec.so: undefined reference to `mpeg4_encoder'
./libavcodec/libavcodec.so: undefined reference to `gif_encoder'
./libavcodec/libavcodec.so: undefined reference to `vp5_decoder'
./libavcodec/libavcodec.so: undefined reference to `roq_decoder'
./libavcodec/libavcodec.so: undefined reference to `pam_encoder'
./libavformat/libavformat.so: undefined reference to `matroska_muxer'
./libavcodec/libavcodec.so: undefined reference to `qtrle_encoder'
./libavcodec/libavcodec.so: undefined reference to `h264_mp4toannexb_bsf'
./libavcodec/libavcodec.so: undefined reference to `flac_encoder'
./libavcodec/libavcodec.so: undefined reference to `targa_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg2_aspect'
./libavcodec/libavcodec.so: undefined reference to `jpegls_encoder'
./libavcodec/libavcodec.so: undefined reference to `av_crc8005'
./libavcodec/libavcodec.so: undefined reference to `ac3_parser'
./libavcodec/libavcodec.so: undefined reference to `ff_msmp4_dc_chroma_vlc'
./libavcodec/libavcodec.so: undefined reference to `ff_vc1dsp_init'
./libavcodec/libavcodec.so: undefined reference to `ff_ac3_bit_alloc_calc_mask'
./libavcodec/libavcodec.so: undefined reference to `ff_fdecaytab'
./libavformat/libavformat.so: undefined reference to `codec_movaudio_tags'
./libavcodec/libavcodec.so: undefined reference to `ff_wma_total_gain_to_bits'
./libavformat/libavformat.so: undefined reference to `ogg_demuxer'
./libavformat/libavformat.so: undefined reference to `ff_mov_lang_to_iso639'
./libavformat/libavformat.so: undefined reference to `guess_image_format'
./libavformat/libavformat.so: undefined reference to `matroska_demuxer'
./libavcodec/libavcodec.so: undefined reference to `mlp_parser'
./libavcodec/libavcodec.so: undefined reference to `ppm_encoder'
./libavcodec/libavcodec.so: undefined reference to `c93_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_imdct_calc_3dn2'
./libavcodec/libavcodec.so: undefined reference to `pgmyuv_encoder'
./libavcodec/libavcodec.so: undefined reference to `dca_decoder'
./libavcodec/libavcodec.so: undefined reference to `rawvideo_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_write_quant_matrix'
./libavcodec/libavcodec.so: undefined reference to `ff_wmv2_decode_mb'
./libavcodec/libavcodec.so: undefined reference to `h261_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_imdct_calc_sse'
./libavcodec/libavcodec.so: undefined reference to `ff_ac3_freqs'
./libavcodec/libavcodec.so: undefined reference to `dsputil_init_mmx'
./libavcodec/libavcodec.so: undefined reference to `mm_support'
./libavcodec/libavcodec.so: undefined reference to `mpc8_decoder'
./libavformat/libavformat.so: undefined reference to `av_crc'
./libavformat/libavformat.so: undefined reference to `mpc8_demuxer'
./libavcodec/libavcodec.so: undefined reference to `av_log_level'
./libavcodec/libavcodec.so: undefined reference to `ff_dbkneetab'
./libavcodec/libavcodec.so: undefined reference to `ff_intrax8dsp_init'
./libavcodec/libavcodec.so: undefined reference to `ff_huff_build_tree'
./libavformat/libavformat.so: undefined reference to `tiertexseq_demuxer'
./libavformat/libavformat.so: undefined reference to `mpeg1vcd_muxer'
./libavcodec/libavcodec.so: undefined reference to `atrac3_decoder'
./libavformat/libavformat.so: undefined reference to `ea_cdata_demuxer'
./libavcodec/libavcodec.so: undefined reference to `ff_flac_compute_autocorr'
./libavcodec/libavcodec.so: undefined reference to `ff_wma_scale_huffcodes'
./libavcodec/libavcodec.so: undefined reference to `h263_parser'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg12_mbPatTable'
./libavcodec/libavcodec.so: undefined reference to `av_crc07'
./libavformat/libavformat.so: undefined reference to `mjpeg_encoder'
./libavformat/libavformat.so: undefined reference to `av_write_image'
./libavcodec/libavcodec.so: undefined reference to `v2_intra_cbpc'
./libavformat/libavformat.so: undefined reference to `thp_demuxer'
./libavcodec/libavcodec.so: undefined reference to `mjpeg_parser'
./libavcodec/libavcodec.so: undefined reference to `ff_ac3_window'
./libavcodec/libavcodec.so: undefined reference to `ff_msmp4_mb_i_table'
./libavcodec/libavcodec.so: undefined reference to `txd_decoder'
./libavformat/libavformat.so: undefined reference to `nut_muxer'
./libavcodec/libavcodec.so: undefined reference to `mp2_encoder'
./libavformat/libavformat.so: undefined reference to `av_stristart'
./libavformat/libavformat.so: undefined reference to `txd_demuxer'
./libavcodec/libavcodec.so: undefined reference to `mpc7_decoder'
./libavcodec/libavcodec.so: undefined reference to `wmav1_encoder'
./libavformat/libavformat.so: undefined reference to `siff_demuxer'
./libavcodec/libavcodec.so: undefined reference to `smacker_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg12_vlc_dc_lum_bits'
./libavcodec/libavcodec.so: undefined reference to `vmnc_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_h264_find_frame_end'
./libavcodec/libavcodec.so: undefined reference to `h264_parser'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg12_vlc_dc_chroma_code'
./libavformat/libavformat.so: undefined reference to `cropTbl'
./libavcodec/libavcodec.so: undefined reference to `noise_bsf'
./libavcodec/libavcodec.so: undefined reference to `ff_mpa_enwindow'
./libavformat/libavformat.so: undefined reference to `ff_rtp_send_mpegvideo'
./libavcodec/libavcodec.so: undefined reference to `vb_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_cavsdsp_init'
./libavcodec/libavcodec.so: undefined reference to `vorbis_inverse_coupling'
./libavcodec/libavcodec.so: undefined reference to `msmpeg4v1_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg4_find_frame_end'
./libavformat/libavformat.so: undefined reference to `gxf_demuxer'
./libavformat/libavformat.so: undefined reference to `amr_muxer'
./libavcodec/libavcodec.so: undefined reference to `svq1_decoder'
./libavformat/libavformat.so: undefined reference to `voc_get_packet'
./libavcodec/libavcodec.so: undefined reference to `roq_dpcm_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg1_default_intra_matrix'
./libavformat/libavformat.so: undefined reference to `av_read_image'
./libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_3dn'
./libavformat/libavformat.so: undefined reference to `rm_demuxer'
./libavcodec/libavcodec.so: undefined reference to `png_encoder'
./libavcodec/libavcodec.so: undefined reference to `msmpeg4v3_encoder'
./libavformat/libavformat.so: undefined reference to `gxf_muxer'
./libavcodec/libavcodec.so: undefined reference to `thp_decoder'
./libavcodec/libavcodec.so: undefined reference to `MPV_common_init_mmx'
./libavcodec/libavcodec.so: undefined reference to `vc1_parser'
./libavformat/libavformat.so: undefined reference to `put_wav_header'
./libavcodec/libavcodec.so: undefined reference to `ff_rl_mpeg1'
./libavcodec/libavcodec.so: undefined reference to `ff_wmv2_decode_secondary_picture_header'
./libavcodec/libavcodec.so: undefined reference to `flv_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_h264_pred_init'
./libavcodec/libavcodec.so: undefined reference to `ff_table1_dc_lum'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg1_aspect'
./libavformat/libavformat.so: undefined reference to `ff_rtp_send_aac'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg12_mbAddrIncrTable'
./libavformat/libavformat.so: undefined reference to `ff_ac3_parse_header'
./libavcodec/libavcodec.so: undefined reference to `dca_parser'
./libavformat/libavformat.so: undefined reference to `c93_demuxer'
./libavformat/libavformat.so: undefined reference to `av_strlcat'
./libavcodec/libavcodec.so: undefined reference to `kmvc_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_wma_scale_huffbits'
./libavformat/libavformat.so: undefined reference to `av_tree_insert'
./libavcodec/libavcodec.so: undefined reference to `wmv1_c_dc_scale_table'
./libavcodec/libavcodec.so: undefined reference to `aac_parser'
./libavcodec/libavcodec.so: undefined reference to `svq1_encoder'
./libavcodec/libavcodec.so: undefined reference to `amv_decoder'
./libavcodec/libavcodec.so: undefined reference to `rv20_encoder'
./libavcodec/libavcodec.so: undefined reference to `h263_encoder'
./libavcodec/libavcodec.so: undefined reference to `wmv2_decoder'
./libavcodec/libavcodec.so: undefined reference to `old_ff_y_dc_scale_table'
./libavcodec/libavcodec.so: undefined reference to `png_decoder'
./libavcodec/libavcodec.so: undefined reference to `mpeg2video_encoder'
./libavformat/libavformat.so: undefined reference to `ape_demuxer'
./libavcodec/libavcodec.so: undefined reference to `ape_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_wma_lsp_codebook'
./libavcodec/libavcodec.so: undefined reference to `ff_table0_dc_lum'
./libavcodec/libavcodec.so: undefined reference to `vp6a_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_wma_end'
./libavformat/libavformat.so: undefined reference to `mtv_demuxer'
./libavcodec/libavcodec.so: undefined reference to `ff_wmv2_decode_picture_header'
./libavcodec/libavcodec.so: undefined reference to `nellymoser_decoder'
./libavcodec/libavcodec.so: undefined reference to `imx_dump_header_bsf'
./libavcodec/libavcodec.so: undefined reference to `ff_mpeg12_vlc_dc_chroma_bits'
./libavcodec/libavcodec.so: undefined reference to `tiertexseqvideo_decoder'
./libavcodec/libavcodec.so: undefined reference to `vorbis_encoder'
./libavcodec/libavcodec.so: undefined reference to `pnm_parser'
./libavcodec/libavcodec.so: undefined reference to `sp5x_decoder'
./libavcodec/libavcodec.so: undefined reference to `ff_wmv2_add_mb'
./libavcodec/libavcodec.so: undefined reference to `msmpeg4v2_encoder'
./libavformat/libavformat.so: undefined reference to `codec_wav_tags'
./libavformat/libavformat.so: undefined reference to `av_base64_encode'
./libavcodec/libavcodec.so: undefined reference to `ff_h263_find_frame_end'
./libavcodec/libavcodec.so: undefined reference to `table_inter_intra'
./libavcodec/libavcodec.so: undefined reference to `sgi_decoder'
./libavformat/libavformat.so: undefined reference to `ff_asfcrypt_dec'
./libavcodec/libavcodec.so: undefined reference to `rl_table'
./libavcodec/libavcodec.so: undefined reference to `bmp_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_frame_rate_tab'
./libavcodec/libavcodec.so: undefined reference to `tiff_encoder'
./libavcodec/libavcodec.so: undefined reference to `ff_mspel_motion'
./libavformat/libavformat.so: undefined reference to `nut_demuxer'
./libavcodec/libavcodec.so: undefined reference to `jpegls_decoder'
./libavcodec/libavcodec.so: undefined reference to `dnxhd_decoder'
./libavformat/libavformat.so: undefined reference to `wv_demuxer'
./libavformat/libavformat.so: undefined reference to `ff_h264_dynamic_handler'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1
[root@mamaday ffmpeg]#
neouser
Posts: 8
Joined: Sat Sep 02, 2006 8:35 am

Post by neouser »

Hello,

Yesterday nigth i had same problem compiling zoneminder. It seems that newest version of ffmpeg has changed some things.

I changed in zm_mpeg.cpp line 280:

-url_fclose(&ofc->pb);
+url_fclose(ofc->pb);

After this i compiled suscesfully and it seems like all is working well. If this solution is wrong i would like to know.

Regards
ioane
Posts: 9
Joined: Sat Oct 13, 2007 11:54 pm

Post by ioane »

Sorry, i don't know why you get those errors.
I installed the same ffmpeg version on Slackware 12.0 and it didn't get any errors.
Try neouser's advice and let us know if it works
oscarliu
Posts: 7
Joined: Thu Nov 22, 2007 4:18 am

Post by oscarliu »

have tried neouser's way but got exactly the same errors while compiling ZoneMinder. Quite frustrated. Thanks for your advice anyway. Hope there will be a way out.
neouser
Posts: 8
Joined: Sat Sep 02, 2006 8:35 am

Post by neouser »

Hello Oscarliu,


Same errors ? What errors are you getting ?

If you are talking about line 280 error, please review your steps, it is impossible that after line change you get same error.

If you are taliking about "undefined reference" errors, ensure you are linking with correct ffmpeg library, look at include path and library path, uninstall ffmpeg rpms or older versions, re-install ffmpeg and add ffmpeg path ( "--with-ffmpeg=" option) to configure. Always is recommended to execute "make clean" before compile again.

Hope this help
oscarliu
Posts: 7
Joined: Thu Nov 22, 2007 4:18 am

Post by oscarliu »

Hi neouser,

Thanks for your reply. Finally, I compiled an old version of ffmpeg found in the Motion project in sourceforge.net as suggested in another thread and solved the problem.

Thanks again.

Oscar
User avatar
ammaross
Posts: 61
Joined: Mon Mar 12, 2007 8:34 pm
Location: Utah, USA

Post by ammaross »

neouser wrote: I changed in zm_mpeg.cpp line 280:

-url_fclose(&ofc->pb);
+url_fclose(ofc->pb);
The more-recent SVNs of ffmpeg appear to have changed url_fclose() as well as depreciated img_convert(). Neouser's mod works for me.
BadFish
Posts: 25
Joined: Wed Apr 19, 2006 6:18 pm

Post by BadFish »

Hi,
I'm having the same error,
I tried editting zm_mpeg.cpp line 280
but now I get the following error


[root@Zoneminder ZoneMinder-1.22.3]# make
make all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.22.3'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.22.3/src'
g++ -g -O3 -march=pentium4 -L/usr/local//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_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_signal.o zm_buffer.o zm_debug.o -lavformat -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
zm_mpeg.o: In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned int)':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:310: undefined reference to `img_convert(AVPicture*, int, AVPicture const*, int, int, int)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:339: undefined reference to `avcodec_encode_video(AVCodecContext*, unsigned char*, int, AVFrame const*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:346: undefined reference to `av_init_packet(AVPacket*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:351: undefined reference to `av_rescale_q(long long, AVRational, AVRational)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:359: undefined reference to `av_write_frame(AVFormatContext*, AVPacket*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:325: undefined reference to `av_init_packet(AVPacket*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:332: undefined reference to `av_write_frame(AVFormatContext*, AVPacket*)'
zm_mpeg.o: In function `~VideoStream':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:254: undefined reference to `avcodec_close(AVCodecContext*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:258: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:259: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:262: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:263: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:265: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:269: undefined reference to `av_write_trailer(AVFormatContext*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:274: undefined reference to `av_freep(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:280: undefined reference to `url_fclose(ByteIOContext*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:254: undefined reference to `avcodec_close(AVCodecContext*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:258: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:259: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:262: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:263: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:265: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:269: undefined reference to `av_write_trailer(AVFormatContext*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:274: undefined reference to `av_freep(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:280: undefined reference to `url_fclose(ByteIOContext*)'
zm_mpeg.o: In function `VideoStream::OpenStream()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:165: undefined reference to `avcodec_find_encoder(CodecID)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:172: undefined reference to `avcodec_open(AVCodecContext*, AVCodec*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:178: undefined reference to `avcodec_alloc_frame()'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:183: undefined reference to `avpicture_get_size(int, int, int)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:190: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:198: undefined reference to `avcodec_alloc_frame()'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:203: undefined reference to `avpicture_get_size(int, int, int)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:210: undefined reference to `avpicture_fill(AVPicture*, unsigned char*, int, int, int)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:217: undefined reference to `url_fopen(ByteIOContext**, char const*, int)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:187: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:207: undefined reference to `av_free(void*)'
zm_mpeg.o: In function `VideoStream::SetParameters()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:126: undefined reference to `av_set_parameters(AVFormatContext*, AVFormatParameters*)'
zm_mpeg.o: In function `VideoStream::SetupCodec(int, int, int, int, int)':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:79: undefined reference to `av_new_stream(AVFormatContext*, int)'
zm_mpeg.o: In function `VideoStream::SetupFormat(char const*, char const*)':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:49: undefined reference to `guess_format(char const*, char const*, char const*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:61: undefined reference to `av_mallocz(unsigned int)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:53: undefined reference to `guess_format(char const*, char const*, char const*)'
zm_mpeg.o: In function `VideoStream::Initialise()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:39: undefined reference to `av_register_all()'
zm_mpeg.o: In function `VideoStream::SetParameters()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:126: undefined reference to `av_set_parameters(AVFormatContext*, AVFormatParameters*)'
zm_mpeg.o: In function `VideoStream::Initialise()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:39: undefined reference to `av_register_all()'
zm_mpeg.o: In function `VideoStream::SetParameters()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:126: undefined reference to `av_set_parameters(AVFormatContext*, AVFormatParameters*)'
zm_mpeg.o: In function `VideoStream::Initialise()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:39: undefined reference to `av_register_all()'
zm_mpeg.o: In function `~VideoStream':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:284: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:284: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:284: undefined reference to `av_free(void*)'
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:284: undefined reference to `av_free(void*)'
zm_mpeg.o: In function `VideoStream::OpenStream()':
/root/ZoneMinder-1.22.3/src/zm_mpeg.cpp:233: undefined reference to `av_write_header(AVFormatContext*)'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.22.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.22.3'
make: *** [all] Error 2


any idea?
User avatar
ammaross
Posts: 61
Joined: Mon Mar 12, 2007 8:34 pm
Location: Utah, USA

Post by ammaross »

Try this posting. Seems to solve this exact compile issue.
http://www.zoneminder.com/forums/viewto ... der+ffmpeg
It has a link to a patch for ZM that accomidates the new ffmpeg.
Locked