diff --git a/src/main/native/cpp/rknn_jni.cpp b/src/main/native/cpp/rknn_jni.cpp index 1cac7dd..0a61a74 100644 --- a/src/main/native/cpp/rknn_jni.cpp +++ b/src/main/native/cpp/rknn_jni.cpp @@ -24,6 +24,8 @@ static JClass detectionResultClass; +extern "C" { + JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { JNIEnv *env; if (vm->GetEnv(reinterpret_cast(&env), JNI_VERSION_1_6) != JNI_OK) { @@ -116,3 +118,5 @@ Java_src_main_java_org_photonvision_rknn_RknnJNI_detect return jarr; } + +} diff --git a/src/main/native/cpp/rknn_yolo_wrapper.cc b/src/main/native/cpp/rknn_yolo_wrapper.cc index c604c3c..3891110 100644 --- a/src/main/native/cpp/rknn_yolo_wrapper.cc +++ b/src/main/native/cpp/rknn_yolo_wrapper.cc @@ -23,7 +23,6 @@ #include "yolov7.h" #include "file_utils.h" #include "rknn_yolo_wrapper.h" -#include "rknn_jni.h" RknnYoloWrapper::RknnYoloWrapper() { // Make very sure zero-inited? copied from example