ShiqiYu / libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.
Other
12.27k stars 3.05k forks source link

Unknown argument -DDEMO=OFF #226

Open 128ve900 opened 4 years ago

128ve900 commented 4 years ago

于老师,您好! 我在编译动态库, 执行 cmake --build . --config Release -DDEMO=OFF 时,报错 Unknown argument -DDEMO=OFF, 请问是什么原因导致的呢?

ShiqiYu commented 4 years ago

Release前面漏了个等号?

128ve900 commented 4 years ago

于老师,我尝试Release前面加等号,仍然会报错 Unknown argument --config=Release Unknown argument -DDEMO=OFF


我是按照COMPILE.md 里面的指导逐步进行的:

  1. 执行 cmake .. -DCMAKE_PREFIX_INSTALL=install,输出日志是: `AVX512 = OFF AVX2 = ON NEON = OFF OpenMP = TRUE DEMO = OFF -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

    CMAKE_PREFIX_INSTALL

-- Build files have been written to: ***/build `

  1. 执行 cmake --build . --config Release -DDEMO=OFF,输出日志是: `Unknown argument -DDEMO=OFF Usage: cmake --build

    [options] [-- [native-options]] Options:

    = Project binary directory to be built. --target = Build instead of default targets. --config = For multi-configuration tools, choose . --clean-first = Build target 'clean' first, then build. (To clean only, use --target 'clean'.) --use-stderr = Ignored. Behavior is default in CMake >= 3.0. -- = Pass remaining options to the native tool.`

请问编译时对系统环境还有要求吗?我现在的系统是: `Distributor ID: Ubuntu

Description: Ubuntu 16.04.4 LTS

Release: 16.04

Codename: xenial

gcc version 5.4.0

cmake version 3.5.1

GNU Make 4.1 Built for x86_64-pc-linux-gnu`

期待您的回复,谢谢!

yxwhn commented 4 years ago

I have the same error.Have you solve it?

sunny0315 commented 4 years ago

you can modify the CMakefile.txt by adding "set(DEMO OFF)",then cmake --build . --config Release

note: before the line "if (DEMO)"