Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Error in building Samples

Verma__Naveen
Beginner
5,764 Views

Hello,

I have installed openvino in my window PC. Below is the environment variable that I have added.

I have added environment variables.

Inside Path

  • %INTEL_DEV_REDIST%redist\intel64_win\compiler
  • C:\Program Files\CMake\bin
  • C:\ProgramData\Anaconda3\Scripts
  • %INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\bin\intel64\Release
  • %INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\bin\intel64\Debug
  • %HDDL_INSTALL_DIR%\bin
  • %INTEL_OPENVINO_DIR%\openvx\bin
  • C:\Users\user\Documents\Naveen\Projects\build_opencv_contrib_openvino\bin;C:\Users\user\Documents\Naveen\Projects\build_opencv_contrib_openvino\lib
  • %INTEL_OPENVINO_DIR%\opencv\bin

Under system variable

  • INTEL_OPENVINO_DIR -  E:\vino\openvino
  • InferenceEngine_DIR - %INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\share
  • HDDL_INSTALL_DIR - %INTEL_OPENVINO_DIR%\deployment_tools\inference_engine\external\hddl
  • INTEL_CVSDK_DIR - %INTEL_OPENVINO_DIR%
  • PYTHONPATH -     %INTEL_OPENVINO_DIR%\python\python3.7
  • OpenCV_DIR -     %INTEL_OPENVINO_DIR%\opencv\cmake
  • OPENVX_FOLDER - %INTEL_OPENVINO_DIR%\openvx

 

But when I am trying to build a sample or demo, I am getting a lot of errors. I am attaching the output of cmd below.

E:\vino\openvino\inference_engine\samples>build_samples_msvc.bat VS2015
"vswhere tool is not found"
Creating Visual Studio 14 2015 x64 files in C:\Users\user\Documents\Intel\OpenVINO\inference_engine_samples_build...
-- Selecting Windows SDK version  to target Windows 10.0.18362.
-- Host CPU features:
--   3DNOW not supported
--   3DNOWEXT not supported
--   ABM not supported
--   ADX supported
--   AES supported
--   AVX supported
--   AVX2 supported
--   AVX512CD supported
--   AVX512F supported
--   AVX512ER not supported
--   AVX512PF not supported
--   BMI1 supported
--   BMI2 supported
--   CLFSH supported
--   CMPXCHG16B supported
--   CX8 supported
--   ERMS supported
--   F16C supported
--   FMA supported
--   FSGSBASE supported
--   FXSR supported
--   HLE supported
--   INVPCID supported
--   LAHF supported
--   LZCNT supported
--   MMX supported
--   MMXEXT not supported
--   MONITOR not supported
--   MOVBE supported
--   MSR supported
--   OSXSAVE supported
--   PCLMULQDQ supported
--   POPCNT supported
--   PREFETCHWT1 not supported
--   RDRAND supported
--   RDSEED supported
--   RDTSCP supported
--   RTM supported
--   SEP supported
--   SHA not supported
--   SSE supported
--   SSE2 supported
--   SSE3 supported
--   SSE4.1 supported
--   SSE4.2 supported
--   SSE4a not supported
--   SSSE3 supported
--   SYSCALL supported
--   TBM not supported
--   XOP not supported
--   XSAVE supported
CMake Warning at E:/vino/openvino/deployment_tools/inference_engine/share/InferenceEngineConfig.cmake:30 (message):
  MSVC Compiler doesn't support AVX512 instructuion set
Call Stack (most recent call first):
  E:/vino/openvino/deployment_tools/inference_engine/src/extension/cmake/OptimizationFlags.cmake:64 (ext_message)
  E:/vino/openvino/deployment_tools/inference_engine/src/extension/CMakeLists.txt:55 (set_target_cpu_flags)


-- Configuring done
-- Generating done
-- Build files have been written to: E:/vino/openvino/inference_engine/samples

###############|| Build Inference Engine samples using MS Visual Studio (MSBuild.exe) ||###############

"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" Samples.sln /p:Configuration=Release
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 1/8/2020 12:56:06 PM.
Project "E:\vino\openvino\inference_engine\samples\Samples.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x64".
ValidateProjects:
  The project "ALL_BUILD" is not selected for building in solution configuration "Release|x64".
The target "CopyLocalFilesOutputGroup" listed in a BeforeTargets attribute at "E:\vcpkg\scripts\buildsystems\msbuild
\vcpkg.targets (84,82)" does not exist in the project, and will be ignored.
Project "E:\vino\openvino\inference_engine\samples\Samples.sln" (1) is building "E:\vino\openvino\inference_engine\s
amples\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "E:\vino\openvino\inference_engine\samples\ZERO_CHECK.vcxproj" (default targets).

