Option: BUILD_opencv_python3 missing from cmake-gui
I've downloaded versions of OpenCV 4.1.2 a few days apart. The earlier version has a cmake-gui option:
BUILD_opencv_python3:BOOL=ON
It is not present in today's version (2019 nov 04). It's not that it's switched off--the option does not appear at all. I'm not sure of its exact function (anyone?) but since it had defaulted to ON in the previous download, it sounded significant.
Another new flag is present in today's build:
OPENCV_ENABLE_MEMALIGN:BOOL=ON
I'm not as concerned about that, but it does indicate that some things have changed.
did it build any python3 bindings for you ?
not for me (instantly), since i already had an older opencv code.base around.
i had to remove
build/CMakeCache.txt
andbuild/CMakeVars.txt
, and start all over with cmake (the python detection cseems to have changed indeed !), to make it workThe build folder was completely clear at the start. Fresh install.
I just got as far as the 'configure' process, so I don't know if it would build python bindings. I didn't want to bother with building until I get the flags right.
Is there some detection criterion that would completely remove that python3 option from the cmake-gui menu?
PS: I wish there was some definitive doc on all the OpenCV cmake build flags. The most agonizing build process ever.
@berak: Is the exact purpose and function of that flag defined somwhere? Also, do you know if it would be affected by use of Anaconda Python rather than the stock python install?
@Martian, -- idk. i only stumbled over a related problem yesterday.
i'm not a python person, but i tend to avoid anaconda like the dependancy cancer it is...
Ouch! I've been working in C++, but I've always liked Anaconda's python implementation, as it seems like they have a unified approach. As far as I know, it's basically the stock python release, with additional packages added. And Conda of course. I've seen it used quite a bit in research.
As far as dependencies... I thought that was one thing in its -plus- column, in that the packages were already version-coordinated to work together. And Conda seems to have a higher level notion of interdependencies than does pip.
In this case, the option vanished between two builds of OpenCV 4.1.2, just days apart. This is why I hate doing OpenCV builds.
Do you know of any description of the exact function of that 'BUILD_opencv_python3' flag?
actually, after a couple of cmake runs, i DO have a
BUILD_opencv_python3
option, and it isON
Oh geez, It's OpenCV's random installation generator at work again. I've seen that before too.
Can you tell what difference that flag made in the build process?
@berak: What did you do to get the BUILD_opencv_python3 option to reappear?
@berak: Did you ever figure out what caused the BUILD_opencv_python3 option to reappear? It never came back for me.