Set target java version when build OpenCV with brew

删除回忆录丶 提交于 2021-02-11 17:27:27

问题


I'm using brew to build OpenCV with java support following this tutorial. After built successful I got the error class file has wrong version 57.0, should be 52.0 when using. I'm using OpenJDK 8, how can I target the build to this version. Thank you.


回答1:


Found the answer, put the extra -DOPENCV_JAVA_TARGET_VERSION=1.8 args to cmake in brew formula.



来源:https://stackoverflow.com/questions/62115757/set-target-java-version-when-build-opencv-with-brew

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!