Skip to content
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

(Clion Window 10)Cmake setting failed, I have tried all kind of solution on the internet #806

Open
JonathanSum opened this issue Jan 2, 2020 · 0 comments

Comments

@JonathanSum
Copy link

it throw: Torch Script Not found: torch;torch_library;C10_LIBRARY

code:
cmake_minimum_required(VERSION 3.5)
project(HappySugarLife)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_PREFIX_PATH ${Torch_DIR})

find_package(Torch REQUIRED)

set(SOURCE_FILES main.cpp)
set(Torch_DIR libtorch/share/cmake/Torch)

add_executable( HappySugarLife ${SOURCE_FILES} libtorch/lib)
target_link_libraries( HappySugarLife "${TORCH_LIBRARIES}")

image
image

Here are the solution that I have tried:
pytorch/pytorch#12449
hughperkins/pytorch#36
pytorch/pytorch#17479
nagadomi/waifu2x#253 (comment)
pytorch/pytorch#14684
https://discuss.pytorch.org/t/cmake-problem-minimal-example-for-c-frontend/44286/3
All failed to slove this problem.

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