0

由于我的 cpu 中没有 avx 指令,我使用了复制cpu_extensionavx2.dll

删除 avx2 并复制到构建文件夹中

我已经使用以下命令运行了 setupvars.bat:

"C:\Program Files (x86)\IntelSWTools\openvino\bin\setupvars.bat"

这是工作。

通过运行cmake此命令运行时:

"C:\Program Files\CMake\bin\cmake.exe" ^
  -G "Visual Studio 14 Win64" ^
   "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inference_engine\samples"

即使我更改为Visual Studio 16但给出了相同的错误,它也会引发以下错误:

(base) C:\Users\ra\build>
(base) C:\Users\ra\build> "C:\Program Files\CMake\bin\cmake.exe" ^
More?   -G "Visual Studio 16" ^
More?    "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inferenc
e_engine\samples"
CMake Error at CMakeLists.txt:7 (project):
  Generator

    Visual Studio 16 2019

  could not find any instance of Visual Studio.



-- Configuring incomplete, errors occurred!
See also "C:/Users/ra/build/CMakeFiles/CMakeOutput.log".

但是当我使用这个命令时:

 "C:\Program Files\CMake\bin\cmake.exe" ^
 -G "Visual Studio 20" ^
 "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inferene_engine\samples"

它将生成器错误抛出为:

e_engine\samples" CMakeLists.txt:7(项目)处的 CMake 错误:生成器

Visual Studio 15 2017

找不到任何 Visual Studio 实例。

-- 配置不完整,出现错误!另请参阅“C:/Users/ra/build/CMakeFiles/CMakeOutput.log”。

(base) C:\Users\ra\build> "C:\Program Files\CMake\bin\cmake.exe" ^
More?   -G "Visual Studio 20" ^
More?    "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inferenc
e_engine\samples"

CMake Error: Could not create named generator Visual Studio 20
Generators
  Visual Studio 16 2019        = Generates Visual Studio 2019 project files.
                                 Use -A option to specify architecture.
  Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
                                 Optional [arch] can be "Win64" or "IA64".
  Borland Makefiles            = Generates Borland makefiles.
* NMake Makefiles              = Generates NMake makefiles.
  NMake Makefiles JOM          = Generates JOM makefiles.
  MSYS Makefiles               = Generates MSYS makefiles.
  MinGW Makefiles              = Generates a make file for use with
                                 mingw32-make.
  Unix Makefiles               = Generates standard UNIX makefiles.
  Green Hills MULTI            = Generates Green Hills MULTI files
                                 (experimental, work-in-progress).
  Ninja                        = Generates build.ninja files.
  Watcom WMake                 = Generates Watcom WMake makefiles.
  CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
  CodeBlocks - NMake Makefiles JOM
                               = Generates CodeBlocks project files.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - MinGW Makefiles   = Generates CodeLite project files.
  CodeLite - NMake Makefiles   = Generates CodeLite project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Sublime Text 2 - MinGW Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - NMake Makefiles
                               = Generates Sublime Text 2 project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.
  Kate - MinGW Makefiles       = Generates Kate project files.
  Kate - NMake Makefiles       = Generates Kate project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Eclipse CDT4 - NMake Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - MinGW Makefiles
                               = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.

我正在运行 Windows 7 64 位,都安装了 CMake 最新版本。帮我。

4

1 回答 1

0

您可以使用 bat 脚本自动构建演示:

"C:\Program Files (x86)\Intel\openvino_2021\inference_engine\demos\build_demos_msvc.bat"

如果您愿意,您也可以手动构建它们。

"C:\Program Files (x86)\Intel\openvino_2021\bin\setupvars.bat"
md build
cd build
cmake -A x64 "C:\Program Files (x86)\Intel\openvino_2021\inference_engine\demos
cmake --build . --config Release

请确保您的系统满足系统要求并且您使用的是受支持的操作系统。对于 Windows,仅支持 Windows 10。

处理器

  • 第 6 至第 11 代 Intel® Core™ 处理器
  • 列表项目第 1 至第 3 代英特尔® 至强® 可扩展处理器
于 2021-10-21T22:44:36.973 回答