Take 2: Building cv2_xxx.pyd for Windows x64/Python3.7
I've tried to simplify replicating this issue by using the command line version of cmake and the configuration script that can be found here. It is about as simple as possible. There are no obvious errors/warnings from CMake but python3 support remains unavailable. Any help welcomed. How do the CI builds for this environment get configured and build?
MTIA.
configure script: https://raw.githubusercontent.com/g40/images/master/cfg.cmd
configuration log: https://raw.githubusercontent.com/g40/images/master/config.log
[edit] This is now working for VS2019x64 and Python 3.7 for release builds.
can i ask you to clean your build folder and start all over with cmake ? there are some interesting parts missing in your output, probably because it used cached vars from a prev. run
-D PYTHON3_LIBRARY="%PYROOT%/libs/python37.lib"-D
-- missing blank herewhat is -G -A x64 " ?
@berak. the script nukes ./build every time it is invoked. extra. is there another cache folder? space before -D added to no effect. :\\ ah. you mean the.cache folder?
@LBerger -G specifiies generator (VS2019 in this case) -A is architecture. x64 here.
and what's about the " ? it seems to be alone
I think I've now got a configuration that includes Python3 (details to follow) but now the VS2019 install step fails with
FWIW the python3 folder is emply. No .dll and no .so (why .so on Windows?)
Did you build something using vs2019 ? it takes 10 minutes to build opencv