libswscale is necessary to... but libswscale is up-to-date

asked 2015-04-14 09:42:18 -0600

js85 gravatar image

updated 2018-01-07 04:59:20 -0600

Hi all, I'm following the tutorial on http://docs.opencv.org/doc/tutorials/.... I stumbled on some problems, and read the forumpost on this forum regarding this issue, but couldn't solve my problem. The installer asks for libswscale, but this lib is installed. I have a dir ~/opencv where the files from git are placed in. In this dir I typed cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. I have a dir ~/opencv/release where the cmakefiles are placed in I type cd ~/opencv/release and type make I get the following message:

In file included from ~/opencv/modules/highgui/src/cap_ffmpeg.cpp:45:0:
~/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:71:6: error: #error "libswscale is necessary to build the newer OpenCV ffmpeg wrapper"

Although I was sure I installed the prerequisites as mentioned in the tutorial, I try to install the missing packages (together with some others):

js85@js85-OptiPlex-990:~/openCvDir/release$ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
cmake is already the newest version.
pkg-config is already the newest version.
git is already the newest version.
libgtk2.0-dev is already the newest version.
libavcodec-dev is already the newest version.
libavformat-dev is already the newest version.
libswscale-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

I'm wondering why libswscale is not found. I assume libswscale-dev is exchangeable with libswscale. Is this assumption correct? I tried to find libswscale instead of libswscale-dev, but couldn't find it. Can anyone point me in the right direction?

edit retag flag offensive close merge delete