Android Java Ubuntu系统如何编译出 libopencv_java4.so
Cmake:
cd ~
wget https://github.com/Kitware/CMake/releases/download/v3.30.3/cmake-3.30.3-linux-x86_64.tar.gz
tar -xzvf cmake-3.30.3-linux-x86_64.tar.gz
sudo ln -sf $(pwd)/cmake-3.30.3-linux-x86_64/bin/* /usr/bin/
cmake --version
Android NDK:
wget https://dl.google.com/android/repository/android-ndk-r27b-linux.zip
unzip android-ndk-r27b-linux.zip
export ANDROID_NDK=/ssd/xiedong/android-ndk-r27b
export PATH=$PATH:$ANDROID_NDK
验证NDK是否OK:
# $ANDROID_NDK/ndk-build --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.ht