Build from git repo fails under Linux, but ok with Windows

asked 2014-07-19 19:46:14 -0500

kovand11 gravatar image

Any idea what is the source of this error?

/home/kovand/opencv/modules/videoio/src/cap_v4l.cpp: In function ‘bool mjpeg_to_rgb24(int, int, unsigned char*, int, unsigned char*)’:
/home/kovand/opencv/modules/videoio/src/cap_v4l.cpp:1740:16: error: ‘imdecode’ is not a member of ‘cv’
   cv::Mat temp=cv::imdecode(cv::Mat(std::vector<uchar>(src, src + length)), 1);
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o] Error 1
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make: *** [all] Error 2

Distro: Linux Mint 17 (all dependencies up to date) Used that tutorial:

edit retag flag offensive close merge delete



I found it, as a bug report:

kovand11 gravatar imagekovand11 ( 2014-07-19 20:25:32 -0500 )edit

yes, bug. highgui got split into 2 modules in 3.0.

did you intent to build the 3.0(master) version ?

if you wanted to build 2.4.9, you would do: git checkout 2.4 and rebuild

berak gravatar imageberak ( 2014-07-20 00:00:17 -0500 )edit