在ubuntu12.04下编译opencv2.4.2时出现下面一个错误,请大神帮忙解答下
Linking CXX executable ../../bin/opencv_perf_imgproc
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_fifo_space'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_fifo_free'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_base64_encode'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `avpriv_vorbis_parse_frame'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_fifo_realloc2'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_aes_init'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_tree_insert'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_tree_enumerate'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_tree_node_size'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_sha_size'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_base64_decode'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_bitstream_filter_filter'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_adler32_update'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_bitstream_filter_close'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_sha_init'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_tree_find'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_fifo_generic_write'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `avcodec_register_all'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_fifo_size'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_fifo_alloc'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_sha_final'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_des_crypt'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_aes_size'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_bitstream_filter_init'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_fifo_drain'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `avpriv_vorbis_parse_reset'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_rc4_init'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_fifo_generic_read'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `avpriv_vorbis_parse_extradata'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_des_init'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_rc4_crypt'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_aes_crypt'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_des_mac'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_tree_destroy'
../../lib/libopencv_highgui.so.2.4.2: undefined reference to `av_sha_update'
collect2: ld 返回 1
make[2]: *** [bin/opencv_perf_imgproc] 错误 1
make[1]: *** [modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/all] 错误 2
make: *** [all] 错误 2