PiRSquared17 / pyopencv

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

cxcore.h: No such file or directory - compilation error in Linux #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run setuptools-0.6c11-py2.6.egg as root
2. Run setup.py config
3. Run setup.py install as root

What is the expected output? What do you see instead?
I get a compilation error:
In file included from package/extras/core/opencv_extra.hpp:15,
                 from package/extras/core/opencv_converters.hpp:17,
                 from package/extras/core/opencv_converters.cpp:14:
package/extras/core/opencv_headers.hpp:7: fatal error: cxcore.h: No such file 
or directory
compilation terminated.

What version of the product are you using? On what operating system?
pyopencv-2.1.0.wr1.2.0 source
Configuration: Ubuntu 10.10, with packages libboost-python-dev v1.42.0, 
libcv-dev v2.1.0 and libcvaux-dev v2.1.0 and their dependencies installed

Please provide any additional information below.
The pyopencv configuration seems to be unable to locate the include directories 
for opencv.

Original issue reported on code.google.com by first.en...@gmail.com on 7 Nov 2010 at 8:02

GoogleCodeExporter commented 9 years ago
Please ignore the above. I had a stale config.py from a previous install that 
did not get overwritten.

Original comment by first.en...@gmail.com on 7 Nov 2010 at 10:41

GoogleCodeExporter commented 9 years ago
No problem. :)

Original comment by pmtri80@gmail.com on 8 Nov 2010 at 6:10

GoogleCodeExporter commented 9 years ago
hey, i am facing the same problem. can you please share your "config.py" file 
here so that i can make the necessary changes and compile Opencv on my system.
Thanks. :)

Original comment by rohitgoy...@gmail.com on 22 Dec 2011 at 11:47

GoogleCodeExporter commented 9 years ago
same here (on Ubuntu 12.04):

    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/include -I/media/sda1/ssd/home/hobs/.virtualenvs/thermostat/build/pyopencv/package -I/media/sda1/ssd/home/hobs/.virtualenvs/thermostat/build/pyopencv/package/extras -I/media/sda1/ssd/home/hobs/.virtualenvs/thermostat/build/pyopencv/package/extras/core -I/media/sda1/ssd/home/hobs/.virtualenvs/thermostat/build/pyopencv/package/extras/sdopencv -I/media/sda1/ssd/home/hobs/.virtualenvs/thermostat/build/pyopencv/package/extras/numpy_include -I/usr/include/python2.7 -c package/extras/core/opencv_converters.cpp -o build/temp.linux-x86_64-2.7/package/extras/core/opencv_converters.o -O3 -DNDEBUG -O3 -ffast-math -DNDEBUG
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
    In file included from package/extras/core/opencv_extra.hpp:15:0,
                     from package/extras/core/opencv_converters.hpp:17,
                     from package/extras/core/opencv_converters.cpp:14:
    package/extras/core/opencv_headers.hpp:7:20: fatal error: cxcore.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1

Original comment by hobsonlane@gmail.com on 30 Mar 2013 at 9:45

GoogleCodeExporter commented 9 years ago
Same problem here

--snip--
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++

In file included from package/extras/core/opencv_extra.hpp:15,

                 from package/extras/core/opencv_converters.hpp:17,

                 from package/extras/core/opencv_converters.cpp:14:

package/extras/core/opencv_headers.hpp:7:20: error: cxcore.h: No such file or 
directory

In file included from package/extras/core/opencv_headers.hpp:9,

                 from package/extras/core/opencv_extra.hpp:15,

                 from package/extras/core/opencv_converters.hpp:17,

                 from package/extras/core/opencv_converters.cpp:14:

/tmp/pip-build-root/pyopencv/package/extras/sdopencv/sdcxmat.hpp:58: error: 
âMatâ has not been declared
--snip--

Original comment by makobu.mwambiriro@gmail.com on 6 Jun 2013 at 12:46