pytorch-android-cpp-demo
pytorch-android-cpp-demo copied to clipboard
Could not find a package configuration file provided by "Torch" with any of TorchConfig.cmake
Hi,
Thanks for your code. I am using python 1.4.1 and I can build libtorch.a for android in pytorch/build_android/install. However, when I make your code, I meet this error:
CMake Error at CMakeLists.txt:11 (find_package): By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Torch", but CMake did not find one.
Could not find a package configuration file provided by "Torch" with any of the following names:
TorchConfig.cmake
torch-config.cmake
Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set "Torch_DIR" to a directory containing one of the above files. If "Torch" provides a separate development package or SDK, be sure it has been installed.
I want to know if you have ever met the same issue. Thanks.