OpenCV on RoboRIO and Eclipse

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. *( But when building the c++ project it spits out these errors.

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.*

Try these instructions it’s an old cv (2.4) but same process.

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.