The target "CopyLocalFilesOutputGroup" listed in a BeforeTargets attribute at "E:\vcpkg\scripts\buildsystems\msbuild
\vcpkg.targets (84,82)" does not exist in the project, and will be ignored.
Project "E:\vino\openvino\inference_engine\samples\Samples.sln" (1) is building "E:\vino\openvino\inference_engine\s
amples\benchmark_app\benchmark_app.vcxproj.metaproj" (3) on node 1 (default targets).
Project "E:\vino\openvino\inference_engine\samples\benchmark_app\benchmark_app.vcxproj.metaproj" (3) is building "E:
\vino\openvino\inference_engine\samples\common\format_reader\format_reader.vcxproj.metaproj" (4) on node 1 (default
targets).
Project "E:\vino\openvino\inference_engine\samples\common\format_reader\format_reader.vcxproj.metaproj" (4) is build
ing "E:\vino\openvino\inference_engine\samples\common\format_reader\format_reader.vcxproj" (5) on node 1 (default ta
rgets).
InitializeBuildStatus:
  Creating "format_reader.dir\Release\format_reader.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
VcpkgTripletSelection:
  Using triplet "x64-windows" from "E:\vcpkg\installed\x64-windows\"
ClCompile:
  All outputs are up-to-date.
Link:
  All outputs are up-to-date.
  format_reader.vcxproj -> E:\vino\openvino\inference_engine\samples\intel64\Release\format_reader.dll
AppLocalFromInstalled:
  C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -noprofile -File "E:\vcpkg\scrip
  ts\buildsystems\msbuild\applocal.ps1" "E:\vino\openvino\inference_engine\samples\intel64\Release\format_reader.dll
  " "E:\vcpkg\installed\x64-windows\bin" "format_reader.dir\Release\format_reader.tlog\format_reader.write.1u.tlog"
  "format_reader.dir\Release\vcpkg.applocal.log"
FinalizeBuildStatus:
  Deleting file "format_reader.dir\Release\format_reader.tlog\unsuccessfulbuild".
  Touching "format_reader.dir\Release\format_reader.tlog\format_reader.lastbuildstate".
Done Building Project "E:\vino\openvino\inference_engine\samples\common\format_reader\format_reader.vcxproj" (defaul
t targets).

Done Building Project "E:\vino\openvino\inference_engine\samples\common\format_reader\format_reader.vcxproj.metaproj
" (default targets).

The target "CopyLocalFilesOutputGroup" listed in a BeforeTargets attribute at "E:\vcpkg\scripts\buildsystems\msbuild
\vcpkg.targets (84,82)" does not exist in the project, and will be ignored.
Project "E:\vino\openvino\inference_engine\samples\benchmark_app\benchmark_app.vcxproj.metaproj" (3) is building "E:
\vino\openvino\inference_engine\samples\thirdparty\gflags\gflags_nothreads_static.vcxproj.metaproj" (6) on node 1 (d
efault targets).
Project "E:\vino\openvino\inference_engine\samples\thirdparty\gflags\gflags_nothreads_static.vcxproj.metaproj" (6) i
s building "E:\vino\openvino\inference_engine\samples\thirdparty\gflags\gflags_nothreads_static.vcxproj" (7) on node
 1 (default targets).
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(392,5): warning MSB8028: The inter
mediate directory (gflags_nothreads_static.dir\Release\) contains files shared from another project (gflags_nothread
s_static.vcxproj).  This can lead to incorrect clean and rebuild behavior.
InitializeBuildStatus:
  Creating "gflags_nothreads_static.dir\Release\gflags_n.E38C0C61.tlog\unsuccessfulbuild" because "AlwaysCreate" was
   specified.
CustomBuild:
  All outputs are up-to-date.
VcpkgTripletSelection:
  Using triplet "x64-windows" from "E:\vcpkg\installed\x64-windows\"
ClCompile:
  All outputs are up-to-date.
Lib:
  All outputs are up-to-date.
  gflags_nothreads_static.vcxproj -> E:\vino\openvino\inference_engine\samples\intel64\Release\gflags_nothreads_stat
  ic.lib
AppLocalFromInstalled:
  C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -noprofile -File "E:\vcpkg\scrip
  ts\buildsystems\msbuild\applocal.ps1" "E:\vino\openvino\inference_engine\samples\intel64\Release\gflags_nothreads_
  static.lib" "E:\vcpkg\installed\x64-windows\bin" "gflags_nothreads_static.dir\Release\gflags_n.E38C0C61.tlog\gflag
  s_nothreads_static.write.1u.tlog" "gflags_nothreads_static.dir\Release\vcpkg.applocal.log"
FinalizeBuildStatus:
  Deleting file "gflags_nothreads_static.dir\Release\gflags_n.E38C0C61.tlog\unsuccessfulbuild".
  Touching "gflags_nothreads_static.dir\Release\gflags_n.E38C0C61.tlog\gflags_nothreads_static.lastbuildstate".
Done Building Project "E:\vino\openvino\inference_engine\samples\thirdparty\gflags\gflags_nothreads_static.vcxproj"
(default targets).

Done Building Project "E:\vino\openvino\inference_engine\samples\thirdparty\gflags\gflags_nothreads_static.vcxproj.m
etaproj" (default targets).

