一、git clone https://github.com/Tencent/ncnnhtml
二、按照wiki說明來編譯,根據須要,選擇不一樣的編譯方式。在ncnn/CMakeLists.txt中,可選擇編譯examples、benchmark、src。git
https://github.com/Tencent/ncnn/wiki/how-to-buildgithub
三、若是編譯examples,則須要添加opencv,在example/CMakeLists.txt中,首行添加:post
set(OpenCV_DIR /home/本身的路徑/opencv-2.4.13/release)ui