Changes to install script
This commit is contained in:
parent
79046cebcc
commit
ea64969e51
1 changed files with 6 additions and 6 deletions
12
install.sh
12
install.sh
|
@ -37,18 +37,18 @@ echo "Essential dependencies installed."
|
||||||
|
|
||||||
# OpenCV Dependency
|
# OpenCV Dependency
|
||||||
echo "Downloading OpenCV..."
|
echo "Downloading OpenCV..."
|
||||||
wget https://github.com/Itseez/opencv/archive/3.1.0.zip
|
wget https://github.com/opencv/opencv/archive/3.4.0.zip
|
||||||
unzip 3.1.0.zip
|
unzip 3.4.0.zip
|
||||||
cd opencv-3.1.0
|
cd opencv-3.4.0
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
echo "Installing OpenCV..."
|
echo "Installing OpenCV..."
|
||||||
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_SHARED_LIBS=OFF ..
|
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_CUDA=OFF -D BUILD_SHARED_LIBS=OFF ..
|
||||||
make -j4
|
make -j4
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ../..
|
cd ../..
|
||||||
rm 3.1.0.zip
|
rm 3.4.0.zip
|
||||||
sudo rm -r opencv-3.1.0
|
sudo rm -r opencv-3.4.0
|
||||||
echo "OpenCV installed."
|
echo "OpenCV installed."
|
||||||
|
|
||||||
# Boost C++ Dependency
|
# Boost C++ Dependency
|
||||||
|
|
Loading…
Reference in a new issue