Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: numpy/ndarrayobject.h: No such file or directory #12

Open
shaikhibrahim951 opened this issue May 8, 2018 · 1 comment
Open

Comments

@shaikhibrahim951
Copy link

Hi
I am trying to build this package in Ubuntu 16.04 and I have 3 versions of python i.e python2.7, python3.5 and python3.6. It is building successfully but after going for make it is showing fatal error.
I am posting below kindly help.

user@BLRMIESPC-756:~/numpy-opencv-converter-master/build$ cmake .. -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for module 'opencv' -- Found opencv, version 3.3.1 -- Boost version: 1.58.0 -- Found the following Boost libraries: -- python -- system -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found version "3.6.3") -- Boost version: 1.58.0 -- Found the following Boost libraries: -- python -- system -- Configuring done -- Generating done -- Build files have been written to: /home/user/numpy-opencv-converter-master/build
After typing make
user@BLRMIESPC-756:~/numpy-opencv-converter-master/build$ make Scanning dependencies of target np_opencv_converter [ 20%] Building CXX object CMakeFiles/np_opencv_converter.dir/np_opencv_converter.cpp.o In file included from /home/user/numpy-opencv-converter-master/np_opencv_converter.hpp:15:0, from /home/user/numpy-opencv-converter-master/np_opencv_converter.cpp:5: /home/user/numpy-opencv-converter-master/utils/conversion.h:10:33: fatal error: numpy/ndarrayobject.h: No such file or directory compilation terminated. CMakeFiles/np_opencv_converter.dir/build.make:62: recipe for target 'CMakeFiles/np_opencv_converter.dir/np_opencv_converter.cpp.o' failed make[2]: *** [CMakeFiles/np_opencv_converter.dir/np_opencv_converter.cpp.o] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/np_opencv_converter.dir/all' failed make[1]: *** [CMakeFiles/np_opencv_converter.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

@johannathiemich
Copy link

I have the exact same problem and would be happy to find an answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants