Hi,
i downloaded windows libtorch-win-shared-with-deps-debug-1.6.0+cpu.zip and extracted it inside c directory and i also added environment variable CMAKE_PREFIX_PATH to C:\libtorch and after executing build.sh from git bash i got below output
-- Building for: Visual Studio 16 2019
-- The C compiler identification is MSVC 19.26.28806.0
-- The CXX compiler identification is MSVC 19.26.28806.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Warning (dev) at C:/libtorch/share/cmake/Torch/TorchConfig.cmake:121 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Torch: C:/libtorch/lib/torch.lib
-- Found OpenCV: C:/Program Files (x86)/IntelSWTools/openvino/opencv (found version "4.3.0")
-- Configuring done
-- Generating done
-- Build files have been written to: E:/Downloads/pytorch-cpp-inference-master/pytorch-cpp-inference-master/inference-cpp/cnn-classification/build
make: *** No targets specified and no makefile found. Stop.
mv: cannot stat 'build/predict': No such file or directory
in the end it says no target specified and no makefile found.