The target "CopyLocalFilesOutputGroup" listed in a BeforeTargets attribute at "E:\vcpkg\scripts\buildsystems\msbuild
\vcpkg.targets (84,82)" does not exist in the project, and will be ignored.
Project "E:\vino\openvino\inference_engine\samples\benchmark_app\benchmark_app.vcxproj.metaproj" (3) is building "E:
\vino\openvino\inference_engine\samples\ie_cpu_extension\ie_cpu_extension.vcxproj.metaproj" (8) on node 1 (default t
argets).
Project "E:\vino\openvino\inference_engine\samples\ie_cpu_extension\ie_cpu_extension.vcxproj.metaproj" (8) is buildi
ng "E:\vino\openvino\inference_engine\samples\ie_cpu_extension\ie_cpu_extension.vcxproj" (9) on node 1 (default targ
ets).
InitializeBuildStatus:
  Touching "ie_cpu_extension.dir\Release\ie_cpu_extension.tlog\unsuccessfulbuild".
CustomBuild:
  All outputs are up-to-date.
VcpkgTripletSelection:
  Using triplet "x64-windows" from "E:\vcpkg\installed\x64-windows\"
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /IE:\vino\openvino\deployment_tools
  \inference_engine\src\extension\PRIVATE /IE:\vino\openvino\deployment_tools\inference_engine\src\extension\common
  /IE:\vino\openvino\deployment_tools\inference_engine\external\tbb\include /IE:\vino\openvino\deployment_tools\infe
  rence_engine\src\extension /IE:\vino\openvino\deployment_tools\inference_engine\include /I"E:\vcpkg\installed\x64-
  windows\include" /nologo /W3 /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D _SCL_SECURE_NO_WARNINGS /D NOMINMAX /D NDEBUG /
  D IE_THREAD=IE_THREAD_TBB /D HAVE_SSE /D HAVE_AVX2 /D HAVE_AVX512F /D _CRT_SECURE_NO_WARNINGS /D IMPLEMENT_INFEREN
  CE_ENGINE_API /D "CMAKE_INTDIR=\"Release\"" /D ie_cpu_extension_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /MD /GS /Zc
  :wchar_t /Zc:forScope /Zc:inline /GR /Fo"ie_cpu_extension.dir\Release\\" /Fd"E:\vino\openvino\inference_engine\sam
  ples\intel64\Release\ie_cpu_extension.pdb" /Gd /TP /wd4251 /wd4275 /wd4267 /wd4251 /wd4275 /wd4267 /errorReport:qu
  eue E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_argmax.cpp E:\vino\openvino\deployment_to
  ols\inference_engine\src\extension\ext_base.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\e
  xt_broadcast.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_ctc_greedy.cpp E:\vino\openv
  ino\deployment_tools\inference_engine\src\extension\ext_depth_to_space.cpp E:\vino\openvino\deployment_tools\infer
  ence_engine\src\extension\ext_detectionoutput.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension
  \ext_detectionoutput_onnx.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_fill.cpp E:\vin
  o\openvino\deployment_tools\inference_engine\src\extension\ext_gather.cpp E:\vino\openvino\deployment_tools\infere
  nce_engine\src\extension\ext_gather_tree.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_
  grn.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_interp.cpp E:\vino\openvino\deploymen
  t_tools\inference_engine\src\extension\ext_log_softmax.cpp E:\vino\openvino\deployment_tools\inference_engine\src\
  extension\ext_math.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_mvn.cpp E:\vino\openvi
  no\deployment_tools\inference_engine\src\extension\ext_non_max_suppression.cpp E:\vino\openvino\deployment_tools\i
  nference_engine\src\extension\ext_normalize.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\e
  xt_one_hot.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_pad.cpp E:\vino\openvino\deplo
  yment_tools\inference_engine\src\extension\ext_powerfile.cpp E:\vino\openvino\deployment_tools\inference_engine\sr
  c\extension\ext_priorbox.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_priorbox_cluster
  ed.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_priorgridgenerator_onnx.cpp E:\vino\op
  envino\deployment_tools\inference_engine\src\extension\ext_proposal.cpp E:\vino\openvino\deployment_tools\inferenc
  e_engine\src\extension\ext_proposal_onnx.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_
  psroi.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_range.cpp E:\vino\openvino\deployme
  nt_tools\inference_engine\src\extension\ext_reduce.cpp E:\vino\openvino\deployment_tools\inference_engine\src\exte
  nsion\ext_region_yolo.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_reorg_yolo.cpp E:\v
  ino\openvino\deployment_tools\inference_engine\src\extension\ext_resample.cpp E:\vino\openvino\deployment_tools\in
  ference_engine\src\extension\ext_reverse_sequence.cpp E:\vino\openvino\deployment_tools\inference_engine\src\exten
  sion\ext_roifeatureextractor_onnx.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_scatter
  .cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_select.cpp E:\vino\openvino\deployment_t
  ools\inference_engine\src\extension\ext_shuffle_channels.cpp E:\vino\openvino\deployment_tools\inference_engine\sr
  c\extension\ext_simplernms.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_space_to_depth
  .cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_sparse_fill_empty_rows.cpp E:\vino\openv
  ino\deployment_tools\inference_engine\src\extension\ext_squeeze.cpp E:\vino\openvino\deployment_tools\inference_en
  gine\src\extension\ext_strided_slice.cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_topk
  .cpp E:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_topkrois_onnx.cpp E:\vino\openvino\deplo
  yment_tools\inference_engine\src\extension\ext_unique.cpp E:\vino\openvino\deployment_tools\inference_engine\src\e
  xtension\ext_unsqueeze.cpp
  e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(46): error C3646: '_mm_uni_loadu_ps':
