Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor update #21

Open
moreandres opened this issue Feb 25, 2014 · 0 comments
Open

minor update #21

moreandres opened this issue Feb 25, 2014 · 0 comments

Comments

@moreandres
Copy link

Hi, your script is really useful.
What do you think of this quick update?

It is a typo, plus telling wget to avoid downloading the package if already there, and instead of 4 use only the available number of cores on the system.

diff --git a/Ubuntu/opencv_install.sh b/Ubuntu/opencv_install.sh
index ca04719..c4dd155 100755
--- a/Ubuntu/opencv_install.sh
+++ b/Ubuntu/opencv_install.sh
@@ -20,10 +20,10 @@ mkdir $dldir
cd $dldir
echo "Removing any pre-installed ffmpeg and x264"
sudo apt-get -qq remove ffmpeg x264 libx264-dev
-echo "Installing Dependenices"
+echo "Installing Dependencies"
sudo apt-get -qq install libopencv-dev build-essential checkinstall cmake pkg-
echo "Downloading OpenCV" $version
-wget -O $downloadfile http://sourceforge.net/projects/opencvlibrary/files/open
+wget -c -O $downloadfile http://sourceforge.net/projects/opencvlibrary/files/o
echo "Installing OpenCV" $version
echo $downloadfile | grep ".zip"
if [ $? -eq 0 ]; then
@@ -35,7 +35,7 @@ cd opencv-$version
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_T
-make -j 4
+make -j cat /proc/cpuinfo | grep processor | wc -l
sudo make install
sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig
diff --git a/get_latest_version_download_file.sh b/get_latest_version_download_
old mode 100644
new mode 100755

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant