Installing OpenCV for Processing in Eclipse on a Mac

August 11, 2011 § 4 Comments

A tutorial on how to install the Open CV library for Processing in Eclipse on OSX.

( After going through the painful process of figuring out how to do this twice, I decided to write up the steps, for personal reference and to hopefully help anyone else out there in this unique predicament. Note: I am running OSX10.6.8 . )

(This presumes you already know how to run a normal processing sketch from eclipse.)

  1. Download opencv-framework-1.1.dmg and install it.
  2. Download the OpenCV Processing Library and unzip.
  3. Copy both OpenCV.jar and libOpenCV.jnilib to /System/Library/Java/Extensions/
  4. Now, Locate your Processing’s core.jar and also copy it to /System/Library/Java/Extensions/
  5. Ensure that any java project you run, runs in 32-bit mode. Do this by Right-Clicking your Project > Run Configurations > Arguments Tab > VM Arguments: “-d32″ (without the quotes).
Now you’re all set up, you should be able to try out some introductory opencv tutorial.
[ These instructions were compiled from the following sources:
Update:
Some additional notes:
[4], Processing’s core.jar file can be found (in OSX), by Right Clicking the Processing App > Show Contents > Resources > Java > core.jar.
[5], Right-Click on a Java Project you created in Eclipse, usually found in the left-navigational panel.
About these ads

§ 4 Responses to Installing OpenCV for Processing in Eclipse on a Mac

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Installing OpenCV for Processing in Eclipse on a Mac at DECO } Han.

meta

Follow

Get every new post delivered to your Inbox.