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

Install fails to find "FindTorch.cmake"? #58

Open
vpzomtrrfrt opened this issue Apr 24, 2020 · 3 comments
Open

Install fails to find "FindTorch.cmake"? #58

vpzomtrrfrt opened this issue Apr 24, 2020 · 3 comments

Comments

@vpzomtrrfrt
Copy link

Full Log: https://gist.github.com/vpzomtrrfrt/5ab2313ff07a8cf2b3ba2eaba830c7ac

install.sh is failing for me.

Probably this error:

CMake Error at CMakeLists.txt:4 (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.


-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_sys-1.1-0-5977/sys/build/CMakeFiles/CMakeOutput.log".

Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/sys-1.1-0.src.rock - Build error: Failed building.
Updating manifest for /home/colin/torch-cl/install/lib/luarocks/rocks
@holgafreak
Copy link

On macOS Mojave 10.14.6 I get exactly the same error. I tried to build first from existing sources used to work on older macOS, then cloned fresh new ones, but the same thing.
Xcode has changed someway or brew cmake or something else that torch-cl doesn't get built any longer.

@ilyakurdyukov
Copy link

Just run export Torch_DIR=$(pwd)/install/share/cmake/torch before ./install.sh. Works for Ubuntu 18.04.

@jokubasver
Copy link

What worked for me was to add export Torch_DIR=$(pwd)/install/share/cmake/torch to install.sh, just after #!/usr/bin/env bash

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

4 participants