Skip to content

Instantly share code, notes, and snippets.

@shannonmitchell
Last active November 15, 2016 12:57
Show Gist options
  • Save shannonmitchell/1d4784b7f1aa26ba8ac5fbc37e55e5c3 to your computer and use it in GitHub Desktop.
Save shannonmitchell/1d4784b7f1aa26ba8ac5fbc37e55e5c3 to your computer and use it in GitHub Desktop.
# installed the centos minimal version into virtualbox on windows 10
yum groupinstall "GNOME Desktop"
reboot
yum install cmake python-devel numpy gcc gcc-c++ gtk2-devel libdc1394-devel libv4l-devel \
gstreamer-plugins-base-devel libpng-devel libjpeg-turbo-devel jasper-devel openexr-devel \
libtiff-devel libwebp-devel tbb-devel eigen3-devel python-sphinx texlive python-matplotlib git
setenforce 0
git clone https://github.com/Itseez/opencv.git
cd opencv/
mkdir build
cd build/
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
make install
ln -s /usr/local/lib/python2.7/site-packages/cv2.so /usr/lib/python2.7/site-packages/cv2.so
# instaled the vbox tools to allow me to cut-n-paste into the window
yum groupinstall "Development Tools"
Click on 'Devices' -> 'Insert Guest Additions CD Image...'
cd /run/media/<my gnome session username>/VBOXADDITIONS_5.1.6_110634/
KERN_DIR=/usr/src/kernels/3.10.0-327.36.3.el7.x86_64 ./VBoxLinuxAdditions.run
# Cut-n-pasted the code into a file, ran and worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment