[Paraview] problem with ffmpeg and paraview3.10.1

pratik pratik.mallya at gmail.com
Sun Apr 24 07:02:48 EDT 2011


Hi,
I tried 2 things to get ffmpeg to compile with PV3.10:
1) Compile ffmpeg from the source that i get on the VTK website, with 
detailed instructions for choosing ccmake options
2) use the ffmpeg package available for debian squeeze.

both of them fail to build :(.
In the first case, i don't have the error log, but it referred to 
something from libswscale, which is not installed through option 1. In 
option 2, since the header files of ffmpeg are spread arond in many 
others (libavutils,libavformat etc), i manually created a /ffmpeg 
directory in my /usr/include (btw for option 1 , i installed using a 
completely different prefix, so don't worry about overwrites :) ) and 
copied all the header files there, and pointed the ffmpeg include option 
there. Now i am getting the following error:

/usr/lib64/libavformat.so.52: undefined reference to 
`av_rescale at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_fifo_init at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to `av_mul_q at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_des_crypt at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_rescale_q at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`ff_log2_tab at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_int2dbl at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_md5_sum at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_aes_init at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_dbl2ext at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_evaluate_lls at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_random_generate_untempered_numbers at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_solve_lls at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_tree_node_size at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_base64_decode at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_stristart at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to `av_freep at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_strlcatf at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_malloc at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_rc4_init at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_ext2dbl at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_dbl2int at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to `av_log at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_fifo_free at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_lzo1x_decode at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_md5_size at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_random_init at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to `av_div_q at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_memcpy_backptr at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_mallocz at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_strdup at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_aes_size at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_aes_crypt at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_init_lls at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_md5_final at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_int2flt at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_rescale_rnd at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_fifo_size at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_crc_get_table at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_tree_find at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_fifo_read at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_tree_insert at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_fifo_drain at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_base64_encode at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_strlcat at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to `av_crc at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_lfg_init at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_md5_update at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_log_get_level at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_rc4_crypt at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_update_lls at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to `av_gcd at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_fifo_generic_write at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_fifo_generic_read at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`ff_sqrt_tab at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_md5_init at LIBAVUTIL_49'
../../../../../bin/libvtkIO.so.pv3.10: undefined reference to 
`av_free at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_realloc at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to `av_d2q at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_strstart at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_strlcpy at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_des_init at LIBAVUTIL_49'
/usr/lib64/libavcodec.so.52: undefined reference to 
`av_crc_init at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_reduce at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_fifo_realloc2 at LIBAVUTIL_49'
/usr/lib64/libavformat.so.52: undefined reference to 
`av_adler32_update at LIBAVUTIL_49'
collect2: ld returned 1 exit status
make[2]: *** [bin/QVTKCxxTests] Error 1
make[1]: *** 
[VTK/GUISupport/Qt/Testing/Cxx/CMakeFiles/QVTKCxxTests.dir/all] Error 2
make: *** [all] Error 2

what is going wrong here? Is PV3.10 supposed to compile with the older 
ffmpeg, available on vtk website or the new one available from 
apt-get/source? i read somewhere on the mailing list that the ffmpeg api 
had changed, and the abovementioned package contained the older one. 
Does PV3.10 use the old api or the new one?


More information about the ParaView mailing list