Ask Your Question
0

Help: OpenCV Make issue

asked 2013-09-19 02:29:06 -0600

junningliu gravatar image

updated 2013-09-19 03:05:05 -0600

I have a problem when i use 'make',

Linking CXX executable ../../bin/opencv_test_gpu
[ 94%] Built target opencv_test_gpu
[ 94%] Generating pyopencv_generated_funcs.h, pyopencv_generated_func_tab.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_const_reg.h
Warning: class Feature2D has more than 1 base class (not supported by Python C extensions)
Bases:  cv::FeatureDetector, cv::DescriptorExtractor
Only the first base class will be used
[ 94%] Generating generated0.i
Generated 377 functions
Scanning dependencies of target opencv_python
[ 94%] Building CXX object modules/python/CMakeFiles/opencv_python.dir/src2/cv2.cpp.o
/home/junningliu/下载/OpenCV-2.4.3/modules/python/src2/cv2.cpp:9:33: fatal error: numpy/ndarrayobject.h: have no file
compilation terminated.
make[2]: *** [modules/python/CMakeFiles/opencv_python.dir/src2/cv2.cpp.o] fault 1
make[1]: *** [modules/python/CMakeFiles/opencv_python.dir/all] fault 2
make: *** [all] fault 2
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2013-09-20 03:43:04 -0600

You can disable Python support by passing -DBUILD_opencv_python to cmake or just install devel package for python and numpy.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-19 02:29:06 -0600

Seen: 2,708 times

Last updated: Sep 20 '13