unknown override specifier
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(46): error C2059: syntax error: 'const
'
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(46): error C2334: unexpected token(s)
preceding '{'; skipping apparent function body
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(50): error C4430: missing type specifi
er - int assumed. Note: C++ does not support default-int
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(50): error C2143: syntax error: missin
g ',' before '&'
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(54): error C4430: missing type specifi
er - int assumed. Note: C++ does not support default-int
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(54): error C2146: syntax error: missin
g ')' before identifier 'vec'
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(54): error C3646: 'vec': unknown overr
ide specifier
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(54): error C2059: syntax error: ')' [E
:\vino\openvino\inference_engine\samples\ie_cpu_extension\ie_cpu_extension.vcxproj]
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(58): error C3646: '_mm_uni_setzero_ps'
: unknown override specifier
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(58): error C2059: syntax error: ')' [E
:\vino\openvino\inference_engine\samples\ie_cpu_extension\ie_cpu_extension.vcxproj]
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(58): error C2334: unexpected token(s)
preceding '{'; skipping apparent function body
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(62): error C3646: '_mm_uni_set1_ps': u
nknown override specifier
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(62): error C2062: type 'float' unexpec
ted
e:\vino\openvino\deployment_tools\inference_engine\src\extension\ext_base.hpp(62): error C2334: unexpected token(s)
preceding '{'; skipping apparent function body

    1 Warning(s)
    4680 Error(s)

Time Elapsed 00:06:05.36
Error

 

 

 

0 Kudos
1 Solution
Luis_at_Intel
Moderator
5,764 Views

Hi Naveen,

I am not able to reproduce the issue, the samples built successfully for me using all the same software versions as you.

Done Building Project "C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\ie_samples.vcxproj" (default targets).

Done Building Project "C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\ie_samples.vcxproj.metaproj" (default targets).

Done Building Project "C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\Samples.sln" (default targets).

Build succeeded.

"C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\Samples.sln" (default target) (1) ->
"C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj.metaproj" (default target) (3) ->
"C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj" (default target) (10) ->
(ClCompile target) ->
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(190): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(303): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(478): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(484): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(489): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(527): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(529): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(530): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]

    8 Warning(s)
    0 Error(s)

Time Elapsed 00:01:21.25
Done.

One thing I noticed in your logs is that your environment supports the AVX512 while mine doesn't, not sure if this is causing problems with MVS 2015. I did some searching and I believe Visual Studio 2017 does support the AVX512 instruction set (while MVS 2015 doesn't), so upgrading Visual Studio* may be an alternative solution here. May I ask which type of CPU do you have? 

--   AVX512CD supported
--   AVX512F supported
MSVC Compiler doesn't support AVX512 instructuion set

I could suggest to make sure you installed "MSBuild tools 2015", and all components as mentioned in the MVS 2015 install guide. Please also run the setupvars.bat prior to Configure the Model Optimizer, then attempt to build the samples as you tried with build_samples_msvc.bat VS2015. As an alternative I could suggest trying a a newer version of Visual Studio (2017 or 2019) and see if that resolves the problem, I am inclined to think this would resolve the problem. 

 

Regards,

Luis

View solution in original post

0 Kudos
14 Replies
Luis_at_Intel
Moderator
5,764 Views

Hi Verma, Naveen,

It looks like you are trying to setup the OpenVINO™ Toolkit environment variables manually. I am not sure if those are the only variables needed, there may be more missing.

What you could do is try something similar to this. You can run the "set" command on a Command Prompt to see all the environment variables that are already set, capture the output of the command and compare to the "set" command executed after the setupvars.bat is executed. This would give you a pretty good idea as to what files/folders are needed for the demo to build.

Also make sure Python and CMake are added to the Path as mentioned in the documentation here. Let me know if you have any additional questions. 

 

Regards,

Luis

 

0 Kudos
Verma__Naveen
Beginner
5,764 Views

Hi Luis,

Thanks for the reply,

Initially, I tried running "setupvars.bat " for building samples but I didn't get success. So, I tried setting the environment variable manually.

One more thing that I want to tell you that my PC doesn't have intel GPU.

Below is the output of the "set" command and "setupvars.bat".

 

