ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

怎么编译androidx86平台呢 我想用simpleocv

Open luolianl opened this issue 3 years ago • 1 comments

我把平台改 cmake -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake"
-DANDROID_ABI="x86_64"
-DANDROID_PLATFORM=android-21 ..

编译成功 结果:

ninja: Entering directory `C:\work\project\test\yolact\YOLOv5_NCNN-master\YOLOv5_NCNN-master\android_YOLOV5_NCNN\app.cxx\cmake\debug\x86_64' [0/1] Re-running CMake... -- Found OpenMP_C: -fopenmp=libomp
-- Found OpenMP_CXX: -fopenmp=libomp
-- Found OpenMP: TRUE
-- Configuring done -- Generating done -- Build files have been written to: C:/work/project/test/yolact/YOLOv5_NCNN-master/YOLOv5_NCNN-master/android_YOLOV5_NCNN/app/.cxx/cmake/debug/x86_64

luolianl avatar Aug 22 '22 01:08 luolianl

ncnn的android release包含x86平台的预编译二进制库,可以直接使用

nihui avatar Apr 21 '25 09:04 nihui