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

ninja install fails. #520

Open
PhilipDeegan opened this issue Sep 14, 2024 · 2 comments
Open

ninja install fails. #520

PhilipDeegan opened this issue Sep 14, 2024 · 2 comments

Comments

@PhilipDeegan
Copy link

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.

@PhilipDeegan
Copy link
Author

I don't see this on github actions strangely

https://github.com/PhilipDeegan/flann/actions/runs/10863977918/job/30148736123

@PhilipDeegan
Copy link
Author

a bit more digging, seems I was using cmake 3.28 from pip install which has this issue, whereas cmake via apt install is for me, cmake 3.25.1, which does not have this issue

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

1 participant