E:\vino\openvino\bin>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\user\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=I2V-SERVER3
ComSpec=C:\WINDOWS\system32\cmd.exe
CONDA_BAT=C:\ProgramData\Anaconda3\condabin\conda.bat
CONDA_EXE=C:\ProgramData\Anaconda3\Scripts\conda.exe
CONDA_SHLVL=0
DriverData=C:\Windows\System32\Drivers\DriverData
GEOSERVER_DATA_DIR=C:\Program Files (x86)\GeoServer 2.15.0\data_dir
GEOSERVER_HOME=C:\Program Files (x86)\GeoServer 2.15.0
HDDL_INSTALL_DIR=E:\vino\openvino\deployment_tools\inference_engine\external\hddl
HOMEDRIVE=C:
HOMEPATH=\Users\user
InferenceEngine_DIR=E:\vino\openvino\deployment_tools\inference_engine\share
INTEL_CVSDK_DIR=E:\vino\openvino
INTEL_DEV_REDIST=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\
INTEL_LICENSE_FILE=C:\Program Files (x86)\Common Files\Intel\Licenses
INTEL_OPENVINO_DIR=E:\vino\openvino
JAVA_HOME=C:\Program Files\Java\jre1.8.0_201
LIB_LICENSING_LIB_DIR=C:\Users\user\Documents\Naveen\opencv\VMS_VA\libraries\cpp_licensing\lib\cmake\liblicensing\
LOCALAPPDATA=C:\Users\user\AppData\Local
LOGONSERVER=\\I2V-SERVER3
MOSQUITTO_DIR=C:\Program Files (x86)\mosquitto
NUMBER_OF_PROCESSORS=16
OneDrive=C:\Users\user\OneDrive
OneDriveConsumer=C:\Users\user\OneDrive
OpenCv_DIR=E:\vino\openvino\opencv\x64\vc14\lib
OPENCV_LIB_DIR=C:\Users\user\Documents\Naveen\Projects\build_opencv_contrib_openvino\lib
OPENVX_FOLDER=E:\vino\openvino\openvx
OS=Windows_NT
Path=C:\ProgramData\Anaconda3\condabin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Users\user\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\MinGW\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\CMake\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\user\AppData\Local\Programs\Python\Python37\;C:\Users\user\Documents\Naveen\Projects\build_opencv_contrib_openvino\lib;C:\Users\user\Documents\Naveen\Projects\build_opencv_contrib_openvino\bin;E:\vino\openvino\opencv\x64\vc14\bin;E:\vino\openvino\openvx\bin;"E:\vino\openvino\deployment_tools\inference_engine\bin\intel64\Release;E:\vino\openvino\deployment_tools\inference_engine\bin\intel64\Debug;E:\vino\openvino\deployment_tools\inference_engine\external\hddl\bin";C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Users\user\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\user\.dotnet\tools;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Users\user\Documents\Naveen\Projects\build_opencv_contrib_openvino\lib\;C:\Users\user\Documents\Naveen\Projects\build_opencv_contrib_openvino\bin\;C:\ProgramData\Anaconda3\Scripts;C:\Users\user\Documents\Naveen\ffmpeg-4.2-win64-static\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=5504
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\PowerShell\Modules\
PUBLIC=C:\Users\Public
PYTHONPATH=E:\vino\openvino\deployment_tools\open_model_zoo\tools\accuracy_checker;
RESTBED_LIB_DIR=C:\Users\user\Documents\Naveen\opencv\VMS_VA\libraries\restbed\distribution\lib\cmake\restbed\
ROOT=E:\vino\openvino
SCRIPT_NAME=setupvars.bat
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\Users\user\AppData\Local\Temp
TMP=C:\Users\user\AppData\Local\Temp
USERDOMAIN=I2V-SERVER3
USERDOMAIN_ROAMINGPROFILE=I2V-SERVER3
USERNAME=user
USERPROFILE=C:\Users\user
VA_DIR=C:\Users\user\Documents\Naveen\opencv\VMS_VA\
VCPKG_DEFAULT_TRIPLET=x64-windows
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
VSSDK140Install=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\
windir=C:\WINDOWS
WIX=C:\Program Files (x86)\WiX Toolset v3.11\

E:\vino\openvino\bin>setupvars.bat
Python 3.7.1
ECHO is off.
PYTHONPATH=E:\vino\openvino\deployment_tools\open_model_zoo\tools\accuracy_checker;E:\vino\openvino\python\python3.7;E:\vino\openvino\python\python3;E:\vino\openvino\deployment_tools\open_model_zoo\tools\accuracy_checker;
[setupvars.bat] OpenVINO environment initialized

0 Kudos
Luis_at_Intel
Moderator
5,764 Views

Hi Verma, Naveen,

Based on the environment variables, I can see you have multiple versions of MS VisualStudio:

  • VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
  • VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
  • VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
  • VSSDK140Install=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK

I don't see VisualStudio 15 or later, as mentioned in the requirements page Microsoft Visual Studio* with C++ 2019, 2017, or 2015 with MSBuild is required. May I ask which version of VisualStudio are you using? That may be the reason why you are unable to build the samples successfully.

Please note if you want to use or are already using Microsoft Visual Studio* 2019, CMake 3.14 install is required. 

 

Regards,

Luis

0 Kudos
Verma__Naveen
Beginner
5,764 Views

Hi Luis,

I am using Visual Studio 2015.

