... | ... | @@ -38,13 +38,19 @@ https://blog.kevin-brown.com/programming/2014/09/27/building-and-installing-open |
|
|
|
|
|
In the following, change the OPENCV_EXTRA_MODULES_PATH to the place you checked out opencv_contrib to, if not /scratch:
|
|
|
|
|
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_EXTRA_MODULES_PATH=/scratch/opencv_contrib/modules -D
|
|
|
CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") -D
|
|
|
PYTHON_EXECUTABLE=$(which python3) ..
|
|
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_EXTRA_MODULES_PATH=/scratch/opencv_contrib/modules -D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") -D PYTHON_EXECUTABLE=$(which python3) ..
|
|
|
sudo make
|
|
|
sudo make install
|
|
|
|
|
|
**If you have trouble installing due to undefined references to the LIBTIFF_4.0 library**:
|
|
|
You will need to clear the cache and remake using BUILD_TIFF=ON as follows:
|
|
|
|
|
|
rm CMakeCache.txt
|
|
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D OPENCV_EXTRA_MODULES_PATH=/scratch/opencv_contrib/modules -D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") -D PYTHON_EXECUTABLE=$(which python3) -D BUILD_TIFF=ON ..
|
|
|
sudo make
|
|
|
sudo make install
|
|
|
|
|
|
|
|
|
Symlinks for hdf5:
|
|
|
|
|
|
cd (path to anaconda python)/envs/autocnet/lib/
|
... | ... | |