hof icon indicating copy to clipboard operation
hof copied to clipboard

CMake Error When Installing

Open ricejasonf opened this issue 6 years ago • 4 comments

It's not clear to me what Fit's dependencies are, if any, but the following error looks like it expects boost.hpp to be present in your repo. This is on the boost branch.

-- Installing: /opt/install/include/boost/fit/decorate.hpp
-- Installing: /opt/install/include/boost/fit/lazy.hpp
-- Installing: /opt/install/include/boost/fit/version.hpp
-- Installing: /opt/install/include/boost/fit/static.hpp
CMake Error at cmake_install.cmake:40 (file):
  file INSTALL cannot find
  "/usr/local/src/Fit-a5bb8365ee7b1387ba0ec3a21ac393c7cc962488/include/boost.hpp".

I'm running the following script in the root of the repo:

#!/bin/bash

mkdir build && cd build \
&& cmake \
    -DCMAKE_TOOLCHAIN_FILE=/opt/toolchain.cmake \
    -DCMAKE_INSTALL_PREFIX=/opt/install \
    -DCMAKE_BUILD_TYPE=Release \
    .. \
&& make install

cmake version 3.9.0

ricejasonf avatar Sep 12 '17 18:09 ricejasonf

Yea, this looks like this broke with the rename to boost. This line is supposed to install the fit.hpp header, but its not necessary when moved under the boost directory.

pfultz2 avatar Sep 12 '17 20:09 pfultz2

Ah, and this was caught by travis: https://travis-ci.org/pfultz2/Fit/jobs/273190517#L4119

pfultz2 avatar Sep 12 '17 20:09 pfultz2

Also, fit.hpp is not in the boost directory.

ricejasonf avatar Sep 18 '17 20:09 ricejasonf

Oops, I forgot that too. Well, I can't change anything until after the review, but thanks for the heads up.

pfultz2 avatar Sep 18 '17 21:09 pfultz2