Giter Site home page Giter Site logo

Cannot link to Flann on Ubuntu 22.04 about ompl HOT 8 CLOSED

galou avatar galou commented on June 26, 2024
Cannot link to Flann on Ubuntu 22.04

from ompl.

Comments (8)

cohnt avatar cohnt commented on June 26, 2024 2

Clearing the build cache solved the problem for me. Thanks!

from ompl.

cohnt avatar cohnt commented on June 26, 2024

I also faced this issue, and can confirm that the fix you've suggested works on my system.

from ompl.

kylc avatar kylc commented on June 26, 2024

I am not able to reproduce using the minimal Docker setup below. Maybe you have an old FLANN version around being picked up by CMake?

docker run --mount type=bind,source="$(pwd)",target=/ompl --rm -it ubuntu:22.04

export DEBIAN_FRONTEND=noninteractive

apt-get update
apt-get -y install git liblz4-dev g++ cmake pkg-config libboost-serialization-dev libboost-filesystem-dev libboost-system-dev libboost-program-options-dev libboost-test-dev libeigen3-dev libode-dev wget libyaml-cpp-dev

git clone https://github.com/flann-lib/flann.git --branch 1.9.2
mkdir -p flann/build && cd flann/build
cmake -DBUILD_EXAMPLES=OFF .. && cmake --build . && cmake --install .

mkdir -p /ompl/build/Release && cd /ompl/build/Release/
cmake ../.. && cmake --build . --parallel

from ompl.

cohnt avatar cohnt commented on June 26, 2024

I have flann 1.6.13 installed from pip.

from ompl.

galou avatar galou commented on June 26, 2024

I have libflann-dev/jammy,now 1.9.1+dfsg-11 amd64 installed with apt.

from ompl.

kylc avatar kylc commented on June 26, 2024

I think these older FLANN versions are no longer supported after the recent commits. The README now links to Flann v1.9.2 and the CMake checks for at least the same.

from ompl.

cohnt avatar cohnt commented on June 26, 2024

Since FLANN is an optional dependency, shouldn't OMPL be able to build if only an older version is available, by just not including it?

from ompl.

kylc avatar kylc commented on June 26, 2024

Yes, I think it should ignore older versions. I tried adding both of apt install libflann-dev (for 1.9.1) and pip install flann==1.6.13 to the Docker script above, and neither have any effect on the OMPL build.

Are you possibly building from an old build/ directory with a stale CMake cache?

from ompl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.