2013년 1월 11일 금요일

Using OpenCV on Mac OS X with JavaCV (Eclipse)


0. Install the latest version of Xcode via App Store

1. Install the latest version of JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. Install the latest version of OpenCV on Mac OS X using MacPorts: http://www.macports.org

  • sudo port selfupdate
  • sudo port install opencv (At first, install Xcode's Command-line Tools)

3. Install the latest version of JavaCV: 
http://code.google.com/p/javacv/

4. Install the latest version of Eclipse:
http://www.eclipse.org/downloads/

5. Eclipse Project Configurations

  • Properties for the Project > Java Build Path > Libraries > Add External JARs...:
          > javacpp.jar
          > javacv-macosx-x86_64.jar
          > javacv.jar (in javacv-bin folder) 

  • Run Configurations > Environment > New...
          > Variable(Name): DYLD_FALLBACK_LIBRARY_PATH
          > Value: /opt/local/lib/

댓글 없음:

댓글 쓰기