A small guide to add opencv 3.0 libs and includes to eclipse
Latest commit 204bb3b Feb 12, 2016 @team2053tigertronics added images
Permalink
Failed to load latest commit information.
README.md updated readme Feb 12, 2016
stepFour.png added images Feb 12, 2016
stepOne.png added images Feb 12, 2016
stepThree.png added images Feb 12, 2016
stepTwo.png added images Feb 12, 2016

README.md

opencvInstall

A small guide to add opencv 3.0 libs and includes to eclipse

  1. Install the opencv package you gave. Same exact steps you gave.
  2. Next, download the .tar.gz file from the release page : https://github.com/robotpy/roborio-opencv/releases
  3. Get a basic robot project working.
  4. Go to project properties and hit C/C++ Build -> Settings.
  5. Go to the tool settings category at the top, then to Cross G++ Compiler -> Includes.
  6. Alt text
  7. Under the Includes Path, hit the plus button and type the directory to the includes folder. (ex: C:\OpenCV-unknown-\include)
  8. Under the Cross G++ Linker Tab -> Libraries enter the directory to the library folder under library search path. (ex: C:\OpenCV-unknown-\lib) Alt text
  9. Add these modules under Libraries: opencv_core, opencv_imgproc, opencv_videoio, opencv_highgui, pthread, opencv_imgcodecs
  10. Go to Cross G++ Linker -> Miscellaneous and add ",-rpath,INCLUDE DIR HERE,-rpath,LIBRARY DIR HERE" (without quotes) Alt text
  11. For example: ,-rpath,C:\OpenCV-unknown-\include,-rpath,C:\OpenCV-unknown-\lib
  12. I made a new folder called vision in the src folder of my project and made a vision class.
  13. Add #include to my .h file for my vision class.
  14. Success! Alt text

(Probably same idea for Java.)