手贱导致ncnn下的build文件夹没了
重新编译报错如下
-- CMAKE_INSTALL_PREFIX = /root/workspace/ncnn/build/install
-- NCNN_VERSION_STRING = 1.0.20220624
CMake Warning (dev) at CMakeLists.txt:48 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at CMakeLists.txt:291 (message):
The compiler does not support avx vnni extension. NCNN_AVXVNNI will be
OFF.
CMake Warning at CMakeLists.txt:302 (message):
The compiler does not support avx512 vnni extension. NCNN_AVX512VNNI will
be OFF.
-- Target arch: x86
CMake Error at CMakeLists.txt:404 (add_subdirectory):
add_subdirectory given source "benchmark" which is not an existing
directory.
-- OpenCV library: /usr
-- version: 3.2.0
-- libraries: opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs;opencv_videoio
-- include path: /usr/include;/usr/include/opencv
-- pybind11 v2.9.0 dev1
-- Configuring incomplete, errors occurred!
See also "/root/workspace/ncnn/build/CMakeFiles/CMakeOutput.log".
See also "/root/workspace/ncnn/build/CMakeFiles/CMakeError.log".
Makefile:1598: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
解决方法:重新拉取benchmark,再在想要编译的cpp文件所在的文件夹下执行make -j8
,即可获得可执行文件