Skip to content

No targets specified and no makefile found. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rawat123 opened this issue Sep 11, 2020 · 0 comments
Open

No targets specified and no makefile found. #1

rawat123 opened this issue Sep 11, 2020 · 0 comments

Comments

@rawat123
Copy link

rawat123 commented Sep 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant