hughperkins / distro-cl

OpenCL Torch
147 stars 17 forks source link

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

Open vpzomtrrfrt opened 4 years ago

vpzomtrrfrt commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

jokubasver commented 3 years ago

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