aarch64上编译 ncnn
#下载包: git clone https://github.com/Tencent/ncnn.git git submodule update --init unzip ncnn-master cd ncnn-master # 安装环境依赖项 sudo apt install build-essential cmake libprotobuf-dev protobuf-compiler libopencv-dev # 编译方式1:使用CPU mkdir -p build && cd build cmake -D-DCMAKE_BUILD_TYPE=Release -DNCNN_VULKAN=OFF -DNCNN_BUILD_EXAMPLES=ON -DNCNN_PYTHON=OFF .. make -j4 make install # 编译方式2:使用Vulkan,编译python3.7 # install vulkan sudo apt install libvulkan-dev libvulkan1 mesa-vulkan-drivers vulkan-utils mkdir -p build-vulkan && cd build-vulkan cmake -DCMAKE_BUILD_TYPE=Release -DNCNN_VULKAN=ON -DNCNN_BUILD_EXAMPLES=ON \ -DNCNN_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.7 \ -DPYTHON_LIBRARY=/usr/lib/aarch64-linux-gnu/libpython3.7m.so .. make -j4 make install