Ask Your Question

Revision history [back]

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

Hi all, I'm following the tutorial on http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation. 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?

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

Hi all, I'm following the tutorial on http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation. 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?