Log in

View Full Version : OpenCV on RoboRIO and Eclipse


JohnM
13-03-2016, 20:48
Hi there. I'm having trouble making OpenCV work with Eclipse so that we can deploy code to the robot and have our vision system integrated with it. I am following these exact instructions. (https://github.com/team2053tigertronics/opencvInstall) But when building the c++ project it spits out these errors.
(https://drive.google.com/file/d/0B6W5W0cG6x2hZHdDZU1BelhpZWc/view?usp=sharing)

I have tried just opening a USB camera in OpenCV in the program, even if I just #include OpenCV it spits out these errors so it is probably not an issue with the code I have currently.

joeojazz
13-03-2016, 22:23
Try these instructions it's an old cv (2.4) but same process. http://docs.opencv.org/2.4/doc/tutorials/introduction/java_eclipse/java_eclipse.html

FleventyFive
24-03-2016, 23:36
Are you still having this issue?

Try opening WPILIB.h (in your includes somewhere) and commenting out the line "#define REAL". For some reason, having this variable defined messes with opencv

kylelanman
25-03-2016, 08:25
Are you still having this issue?

Try opening WPILIB.h (in your includes somewhere) and commenting out the line "#define REAL". For some reason, having this variable defined messes with opencv

This thread has a little more information on why this is a safe thing to do. http://www.chiefdelphi.com/forums/showpost.php?p=1430768&postcount=18