User avatar
jbeale
Posts: 3367
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

compiling opencv from github [Resolved]

Tue Oct 29, 2013 5:43 pm

I attempted to compile the current version of opencv https://github.com/Itseez/opencv/archive/master.zip by doing:

Code: Select all

unzip master.zip
cd opencv-master
cmake .
make
and it crunched away happily for a while (maybe half an hour), and then gave me this error:

Code: Select all

Linking CXX shared library ../../lib/libopencv_core.so
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
make[2]: *** [lib/libopencv_core.so.3.0.0] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Anyone know how to fix this? The one possibly nonstandard thing I'm doing is that the compilation is on an external USB stick, as my first attempt ran out of disk space (needs more than 1 GB to compile, it seems).

Oops, found the answer: http://askubuntu.com/questions/235700/l ... ared-drive
My USB stick has a 'vfat' format, which does not support symlinks. Drat. Reformatted it to EXT4 and trying again... looks like the complete opencv compile will take 9 hours (!) Will check back tomorrow.

EDIT: Ok, I was able to compile opencv 3.0.0-dev on my R-Pi Model A. It took approximately 10 (ten) hours, and occupies about 3 GB on the memory stick.

EDIT2: recompiling with "PYTHON" option turned on, fails to complete. Oh well.

Return to “Camera board”