Open hanss314 opened 6 years ago
Interesting - while I get those unused variable warnings, compilation succeeds on my non-Linux machine.
Both those undeclared identifiers, on my machine, are defined in opencv2/highgui/highgui_c.h
, which opencv/highgui.h
includes. It's possible that in the near decade (good lord!) since this code was written, the OpenCV interface changed - looking at the highgui docs[1] for what I assume is a recent version, those identifiers aren't present either. According to pkg-config --libs opencv
, I am linking against version 2.4.13.2, so this project, unfortunately, simply might not compile if you've installed a semi-recent version of OpenCV.
[1] https://docs.opencv.org/3.3.1/d0/d28/group__highgui__c.html
Looking at a few SO threads it appears that at least CV_LOAD_IMAGE_GRAYSCALE has been removed. Might try building an older version of OpenCV from source.
It also seems straightforward, I'd guess, to bump the opencv dependency version and change the usage here; however, real life beckons and I'm short on cycles to take that on for the next little while, so you're likely to get faster results by grabbing an older library version...
No problem, I wasn't expecting you to maintain this in the first place.
make
returns the following erroron Arch Linux 64-bit, gcc 7.3.0