Ruby environment settings.
Dependencies
Installers
Support Libraries
Ruby on Windows
Steps
RubyInstaller, just next
DevKit
unpack devkit
configure
ruby dk.rb init
ruby dk.rb review
ruby dk.rb install
install ImageMagick(dll version only?)
config path
set CPATH = path/to/ImageMagick/include;$CPATH$
set LIBRARY_PATH = path/to/ImageMagick/lib;$LD_LIBRARY_PATH$
set PATH = path/to/ImageMagick;$PATH$install gems
gem install rmagick
install frequently used gems
gem install fileutils rake pik OptionParser win32-service win32-process win32-changenotify win32-clipboard win32-dir win32-event win32-eventlog win32-ipc win32-mmap win32-mutex win32-sapi win32-shortcut win32-sound
Ruby with Qt and OpenCV bindings
Add Qt, OpenCV, mingw32-gcc ENV
PATH = QtSDK/Desktop/Qt/4.8.1/mingw/bin;PATH
PATH = opencv/build/x86/mingw/bin;PATH
PATH = QtSDK/mingw/bin;PATHClone the repo
git clone git@github.com:quxiaofeng/ruby-opencv.git
Build using MSYS env(devkit/msys.bat)
cd /c/path/to/ruby-opencv
ruby extconf.rb –with-opencv-dir=/c/path/to/opencv/install/mingw
make
make install
not working lib conflict.
Refs
Ruby windows configuration FAQ blog. You can see from here “How bad the windows is as a ruby develop platform”
Version Control
FAQ
OptionParser, parsing command-line options the Ruby way
Other Interesting Resources
Ruby Tool Box
Where to find good Ruby Gems. The Ruby Toolbox
Encrypt Ruby Code by Modifying JRuby
RailsCasts-China
A RoR Conference