0 Kudos
Luis_at_Intel
Moderator
5,764 Views

Hi Verma, Naveen,

I will attempt to reproduce the problem by replicating your environment. I now know you have MVS 2015, and I can see Python 3.7.1 from the logs, could you confirm? And also let me know the CMake version you have installed.

 

Regards,

Luis

0 Kudos
Verma__Naveen
Beginner
5,764 Views

Hi Luis,

Sorry for late reply.

Python - 3.7.1

CMake - 3.14.6

Microsoft Visual studio - 2015

 

0 Kudos
Luis_at_Intel
Moderator
5,765 Views

Hi Naveen,

I am not able to reproduce the issue, the samples built successfully for me using all the same software versions as you.

Done Building Project "C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\ie_samples.vcxproj" (default targets).

Done Building Project "C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\ie_samples.vcxproj.metaproj" (default targets).

Done Building Project "C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\Samples.sln" (default targets).

Build succeeded.

"C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\Samples.sln" (default target) (1) ->
"C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj.metaproj" (default target) (3) ->
"C:\Users\user name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj" (default target) (10) ->
(ClCompile target) ->
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(190): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(303): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(478): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(484): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(489): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(527): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(529): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]
  C:\Program Files (x86)\IntelSWTools\openvino_2019.3.379\deployment_tools\inference_engine\samples\benchmark_app\main.cpp(530): warning C4244: 'argument': conversion from 'double' to 'const float', possible loss of data [C:\Users\user
name\Documents\Intel\OpenVINO\inference_engine_samples_build\benchmark_app\benchmark_app.vcxproj]

    8 Warning(s)
    0 Error(s)

Time Elapsed 00:01:21.25
Done.

One thing I noticed in your logs is that your environment supports the AVX512 while mine doesn't, not sure if this is causing problems with MVS 2015. I did some searching and I believe Visual Studio 2017 does support the AVX512 instruction set (while MVS 2015 doesn't), so upgrading Visual Studio* may be an alternative solution here. May I ask which type of CPU do you have? 

--   AVX512CD supported
--   AVX512F supported
MSVC Compiler doesn't support AVX512 instructuion set

I could suggest to make sure you installed "MSBuild tools 2015", and all components as mentioned in the MVS 2015 install guide. Please also run the setupvars.bat prior to Configure the Model Optimizer, then attempt to build the samples as you tried with build_samples_msvc.bat VS2015. As an alternative I could suggest trying a a newer version of Visual Studio (2017 or 2019) and see if that resolves the problem, I am inclined to think this would resolve the problem. 

 

Regards,

Luis

0 Kudos
Verma__Naveen
Beginner
5,764 Views

Hi Luis,

Thanks for the support.

Right now, I have only Microsoft Visual Studio 2015. I will follow your instructions and get back to you.

My CPU is - Intel(R) Core(TM) i7-7820X CPU 

 

0 Kudos
Verma__Naveen
Beginner
5,764 Views

Hi Luis,

I installed Microsoft Visual Studio 2019 and now I can build demo and samples.

Thanks for your help.

0 Kudos
Luis_at_Intel
Moderator
5,764 Views

Hi Naveen,

I am glad the issue was resolved! Don't hesitate to reach back in case you have any questions.

 

Regards,

Luis

0 Kudos
Jayasekara__Randika
5,764 Views

Hello friends,
I'm very new to this, I don't have much skill about software engineering stuff. My major is Electronics and just familiar with Embedded C programming.
Could you please help me to fixed this error, I have got an Error when "Run the Image Classification Verification Script"  (demo_squeezenet_download_convert_run.bat)

My CPU is - Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz and Ram is 6GB
My Installed versions are

  • Python 3.6.5 amd64
  • CMake 3.16.3 -win64 -x64
  • Microsoft Visual studio - 2019 (C++)
  • OpenVino Tool kit 2019.3.379

After in Error happen the "CMakeOutput.log" has been written this 
The system is: Windows - 10.0.18362 - AMD64

Inside Path

C:\Users\Randika\AppData\Local\Programs\Python\Python36\Scripts\
C:\Users\Randika\AppData\Local\Programs\Python\Python36\
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
C:\Program Files\LLVM\bin
D:\Program Files\Microsoft VS Code\bin
%VS140COMNTOOLS%\VsDevCmd.bat   <- I added this manually after additionally install of VS140 (but result not change)

Under system variable Path

%INTEL_DEV_REDIST%redist\intel64_win\compiler
D:\Program Files (x86)\ActiveTd\bin
C:\Program Files (x86)\Common Files\Oracle\Java\javapath
C:\ProgramData\Oracle\Java\javapath
C:\Program Files (x86)\PC Connectivity Solution\
C:\Program Files\Common Files\Microsoft Shared\Windows Live
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live
%SystemRoot%\system32
%SystemRoot%
%SystemRoot%\System32\Wbem
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
C:\Program Files (x86)\Windows Live\Shared
C:\Program Files\Intel\WiFi\bin\
C:\Program Files\Common Files\Intel\WirelessCommon\
C:\Program Files\Git\cmd
%SYSTEMROOT%\System32\OpenSSH\
D:\Openvino\CMake\bin

