Comments (4)
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.
How do you install Pinocchio?
Pinocchio is not stick to a particular version of Boost.
from pinocchio.
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.
I'll close this as it's not related to Pinocchio itself
from pinocchio.
Related Issues (20)
- undefined reference to `boost::filesystem::detail::path_algorithms::find_root_directory` HOT 3
- the document cannot be dispalyed properly HOT 1
- About \dot {q} in Pinocchio HOT 1
- Wrong derivatives of constraintDynamics
- Pinocchio 3.x Documentation HOT 1
- Building 3.0.0 on OSX fails HOT 8
- Allow to choose build options to accelerate build in PR
- Homogenize internal namespace
- Use real ubuntu image in linux.yml worflow
- Add OpenUSD support
- Merge C++/Python context
- Find a way to use different explicit template instantiation C++ library in the same program
- Use boost::variant Python binding to bind JointModel and JointData
- Remove C++ warnings
- Parsing urdf - breaking change 2.7 - 3.0 HOT 3
- Installation of pinocchio 3.0 HOT 4
- pinocchio 3.0.0 build failure HOT 5
- Does Pinocchio support the dynamics computation for wheeled-legged structures? HOT 1
- test-cpp-algorithm-utils-force failure on aarch64-linux with nix HOT 4
- Python Binding Compilation Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pinocchio.