Code Monkey home page Code Monkey logo

Comments (4)

ManifoldFR avatar ManifoldFR commented on September 1, 2024 1

I've installed Pinocchio using Conda Forge. On building the first example in the docs (using msvc), it throws the following error:

CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake: 230 (message): Could NOT find Boost: Found unsuitable version "1.79.0", but required is at
least "1.82" (found C:/Program Files/boost/boost_1_79_0, found components: system thread chrono atomic)

My CMakeLists.txt file for the test program is:

cmake_minimum_required(VERSION 3.8)
project(pinocchio_example)

set(CMAKE_CXX_STANDARD 11)

# Pinocchio must be build with this define on Windows to avoid conflict with the Windows min/max macro.
add_definitions("-DNOMINMAX")

find_package(Eigen3 REQUIRED)
find_package(pinocchio REQUIRED)

# Include directories for Eigen and Pinocchio
include_directories(${EIGEN3_INCLUDE_DIR} ${pinocchio_INCLUDE_DIRS})

# Define the executable for the kinematics example
add_executable(${PROJECT_NAME} overview-simple.cpp)

# Link Eigen and Pinocchio libraries
target_link_libraries(${PROJECT_NAME} Eigen3::Eigen ${pinocchio_LIBRARIES})

I assumed that Pinocchio requires a certain version of Boost since it seems to use some of its components such as filesystem and system.
Hope this provides the necesarry information.

If you installed Pinocchio via conda it installed a version of Boost from conda also. What's probably happening there is that you are (or your CMake is) trying to build against your local boost in Program Files instead of the one that Pinocchio came (and was built and dynamically linked) with. CMake saw that and was not happy, hence your error.

If you want to use your local version of Boost, you ought to build Pinocchio (and its dependencies eigenpy and hppfcl) locally with that version of Boost so as to have consistent versions and linked symbols.

Another (less painful) option is to build against conda's Boost and properly tell CMake to look for Boost inside your conda environment. For this you should set the CMAKE_PREFIX_PATH environment variable to your conda environment path before the first call to CMake, and do so for every project you want to build against the conda-installed Pinocchio. You can look up more details about this environment variable and its effects in CMake's user manual

from pinocchio.

jcarpent avatar jcarpent commented on September 1, 2024

How do you install Pinocchio?
Pinocchio is not stick to a particular version of Boost.

from pinocchio.

ShadowDawg avatar ShadowDawg commented on September 1, 2024

I've installed Pinocchio using Conda Forge. On building the first example in the docs (using msvc), it throws the following error:

CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake: 230 (message): Could NOT find Boost: Found unsuitable version "1.79.0", but required is at
least "1.82" (found C:/Program Files/boost/boost_1_79_0, found components: system thread chrono atomic)

My CMakeLists.txt file for the test program is:

cmake_minimum_required(VERSION 3.8)
project(pinocchio_example)

set(CMAKE_CXX_STANDARD 11)

# Pinocchio must be build with this define on Windows to avoid conflict with the Windows min/max macro.
add_definitions("-DNOMINMAX")

find_package(Eigen3 REQUIRED)
find_package(pinocchio REQUIRED)

# Include directories for Eigen and Pinocchio
include_directories(${EIGEN3_INCLUDE_DIR} ${pinocchio_INCLUDE_DIRS})

# Define the executable for the kinematics example
add_executable(${PROJECT_NAME} overview-simple.cpp)

# Link Eigen and Pinocchio libraries
target_link_libraries(${PROJECT_NAME} Eigen3::Eigen ${pinocchio_LIBRARIES})

I assumed that Pinocchio requires a certain version of Boost since it seems to use some of its components such as filesystem and system.
Hope this provides the necesarry information.

from pinocchio.

ManifoldFR avatar ManifoldFR commented on September 1, 2024

I'll close this as it's not related to Pinocchio itself

from pinocchio.

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.