[Slackbuilds-users] libva upgrade breaks opencv
Enguerrand de Rochefort
slackbuilds at rochefort.de
Sat Mar 14 23:01:35 UTC 2015
Hi all,
when I try to build opencv-2.4.11 the build aborts with the following error message:
Linking CXX executable ../../bin/opencv_perf_core
cd /tmp/SBo/opencv-2.4.11/build/modules/core && /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_perf_core.dir/link.txt --verbose=1
/usr/bin/c++ -O2 -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -ffunction-sections -O3 -DNDEBUG -DNDEBUG CMakeFiles/opencv_perf_core.dir/perf/perf_dft.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_inRange.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_norm.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_main.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_convertTo.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_merge.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_addWeighted.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_math.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_abs.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_split.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_reduc
e.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_bitwise.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_mat.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_minmaxloc.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_dot.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_compare.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_arithm.cpp.o CMakeFiles/opencv_perf_core.dir/perf/perf_stat.cpp.o -o ../../bin/opencv_perf_core -rdynamic ../../lib/libopencv_core.so.2.4.11 ../../lib/libopencv_ts.a ../../lib/libopencv_highgui.so.2.4.11 ../../lib/libopencv_core.so.2.4.11 ../../lib/libopencv_flann.so.2.4.11 ../../lib/libopencv_imgproc.so.2.4.11 ../../lib/libopencv_highgui.so.2.4.11 ../../lib/libopencv_features2d.so.2.4.11 ../../lib/libopencv_video.so.2.4.11 -ldl -lm -lpthread -lrt ../../lib/libopencv_highgui.so.2.4.11 ../../lib/libopencv_flann.so.2.4.11 ../../lib/libopencv_imgproc.so.2.4.11 ../../lib/libopencv_core.so.2.4.11 -Wl,-rpath,/tmp/SBo/opencv-2.4.11/build/lib
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: warning: libva-0.31.1.1.so.1, needed by /usr/lib64/libavcodec.so.55, not found (try using -rpath or -rpath-link)
/usr/lib64/libavcodec.so.55: undefined reference to `vaRenderPicture'
/usr/lib64/libavcodec.so.55: undefined reference to `vaCreateBuffer'
/usr/lib64/libavcodec.so.55: undefined reference to `vaMapBuffer'
/usr/lib64/libavcodec.so.55: undefined reference to `vaDestroyBuffer'
/usr/lib64/libavcodec.so.55: undefined reference to `vaEndPicture'
/usr/lib64/libavcodec.so.55: undefined reference to `vaUnmapBuffer'
/usr/lib64/libavcodec.so.55: undefined reference to `vaBeginPicture'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/opencv_perf_core] Error 1
make[2]: Leaving directory `/tmp/SBo/opencv-2.4.11/build'
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
make[1]: Leaving directory `/tmp/SBo/opencv-2.4.11/build'
make: *** [all] Error 2
It seems libva was upgraded to version 1.5 like a week or so ago (at least that's when I installed the upgrade on my system). If I revert to version 0.31 the opencv build goes through again... not sure if this information is helpful to anyone...?
More information about the SlackBuilds-users
mailing list