Closed smmmmi closed 7 years ago
Using sudo
for build is not a good idea.
Matlab bindings generator uses python, but it is not found properly for some reason:
-- Python 2:
-- Interpreter: (ver 2.7.12)
--
-- Python 3:
-- Interpreter: /home/mohammad/.virtualenvs/cv/bin/python3 (ver 3.5.2)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (ver 3.5.2)
-- numpy: /home/mohammad/.virtualenvs/cv/local/lib/python3.5/site-packages/numpy/core/include (ver 1.12.1)
-- packages path: lib/python3.5/site-packages
--
-- Python (for build):
CMake log shows that CMake run is not "clean". Build should be run from scratch (from clean build directory) on large source code updates or on external changes (for example, after upgrading of system packages) - see "CMake cache" story.
Just had this exact same issue with a clean build directory. Definitely nothing to do with that. cmake log https://gist.github.com/ThaHypnotoad/51dbfe4eda668ab8f5741fae8af4e5b2 make install log https://gist.github.com/ThaHypnotoad/04362981595a07cd4b02b15400f4d5a6
please reopen.
Building opencv-3.2.0 + opencv_contrib-3.2.0 on Ubuntu 16.4 Following this tutorial, after the 'make -j $(nproc)' on the 'sudo make install' step I get this permission error:
The workaround to fix it was to manually go to the source folder (path/to/opencv_contrib-3.2.0/modules/matlab/generator/) and set execute permission for the .py files (gen_matlab.py and ...).