philkr / lpo

Implementation of the CVPR 2015 paper: Learning to propose objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with CMake

cuatristapr opened this issue · comments

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.

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

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.

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

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.

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.

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.

Did you install python via Anaconda?

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