1 | initial version |
I found the reason for this problem. The file modules/python/src2/common.cmake is the file that generates the headers.txt that is passed into gen2.py. This file will filter out any file that matches any of the following regexes:
ocv_list_filterout(opencv_hdrs ".h$")
ocv_list_filterout(opencv_hdrs "cuda")
ocv_list_filterout(opencv_hdrs "cudev")
ocv_list_filterout(opencv_hdrs "/hal/")
ocv_list_filterout(opencv_hdrs "detection_based_tracker.hpp") # Conditional compilation
My build directory happend to be called py2-nocuda, so everything got filtered out, which caused this error. I assume something similar happened to you. You can probably rename your build dir (or change the path so it doesn't match any of these regexes) and then it will work.
I'm currently working on a patch to make these regexes a bit more specific. In the meanwhile I hope nobody has a homefolder named "cuda-user" :).
2 | No.2 Revision |
I found the reason for this problem. The file modules/python/src2/common.cmake is the file that generates the headers.txt that is passed into gen2.py. This file will filter out any file that matches any of the following regexes:
ocv_list_filterout(opencv_hdrs ".h$")
ocv_list_filterout(opencv_hdrs "cuda")
ocv_list_filterout(opencv_hdrs "cudev")
ocv_list_filterout(opencv_hdrs "/hal/")
ocv_list_filterout(opencv_hdrs "detection_based_tracker.hpp") # Conditional compilation
My build directory happend to be called py2-nocuda, so everything got filtered out, which caused this error. I assume something similar happened to you. You can probably rename your build dir (or change the path so it doesn't match any of these regexes) and then it will work.
I'm currently working on a patch to make these regexes a bit more specific. In the meanwhile I hope nobody has a homefolder named "cuda-user" :).
EDIT: it looks like this issue was fixed on 2016-07-13 by Maksim Shabunin in commit f698bc1cc277e8e7bc28c307438a5300268b5a25 It should be in versions 3.2.0 and beyond.