Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A: I believe that this was caused by problems with CMake/CMake-Gui interaction with Anaconda python. I already had Anaconda installed during the first attempted builds of OpenCV 4.1.2, which did have the BUILD_opencv_python3 option. So I'm guessing that moving the Anaconda folder forward, toward the beginning of the path, was what caused the problem. (Note that this is probably not the case for Berak's build above)

Unfortunately, this is not the only place where Cmake has problems interpreting the Anaconda installation. It also resulted in several Anaconda folders 'shadowing' correct folders within Cmake options. Initially, I hunted for all of those and set the correct options by hand. But that's no fun on repeated builds. So I've had to remove Anaconda from the path, which inexplicably restored the BUILD_opencv_python3 option.

This is unfortunate, since Anaconda is preferred by many doing neural net research. I do hope that programmers on the Cmake and Anaconda teams can coordinate and get their code to cooperate in the future. But for now, it seems to be an inherent incompatibility.