
It's a great color. I just hope it's not too popular.
sudo gem install curb
Building native extensions. This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install curb
checking for main() in -lcurl... no
*** extconf.rb failed ***
sudo yum install curl-develNow the gem install will work:
sudo gem install curbSo keep an eye out for those foo-devel packages. You'll need a lot of them.
Building native extensions. This could take a while...
Successfully installed curb-0.1.4
1 gem installed
Installing ri documentation for curb-0.1.4...
Installing RDoc documentation for curb-0.1.4...
% sudo port install opencvAnd then to compile:
% g++ `pkg-config --cflags --libs opencv` -o hello-world hello-world.cppAnd then to run:
% ./hello-world test.jpgIt pops up a window showing the inverted image and waits for a keypress before cleaning up.