------------------------------------------------------------------------------------------------------------------------------------------------------------

Microsoft Windows [Version 10.0.18362.592]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>d:

D:\>cd Openvino

D:\Openvino>cd IntelSWTools

D:\Openvino\IntelSWTools>cd openvino

D:\Openvino\IntelSWTools\openvino>cd bin

D:\Openvino\IntelSWTools\openvino\bin>setupvars.bat
Python 3.6.5
ECHO is off.
PYTHONPATH=D:\Openvino\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\accuracy_checker;D:\Openvino\IntelSWTools\openvino\python\python3.6;D:\Openvino\IntelSWTools\openvino\python\python3;
[setupvars.bat] OpenVINO environment initialized

D:\Openvino\IntelSWTools\openvino\bin>cd..

D:\Openvino\IntelSWTools\openvino>cd deployment_tools

D:\Openvino\IntelSWTools\openvino\deployment_tools>cd demo

D:\Openvino\IntelSWTools\openvino\deployment_tools\demo>demo_squeezenet_download_convert_run.bat
target_precision = FP16
Python 3.6.5
ECHO is off.
PYTHONPATH=D:\Openvino\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\accuracy_checker;D:\Openvino\IntelSWTools\openvino\python\python3.6;D:\Openvino\IntelSWTools\openvino\python\python3;D:\Openvino\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\accuracy_checker;D:\Openvino\IntelSWTools\openvino\python\python3.6;D:\Openvino\IntelSWTools\openvino\python\python3;
[setupvars.bat] OpenVINO environment initialized
INTEL_OPENVINO_DIR is set to D:\Openvino\IntelSWTools\openvino
Python 3.6.5
ECHO is off.
Requirement already satisfied: pyyaml in c:\users\randika\appdata\roaming\python\python36\site-packages (from -r D:\Openvino\IntelSWTools\openvino\deployment_tools\demo\\..\open_model_zoo\tools\downloader\requirements.in (line 1)) (5.3)
Requirement already satisfied: requests in c:\users\randika\appdata\roaming\python\python36\site-packages (from -r D:\Openvino\IntelSWTools\openvino\deployment_tools\demo\\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2.18.4)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\randika\appdata\roaming\python\python36\site-packages (from requests->-r D:\Openvino\IntelSWTools\openvino\deployment_tools\demo\\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\randika\appdata\roaming\python\python36\site-packages (from requests->-r D:\Openvino\IntelSWTools\openvino\deployment_tools\demo\\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2019.11.28)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\randika\appdata\roaming\python\python36\site-packages (from requests->-r D:\Openvino\IntelSWTools\openvino\deployment_tools\demo\\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\randika\appdata\roaming\python\python36\site-packages (from requests->-r D:\Openvino\IntelSWTools\openvino\deployment_tools\demo\\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2.6)
Download public squeezenet1.1 model
python "D:\Openvino\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name squeezenet1.1 --output_dir C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\models --cache_dir C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\cache
################|| Downloading models ||################

========== Retrieving C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1\squeezenet1.1.prototxt from the cache

========== Retrieving C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1\squeezenet1.1.caffemodel from the cache

################|| Post-processing ||################

========== Replacing text in C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1\squeezenet1.1.prototxt
squeezenet1.1 model downloading completed

Waiting for 0 seconds, press a key to continue ...

Target folder C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\ir\public\squeezenet1.1\FP16 already exists. Skipping IR generation with Model Optimizer.
If you want to convert a model again, remove the entire C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\ir\public\squeezenet1.1\FP16 folder.

Waiting for 0 seconds, press a key to continue ...

###############|| Generate VS solution for Inference Engine samples using cmake ||###############


Waiting for 0 seconds, press a key to continue ...
'vswhere' is not recognized as an internal or external command,
operable program or batch file.
Creating Visual Studio 14 2015 x64 files in C:\Users\Randika\Documents\Intel\OpenVINO\inference_engine_samples_build...
-- Selecting Windows SDK version  to target Windows 10.0.18362.
CMake Error at CMakeLists.txt:7 (project):
  Failed to run MSBuild command:

    C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 14.0.23107.0
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 09/02/2020 15:42:27.
    Project "D:\Openvino\IntelSWTools\openvino\deployment_tools\inference_engine\samples\CMakeFiles\3.16.3\VCTargetsPath.vcxproj" on node 1 (default targets).
    D:\Openvino\IntelSWTools\openvino\deployment_tools\inference_engine\samples\CMakeFiles\3.16.3\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "D:\Openvino\IntelSWTools\openvino\deployment_tools\inference_engine\samples\CMakeFiles\3.16.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "D:\Openvino\IntelSWTools\openvino\deployment_tools\inference_engine\samples\CMakeFiles\3.16.3\VCTargetsPath.vcxproj" (default target) (1) ->
      D:\Openvino\IntelSWTools\openvino\deployment_tools\inference_engine\samples\CMakeFiles\3.16.3\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

        0 Warning(s)
        1 Error(s)

    Time Elapsed 00:00:00.07


  Exit code: 1

-- Configuring incomplete, errors occurred!
See also "D:/Openvino/IntelSWTools/openvino/deployment_tools/inference_engine/samples/CMakeFiles/CMakeOutput.log".
Error

D:\Openvino\IntelSWTools\openvino\deployment_tools\demo>


Thank You!
Randika

0 Kudos
Luis_at_Intel
Moderator
5,764 Views

Hi Jayasekara, Randika, 

Based on the information you have provided, Visual Studio* 2019 requires you to install CMake 3.14 (I noticed you have CMake 3.16.3). Also remove the directory "C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\" and its contents, based on this error:

Target folder C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\ir\public\squeezenet1.1\FP16 already exists. Skipping IR generation with Model Optimizer.
If you want to convert a model again, remove the entire C:\Users\Randika\Documents\Intel\OpenVINO\openvino_models\ir\public\squeezenet1.1\FP16 folder.

the toolkit is skipping the IR generation. Once removed, proceed to re-run the demo_squeezenet_download_convert_run.bat script.

If possible try the latest release of OpenVINO (2020.1). Please give this a shot and let us know if the issue persists. For any issues in the future I'd strongly suggest to open a new discussion thread.

Regards,

Luis

0 Kudos
Ajioz
Beginner
5,487 Views

 I have a similar experience but a different CPU base and version.

 

I am using Intel® Core™ i7-6600U CPU @ 2.60GHz.  I have the latest openVINO installed, VS 2015, and the associated windows SDK 8.1 supported by the VS 2015.

 

After running the test model I got the following log with errors.  How do I resolve this?

 

Warm regards

 

Download public squeezenet1.1 model
python "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name "squeezenet1.1" --output_dir "C:\Users\hp\Documents\Intel\OpenVINO\openvino_models\models" --cache_dir "C:\Users\hp\Documents\Intel\OpenVINO\openvino_models\cache"
################|| Downloading models ||################

========== Retrieving C:\Users\hp\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1\squeezenet1.1.prototxt from the cache

========== Retrieving C:\Users\hp\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1\squeezenet1.1.caffemodel from the cache

################|| Post-processing ||################

========== Replacing text in C:\Users\hp\Documents\Intel\OpenVINO\openvino_models\models\public\squeezenet1.1\squeezenet1.1.prototxt
squeezenet1.1 model downloading completed

Waiting for 0 seconds, press a key to continue ...

Target folder C:\Users\hp\Documents\Intel\OpenVINO\openvino_models\ir\public\squeezenet1.1\FP16 already exists. Skipping IR generation with Model Optimizer.
If you want to convert a model again, remove the entire C:\Users\hp\Documents\Intel\OpenVINO\openvino_models\ir\public\squeezenet1.1\FP16 folder.

Waiting for 0 seconds, press a key to continue ...

###############|| Generate VS solution for Inference Engine samples using cmake ||###############


Waiting for 0 seconds, press a key to continue ...
Creating Visual Studio 14 2015 x64 files in C:\Users\hp\Documents\Intel\OpenVINO\inference_engine_samples_build...
-- Selecting Windows SDK version to target Windows 10.0.18363.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:7 (project):
No CMAKE_C_COMPILER could be found.

 

CMake Error at CMakeLists.txt:7 (project):
No CMAKE_CXX_COMPILER could be found.

 

-- Configuring incomplete, errors occurred!
See also "C:/Users/hp/Documents/Intel/OpenVINO/inference_engine_samples_build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/hp/Documents/Intel/OpenVINO/inference_engine_samples_build/CMakeFiles/CMakeError.log".

0 Kudos
fikri
Beginner
4,285 Views

please help me i have a problem like this.

i am using CMake 3.21, Visual Studio 2019 with msbuild, python 3.6.5 , OpenVino Tool kit 2021.4.582 and processor AMD A9 7th

 

###############|| Generate VS solution for Inference Engine demos using cmake ||###############


Waiting for 0 seconds, press a key to continue ...
Creating Visual Studio 16 2019 x64 files in C:\Users\user\Documents\Intel\OpenVINO\inference_engine_demos_build...
-- The C compiler identification is MSVC 19.29.30038.1
-- The CXX compiler identification is MSVC 19.29.30038.1
-- Detecting C compiler ABI info
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeDetermineCompilerABI.cmake:49 (try_compile):
Failed to open

C:/Users/user/Documents/Intel/OpenVINO/inference_engine_demos_build/CMakeFiles/CMakeTmp/CMakeLists.txt

Permission denied
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:16 (project)


-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:53 (try_compile):
Failed to open

C:/Users/user/Documents/Intel/OpenVINO/inference_engine_demos_build/CMakeFiles/CMakeTmp/CMakeLists.txt

Permission denied
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler

"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

 

 

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Users/user/Documents/Intel/OpenVINO/inference_engine_demos_build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/user/Documents/Intel/OpenVINO/inference_engine_demos_build/CMakeFiles/CMakeError.log".
Error

0 Kudos
Reply