Closed LaurentBerger closed 1 year ago
Have you performed
git submodule update --init
?
yes exactly i have done
cd /c/lib git clone -b 2022.3.0 https://github.com/openvinotoolkit/openvino.git cd openvino git submodule update --init --recursive cd /c/lib/build mkdir openvino cd openvino cmake -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENCV=ON -DOpenCV_DIR=/c/install/opencv /c/lib/openvino
For some reason OpenCL_INCLUDE_DIR is defined to both cl_headers and clhpp_headers, while our cmake script sets to cl_headers only. Could you please check what is the value of OpenCL_INCLUDE_DIR in CMakeCache.txt?
I found
//Build with Werror
ONNX_WERROR:BOOL=OFF
OPENCLROOT:PATH=C:/lib/openvino/bin/intel64
//Path to OCL (CL and CLHPP) includes
OPENCL_HEADERS_DIR:PATH=C:/lib/openvino/thirdparty/ocl/cl_headers;C:/lib/openvino/thirdparty/ocl/clhpp_headers/include
//Enable support for OpenCL ICD Loader testing.
OPENCL_ICD_LOADER_BUILD_TESTING:BOOL=OFF
//Disable support for OpenCLOn12. Support for OpenCLOn12 should
// only be disabled when building an import lib to link with, and
// must be enabled when building an ICD loader for distribution!
OPENCL_ICD_LOADER_DISABLE_OPENCLON12:BOOL=OFF
//Path to OCL includes
OPENCL_ICD_LOADER_HEADERS_DIR:PATH=C:/lib/openvino/thirdparty/ocl/cl_headers
OPENCL_VERSION_2_2:BOOL=ON
//Extra paths for extra modules to include into OpenVINO build
OPENVINO_EXTRA_MODULES:STRING=
//create OS dedicated folder in output
OS_FOLDER:BOOL=OFF
//Value Computed by CMake
OpenCL-ICD-Loader_BINARY_DIR:STATIC=C:/lib/build/openvino/thirdparty/ocl/icd_loader
//Value Computed by CMake
OpenCL-ICD-Loader_IS_TOP_LEVEL:STATIC=OFF
//Value Computed by CMake
OpenCL-ICD-Loader_SOURCE_DIR:STATIC=C:/lib/openvino/thirdparty/ocl/icd_loader
OpenCL_INCLUDE_DIR:PATH=C:/lib/openvino/thirdparty/ocl/cl_headers;C:/lib/openvino/thirdparty/ocl/clhpp_headers/include
OpenCL_LIBRARY:PATH=C:/lib/openvino/bin/intel64/Release/OpenCL.lib
//Dependencies for the target
OpenCL_LIB_DEPENDS:STATIC=general;cfgmgr32.lib;general;runtimeobject.lib;
OpenCL_VERSION_STRING:STRING=2.2
//No help, variable specified on the command line.
OpenCV_DIR:UNINITIALIZED=C:/install/opencv
//Value Computed by CMake
OpenVINOPython_BINARY_DIR:STATIC=C:/lib/build/openvino/src/bindings/python
On intel forum somebody gives me an answer https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/cannot-build-openvino/m-p/1489912/highlight/true#M29489
I tried to post on intel forum (https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/cannot-build-openvino/m-p/1489220) but it seems that i am a spammer... First
cmakeoutput is
What's wrong