From 426ea3a680a3ad75fe2ed75446fba641fe0a4201 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 6 Jan 2024 22:18:34 -0700 Subject: [PATCH] ope --- src/main/native/cpp/rknn_jni.cpp | 4 ++++ src/main/native/cpp/rknn_yolo_wrapper.cc | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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