westracer / flutter_native_opencv

Using OpenCV natively in C++ in a Flutter app with Dart FFI
https://medium.com/flutter-community/integrating-c-library-in-a-flutter-app-using-dart-ffi-38a15e16bc14
MIT License
215 stars 38 forks source link

cmake issue #4

Closed yassinedevop closed 3 years ago

yassinedevop commented 3 years ago

hello when i try to build the project it throw me this error :

Error while executing process C:\Users\hp\Desktop\Android\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\hp\Desktop\flutter_native_opencv-master\native_opencv\android.cxx\cmake\release\armeabi-v7a --target native_opencv} [ +2 ms] ninja: error: '../../../../src/main/jniLibs/armeabi-v7a/libopencv_java4.so', needed by 'C:/Users/hp/Desktop/flutter_native_opencv-master/build/native_opencv/intermediates/cmake/release/obj/armeabi-v7a/libnative_opencv.so', missing and no known rule to make it

what's wrong with this ?

yassinedevop commented 3 years ago

I fixed the issue after adding jniLibs to plugin folder "android/src/main" and include to the plugin folder