如何使用CMake

时间:2018-10-29 14:12:44

标签: cmake

我正在尝试在我的机器上重建它:

https://github.com/sfdodge/xnet

为此,我需要安装xtensor和xtensor-blas。我按照步骤操作,并成功安装了xtensor。但是,我在安装xtensor-blas时遇到问题。我创建一个新目录并运行此命令

cmake /home/fatima/Downloads/xtensor-blas-master

它将生成以下日志:

The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- xtensor-blas v0.14.0
CMake Error at CMakeLists.txt:45 (find_package):
  By not providing "Findxtensor.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "xtensor", but
  CMake did not find one.

  Could not find a package configuration file provided by "xtensor" with any
  of the following names:

    xtensorConfig.cmake
    xtensor-config.cmake

  Add the installation prefix of "xtensor" to CMAKE_PREFIX_PATH or set
  "xtensor_DIR" to a directory containing one of the above files.  If
  "xtensor" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
See also "/home/fatima/Downloads/Untitled Folder 3/CMakeFiles/CMakeOutput.log".

我在做什么错了?

0 个答案:

没有答案