Bug#664800: opencv: Source build fails because cmake selects wrong python include and library paths

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Thu Jun 28 01:07:22 UTC 2012


Hi,

Thank you for your report.

> Source: opencv
> Version: 2.3.1-7
> Severity: normal
>
> Source build fails with following error when python3.2 is installed:
>
> cd /home/dave/debian/opencv/opencv-2.3.1/obj-hppa-linux-gnu/modules/python && /usr/bin/g++-4.6   -Dopencv_python_EXPORTS -DHAVE_CVCONFIG_H -Wall -pthread -ffunction-sections  -g -O2 -Wformat -Wformat-security -Werror=format-security  -fomit-frame-pointer -ffast-math -DNDEBUG  -fPIC -I/usr/lib/pymodules/python2.7/numpy/core/include -I/home/dave/debian/opencv/opencv-2.3.1/. -I/home/dave/debian/opencv/opencv-2.3.1/obj-hppa-linux-gnu -I/home/dave/debian/opencv/opencv-2.3.1/include -I/home/dave/debian/opencv/opencv-2.3.1/include/opencv -I/usr/include/python3.2 -I/home/dave/debian/opencv/opencv-2.3.1/modules/python/src2 -I/home/dave/debian/opencv/opencv-2.3.1/modules/core/include -I/home/dave/debian/opencv/opencv-2.3.1/modules/flann/include -I/home/dave/debian/opencv/opencv-2.3.1/modules/imgproc/include -I/home/dave/debian/opencv/opencv-2.3.1/modules/video/include -I/home/dave/debian/opencv/opencv-2.3.1/modules/highgui/include -I/home/dave/debian/opencv/opencv-2.3.1/modules/ml/incl
 ude -I/home/dave/debian/opencv/opencv-2.3.1/modules/features2d/include
-I/home/dave/debian/opencv/opencv-2.3.1/modules/calib3d/include
-I/home/dave/debian/opencv/opencv-2.3.1/modules/objdetect/include
-I/home/dave/debian/opencv/opencv-2.3.1/modules/legacy/include
-I/home/dave/debian/opencv/opencv-2.3.1/modules/contrib/include
-I/home/dave/debian/opencv/opencv-2.3.1/obj-hppa-linux-gnu/modules/python
   -D PYTHON_USE_NUMPY=1 -o CMakeFiles/opencv_python.dir/src2/cv2.o -c
/home/dave/debian/opencv/opencv-2.3.1/modules/python/src2/cv2.cpp
> /home/dave/debian/opencv/opencv-2.3.1/modules/python/src2/cv2.cpp: In function ‘bool pyopencv_to(PyObject*, cv::Scalar&, const char*)’:
> /home/dave/debian/opencv/opencv-2.3.1/modules/python/src2/cv2.cpp:270:56: error: ‘PyInt_Check’ was not declared in this scope
> /home/dave/debian/opencv/opencv-2.3.1/modules/python/src2/cv2.cpp:279:46: error: ‘PyInt_Check’ was not declared in this scope
> /home/dave/debian/opencv/opencv-2.3.1/modules/python/src2/cv2.cpp: In function ‘PyObject* pyopencv_from(int)’:
> /home/dave/debian/opencv/opencv-2.3.1/modules/python/src2/cv2.cpp:317:32: error: ‘PyInt_FromLong’ was not declared in this scope
> /home/dave/debian/opencv/opencv-2.3.1/modules/python/src2/cv2.cpp: In function ‘bool pyopencv_to(PyObject*, int&, const char*)’:
> /home/dave/debian/opencv/opencv-2.3.1/modules/python/src2/cv2.cpp:324:34: error: ‘PyInt_AsLong’ was not declared in this scope

I confirmed this problem. But I will not fix this in wheezy.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6





More information about the debian-science-maintainers mailing list