I upgraded without thinking to ubuntu 16.10 yesterday, with the result that I can no longer compile OpenCV or even run older versions due, I presume, to changes in shared libraries. The problem seems to be related to a change in gcc version. I've been stitching together corrections, but seem blocked currently on getting ffmpeg support compiled. I've found remarkably little information on the problem so far, perhaps because most folks were wise enough to wait on the upgrade? Does anyone know of a guide to getting this to work?
Currently my problem seems to be in linking highgui.so:
/usr/bin/ld: cannot find -lavcodec-ffmpeg /usr/bin/ld: cannot find -lavformat-ffmpeg /usr/bin/ld: cannot find -lavutil-ffmpeg /usr/bin/ld: cannot find -lswscale-ffmpeg /usr/bin/ld: cannot find -lavcodec-ffmpeg /usr/bin/ld: cannot find -lavformat-ffmpeg /usr/bin/ld: cannot find -lavutil-ffmpeg /usr/bin/ld: cannot find -lswscale-ffmpeg collect2: error: ld returned 1 exit status modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:714: recipe for target 'lib/libopencv_highgui.so.2.4.11' failed make[2]: * [lib/libopencv_highgui.so.2.4.11] Error 1 make[2]: Leaving directory '/home/mcaprio/opencv-2.4.11/install' CMakeFiles/Makefile2:1189: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed make[1]: [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make[1]: Leaving directory '/home/mcaprio/opencv-2.4.11/install' Makefile:163: recipe for target 'all' failed make: ** [all] Error 2
I did try "-no-pie" as an extra linker flag, but I obviously did not do it correctly as it was not in the output. Mikr