Skip to content

Commit

Permalink
Updated README.rdoc markup again
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Mar 16, 2009
1 parent dae2586 commit 84c92a7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.rdoc
Expand Up @@ -38,23 +38,24 @@ OpenCV Ruby Wrapper
* glib2
* ffcall
* Use ports to install them:
$ sudo port install atk pango jpeg tiff libpng pkgconfig gtk2 glib2 ffcall

$ sudo port install atk glib2 pango jpeg tiff libpng pkgconfig gtk2 ffcall
* Ports is going to install them in /opt/local, which is where this gem will go looking for ffcall, so that will work well for us.

* Next, download version 1.1pre1 of the opencv-linux package here: https://sourceforge.net/project/showfiles.php?group_id=22870
* Navigate to where you downloaded it and:
tar xzvf opencv-1.1pre1.tar.gz
cd opencv-1.1.0/
* Important: Before we configure and build, we need to fix a small bug in the code. Open up the file otherlibs/highgui/window_carbon.cpp in a text editor and make this change to line 645:
tar xzvf opencv-1.1pre1.tar.gz
cd opencv-1.1.0/
* Important: Before we configure and build, we need to fix a small bug in the code. Open up the file <b>otherlibs/highgui/window_carbon.cpp</b> in a text editor and make this change to line 645:

return NULL;
should be changed to
return result;
(This bug is tracked in sourceforge here: https://sourceforge.net/tracker/index.php?func=detail&aid=2668857&group_id=22870&atid=376677)
* Now save the file and we can continue.
./configure --with-carbon=yes CPPFLAGS="-I/opt/local/include -I/usr/include/malloc" LDFLAGS=-L/opt/local/lib
After configure runs, it will print out a display showing which libraries are in use. Double-check that the windowing system is using "Carbon/Mac OS X" and not gtk
Finish installing:
* Now save the file, and we can run configure:
./configure --with-carbon=yes CPPFLAGS="-I/opt/local/include -I/usr/include/malloc" LDFLAGS=-L/opt/local/lib
After configure runs, it will print out a display showing which libraries are in use. Double-check that the windowing system is using "Carbon/Mac OS X" and not gtk.
* Finish installing:
make
sudo make install
The last of the output from the install command will probably complain about not being able to find ldconfig. That's fine. You're on a Mac; you don't need ldconfig (http://macosx.com/forums/mac-os-x-system-mac-software/5200-ldconfig.html).
Expand Down

0 comments on commit 84c92a7

Please sign in to comment.