ylqfp / pyopencv

Automatically exported from code.google.com/p/pyopencv
0 stars 0 forks source link

Failure to build on Ubuntu #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
So I've been trying to build PyOpenCV , using both cmake and the provided 
setup.py
But I keep on getting the same error 
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution 
option: 'include_package_data'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution 
option: 'install_requires'
  warnings.warn(msg)
running build
running build_py
running build_ext
building 'pyopencv.pyopencv_extras' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/local/include 
-I/usr/local/include/opencv2 -I/usr/local/include 
-I/home/amine/pyopencv/package -I/home/amine/pyopencv/package/extras 
-I/home/amine/pyopencv/package/extras/core 
-I/home/amine/pyopencv/package/extras/sdopencv 
-I/usr/lib/python2.7/dist-packages/numpy/core/include/numpy 
-I/usr/include/python2.7 -c package/extras/core/ndarray.cpp -o 
build/temp.linux-i686-2.7/package/extras/core/ndarray.o -O3 -DNDEBUG -O3 
-ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for 
C/ObjC but not for C++ [enabled by default]
In file included from package/extras/core/ndarray.cpp:18:0:
package/extras/core/ndarray.hpp:18:30: fatal error: opencv_headers.hpp: No such 
file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

And attached you will find my config.py file
Please , could anyone show me the right way

Original issue reported on code.google.com by amine.ch...@gmail.com on 12 Mar 2013 at 1:20

Attachments: