Compiling 2.4.11 on Ubuntu 16.10

asked 2016-10-18 16:56:30 -0500

BuggedMike gravatar image

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

edit retag flag offensive close merge delete

Comments

I am a new user of OpenCV under Linux / Ubuntu. Had my shares of problem eons ago while running in WIndows. At present I just cannot link to OpenCV in similar manner as described. I feel pretty confident about my IDE , but have a burning question to this forum. Since I am again hijacking discussions I'll attempt to post a new one.
Hope this one will get answered soon.

Vaclav gravatar imageVaclav ( 2016-11-14 10:56:17 -0500 )edit