Skip to content

ninja install fails. #520

@PhilipDeegan

Description

@PhilipDeegan

with a script like

#!/usr/bin/env bash
set -exu
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" && cd $CWD

(
    cd $CWD
    rm -rf build && mkdir build && cd build
    cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=$PWD ../flann
    ninja && ninja install
)

then during ninja install after compilation

Installed /opt/py/python-3.11.4/lib/python3.11/site-packages/flann-1.9.2-py3.11.egg
Processing dependencies for flann==1.9.2
Finished processing dependencies for flann==1.9.2
CMake Error at examples/cmake_install.cmake:52 (file):
  file INSTALL cannot find
  "/path/to//flann/master/build/bin/flann_example_c": No such file or
  directory.
Call Stack (most recent call first):
  cmake_install.cmake:79 (include)


FAILED: CMakeFiles/install.util 

adding -DBUILD_EXAMPLES=OFF to the cmake config command resolves this for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions