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

Error with CMake #20

Open
cuatristapr opened this issue Jul 27, 2015 · 8 comments
Open

Error with CMake #20

cuatristapr opened this issue Jul 27, 2015 · 8 comments

Comments

@cuatristapr
Copy link

Hey, whenever I try to compile using cmake it throws an error. Below is the output. Any help is appreciated.


CMake Error at /usr/local/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find PythonInterp: Found unsuitable version "1.4", but required
is at least "3.3" (found /usr/bin/python3)
Call Stack (most recent call first):
/usr/local/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.2/Modules/FindPythonInterp.cmake:162 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)

lib/python/CMakeLists.txt:10 (find_package)

...I'm running Python 3.4 and CMake 3.2.3.

@philkr
Copy link
Owner

philkr commented Jul 27, 2015

That is a bit odd. How did you install python? what do you get if you type /usr/bin/python3 --version.

@cuatristapr
Copy link
Author

I get Python 3.4.0. I just ran cmake .. -DCMake etc etc (without the path to datasets flag because I don't need it at all) and it found the python libraries without any problem, except for NumPy. Now it's throwing this:

-- Found PythonInterp: /usr/bin/python3 (found version "3.4")
CMake Error at cmake/FindNumPy.cmake:61 (message):
NumPy import failure:

Traceback (most recent call last):

File "<string>", line 1, in <module>

ImportError: No module named 'numpy'

Call Stack (most recent call first):

lib/python/CMakeLists.txt:12 (find_package)

I think it's because of the NumPy support for Python 3.x. I'll make sure it's installing the dependencies on the correct Python version.

@cuatristapr
Copy link
Author

Fixed the NumPy issue with:
sudo apt-get install python3-numpy

@cuatristapr
Copy link
Author

make[2]: *** [lib/imgproc/CMakeFiles/imgproc.dir/filter.cpp.o] Error 1
make[1]: *** [lib/imgproc/CMakeFiles/imgproc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/ubuntu/lpo/lib/imgproc/color.cpp:33:23: fatal error: emmintrin.h: No such file or directory
#include <emmintrin.h>

...I'm recieving this output when I run make -j9. That's like about 40% of the compilation process. Just for background information, I'm running this on a Jetson TK1 embedded-computer system. It's an ARM-based architecture.

@philkr
Copy link
Owner

philkr commented Jul 28, 2015

Hmm that's the SSE parts of the code, which doesn't work on ARM. You can comment it out and try to use the non-SIMD code. There should be a non-SIMD implementation of every piece of code.

@cuatristapr
Copy link
Author

Honestly, I have no idea where that is or what that is. Any help will be appreciated. And excuse me for my low-level knowledge about this.

@siddharthgee
Copy link

Did you install python via Anaconda?

@cuatristapr
Copy link
Author

@siddharthgee Originally, yes. I uninstalled all the dependencies of anaconda and python, and later installed python 3 through ubuntu command line.

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

3 participants