OpenFTC / EasyOpenCV

Finally, a straightforward and easy way to use OpenCV on an FTC robot!
213 stars 95 forks source link

Modifying the EasyOpenCV library errors #37

Closed JGNieto closed 2 years ago

JGNieto commented 2 years ago

I'm trying to modify and recompile the EasyOpenCV library. I've already cloned the repo and got gradle to behave. However, it seems like the JNI is not being recognized properly.

I see the following error Class 'OpenCvSwitchableWebcamImpl' must either be declared abstract or implement abstract method 'shouldTriggerWarningSound()' in 'GlobalWarningSource'

Also, in the C++, OpenCV doesn't seem to be recognized. For example, in vuforia_passthrough_jni.cpp, I have the error 'opencv2/core.hpp' file not found.

Windwoes commented 2 years ago

Regarding the first error, it sounds like you are trying to build against the SDK 7.0 RobotCore without my recent commit to fix compatibility.

As for the second, it sounds like you haven't cloned OpenCV-Repackaged into the same parent directory.

Windwoes commented 2 years ago

Any luck?

JGNieto commented 2 years ago

When you say same parent directory, do you mean that if my EasyOpenCV clone is in the Desktop, I should clone the OpenCV-Repackaged also in the Desktop?

Windwoes commented 2 years ago

That's correct :)

Windwoes commented 2 years ago

Alternatively, you can modify the CMake script: https://github.com/OpenFTC/EasyOpenCV/blob/master/easyopencv/CMakeLists.txt#L27

JGNieto commented 2 years ago

Thank you.