Skip to main content

Thread: Error in installing Open-CV with ffmpeg


i trying install library open-cv working on on ubuntu 11.04.

followed instructions found in [installationguide][1].

after installing success realized hadn't `ffmpeg` support because in configuration file `ffmpeg` disabled:

video i/o:
-- dc1394 1.x: no
-- dc1394 2.x: yes
-- ffmpeg: no
-- codec: yes
-- format: yes
-- util: yes
-- swscale: no
-- gentoo-style: yes
-- gstreamer: yes
-- unicap: no
-- pvapi: no
-- v4l/v4l2: using libv4l
-- xine: no


tried rebuild after installing ffmepg decribed [here][2].

after configuring installation instruction

cmake -d cmake_build_type=release -d cmake_install_prefix=/usr/local -d build_python_support=on ../opencv-2.3.1

ran make command getting error:

make[2]: *** [bin/opencv_test_calib3d] error 1
make[1]: *** [modules/calib3d/cmakefiles/opencv_test_calib3d.dir/all] error 2
make: *** [all] error 2

point of compilation error coming out:

linking cxx executable ../../bin/opencv_test_calib3d
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_analysis_headerout'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_out_samplerate'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_disable_reservoir'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_encode_buffer'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vaunmapbuffer'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vadestroybuffer'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_comment_clear'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_param_default'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_param_apply_profile'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_brate'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_encoder_headers'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `faacencgetcurrentconfiguration'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_analysis_blockout'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_info_clear'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_analysis_buffer'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_comment_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vacreatebuffer'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_bwritevbrtag'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `faacencsetconfiguration'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_encode_ctl'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `d_if_decode'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `faacencgetdecoderspecificinfo'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_block_clear'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_close'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_encoder_encode'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_vbr'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `encoder_interface_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_analysis'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_get_framesize'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `faacencopen'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_encode_packetout'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_quality'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `decoder_interface_exit'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_encode_alloc'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_encode_setup_vbr'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_info_clear'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_in_samplerate'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_encoder_reconfig'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_param_apply_fastfirstpass'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_vbr_quality'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_mode'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `d_if_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_set_num_channels'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `faacencencode'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_encode_setup_managed'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `encoder_interface_exit'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `decoder_interface_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `varenderpicture'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_encode_ctl'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_info_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_analysis_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_encoder_delayed_frames'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_param_parse'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_encode_free'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `d_if_exit'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_dsp_clear'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `decoder_interface_decode'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vamapbuffer'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_block_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_bit_depth'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_picture_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_encoder_close'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_encoder_open_120'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `faacencclose'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vaendpicture'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_encode_flush'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_encode_buffer_interleaved'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_comment_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_comment_clear'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_init_params'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `x264_param_default_preset'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_encode_setup_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_bitrate_addblock'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_comment_add_tag'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_encode_flushheader'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `lame_encode_buffer_int'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `th_encode_ycbcr_in'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_bitrate_flushpacket'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_analysis_wrote'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vorbis_info_init'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `encoder_interface_encode'
../../lib/libopencv_highgui.so.2.3.1: undefined reference `vabeginpicture'
collect2: ld returned 1 exit status

can please tell me what's problem installation process i'm following?

why there library referentiation error?

[1]: http://opencv.willowgarage.com/wiki/installguide_linux
[2]: http://ubuntuforums.org/showthread.php?t=786095



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Error in installing Open-CV with ffmpeg


Ubuntu

Comments