Hello, I’m trying to compile GMIC on Debian; I have also built opencv from source, it’s version is 4.1.0-dev
During the GMIC compile I get an error:
In file included from gmic.h:185,
from gmic.cpp:1802:
./CImg.h: In member function ‘cimg_library::CImg& cimg_library::CImg::load_camera(unsigned int, unsigned int, unsigned int, unsigned int, bool)’:
./CImg.h:52692:37: error: ‘CV_CAP_PROP_FRAME_WIDTH’ was not declared in this scope
captures[camera_index]->set(CV_CAP_PROP_FRAME_WIDTH,capture_width);
When I check the opencv header files I find that videoio.hpp has declared:
CAP_PROP_FRAME_WIDTH =3, //!< Width of the frames in the video stream.
I’m not sure when this was renamed, perhaps in some version 3.x? Can GMIC check for the occurrence of CV_CAP_PROP_FRAME_WIDTH and CAP_PROP_FRAME_WIDTH?
Honestly, I don’t know…
OpenCV support in G’MIC has always been a nightmare, whether on Windows, Linux or MacOSX.
There are frequent API changes. I’m not even sure G’MIC can compile with OpenCV 4
(it does with OpenCV 3.x for sure).