1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

update README.rdoc

This commit is contained in:
ser1zw 2012-04-23 00:00:31 +09:00
parent 0558e41af9
commit a0662492d8

View file

@ -35,7 +35,7 @@ OpenCV wrapper for Ruby
$ git clone git://github.com/ruby-opencv/ruby-opencv.git $ git clone git://github.com/ruby-opencv/ruby-opencv.git
$ cd ruby-opencv $ cd ruby-opencv
$ git checkout master # for OpenCV 2.3 or later. To use OpenCV 2.2, type "git checkout OpenCV_2.2" instead $ git checkout OpenCV_2.4
$ ruby extconf.rb --with-opencv-dir=/path/to/opencvdir $ ruby extconf.rb --with-opencv-dir=/path/to/opencvdir
$ make $ make
$ make install $ make install
@ -46,7 +46,7 @@ Use *nmake* instead of *make*.
$ git clone git://github.com/ruby-opencv/ruby-opencv.git $ git clone git://github.com/ruby-opencv/ruby-opencv.git
$ cd ruby-opencv $ cd ruby-opencv
$ git checkout master # for OpenCV 2.3 or later. To use OpenCV 2.2, type "git checkout OpenCV_2.2" instead $ git checkout OpenCV_2.4
$ ruby extconf.rb --with-opencv-dir=C:\path\to\opencvdir\install # for your own built OpenCV library $ ruby extconf.rb --with-opencv-dir=C:\path\to\opencvdir\install # for your own built OpenCV library
$ nmake $ nmake
$ nmake install $ nmake install
@ -62,7 +62,7 @@ Type the following commands on the *MSYS* *console*.
$ git clone git://github.com/ruby-opencv/ruby-opencv.git $ git clone git://github.com/ruby-opencv/ruby-opencv.git
$ cd ruby-opencv $ cd ruby-opencv
$ git checkout master # for OpenCV 2.3 or later. To use OpenCV 2.2, type "git checkout OpenCV_2.2" instead $ git checkout OpenCV_2.4
$ ruby extconf.rb --with-opencv-dir=/C/path/to/opencvdir/install # for your own built OpenCV library $ ruby extconf.rb --with-opencv-dir=/C/path/to/opencvdir/install # for your own built OpenCV library
$ make $ make
$ make install $ make install
@ -78,7 +78,7 @@ To use pre-built OpenCV libraries, set the following option to extconf.rb.
For example, if you install OpenCV library to */opt/local/* like: For example, if you install OpenCV library to */opt/local/* like:
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/opt/local/ ./OpenCV-2.3.1 $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/opt/local/ ./OpenCV-2.4.0-beta2
$ make $ make
$ make install $ make install
@ -94,7 +94,7 @@ You can also install this library creating a gem like:
$ git clone git://github.com/ruby-opencv/ruby-opencv.git $ git clone git://github.com/ruby-opencv/ruby-opencv.git
$ cd ruby-opencv $ cd ruby-opencv
$ git checkout master # for OpenCV 2.3 or later. To use OpenCV 2.2, type "git checkout OpenCV_2.2" instead $ git checkout OpenCV_2.4
$ bundle install $ bundle install
$ rake gem $ rake gem
$ gem install pkg/opencv-*.gem -- --with-opencv-dir=/path/to/opencvdir $ gem install pkg/opencv-*.gem -- --with-opencv-dir=/path/to/opencvdir