File not found error while building opencv 3.1.0 [closed]

asked 2018-01-03 05:38:35 -0600

I am trying to build opencv with CUDA 8 but the above mentioned error poped up. I tried searching for this, but instead found some other errors related to syntax and older versions of python. Below , I am posting the terminal output

Traceback (most recent call last):
  File "/home/bittu/opencv-3.1.0-with-cuda8/modules/python/python3/..//src2/gen2.py", line 943, in <module>
    generator.gen(srcfiles, dstdir)
  File "/home/bittu/opencv-3.1.0-with-cuda8/modules/python/python3/..//src2/gen2.py", line 852, in gen
    decls = self.parser.parse(hdr)
  File "/home/bittu/opencv-3.1.0-with-cuda8/modules/python/src2/hdr_parser.py", line 746, in parse
    f = io.open(hname, 'rt', encoding='utf-8')
FileNotFoundError: [Errno 2] No such file or directory: ''
modules/python3/CMakeFiles/opencv_python3.dir/build.make:63: recipe for target 'modules/python3/pyopencv_generated_include.h' failed
make[2]: *** [modules/python3/pyopencv_generated_include.h] Error 1
CMakeFiles/Makefile2:5905: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed
make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

I am new to linux, hence the above problem does not even make sense to me

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2018-01-03 10:09:52.037028

Comments

  • why outdated opencv3.1 ?
  • there will be NO cuda support for python AT ALL. (why the trouble, then ?)
berak gravatar imageberak ( 2018-01-03 06:10:16 -0600 )edit

Ok, didnt knew that. Thanks. But still, what is the problem with the current building?

Abhishek13 gravatar imageAbhishek13 ( 2018-01-03 06:23:42 -0600 )edit

you should update to latest 3.4. problem might be already solved there.

berak gravatar imageberak ( 2018-01-03 06:28:25 -0600 )edit
1

@berak That worked. I tried with ver 3.4.0. And no issues faces.

Abhishek13 gravatar imageAbhishek13 ( 2018-01-03 09:43:08 -0600 )edit