pinocchio: ImportError: libhpp-fcl.so: undefined symbol

Hi,

sorry to bother you but recently I’ve been having lots of troubles with the installation of pinocchio. I am working on a VM with Ubuntu 16.04.

Binary packages

If I install it with the binaries via apt then I get a segmentation fault when I import pinocchio in python (3). If before importing pinocchio I import eigenpy, then when I import pinocchio I get this error:

Python 3.5.2 (default, Apr 16 2020, 17:47:17) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import eigenpy
>>> eigenpy.__file__
'/opt/openrobots/lib/python3.5/site-packages/eigenpy/__init__.py'
>>> import pinocchio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/openrobots/lib/python3.5/site-packages/pinocchio/__init__.py", line 6, in <module>
    from .libpinocchio_pywrap import *
ImportError: /opt/openrobots/lib/libhpp-fcl.so: undefined symbol: _ZN6Assimp8Importer18SetPropertyIntegerEPKci

This is the list of my robotpkg packages:

student@pinocchiovbox:~$ dpkg -l | grep robotpkg
ii  robotpkg-assimp                             3.0.1270                                        amd64        Portable library to import various well-known 3D model formats
ii  robotpkg-collada-dom                        2.3.1r2                                         amd64        C++ object representation of a COLLADA XML instance document
ii  robotpkg-eigen3                             3.3.0                                           amd64        a C++ template library for linear algebra
ii  robotpkg-hpp-fcl                            1.4.4                                           amd64        Humanoid Path Planner (collision detection and distance computations)
ii  robotpkg-libccd                             2.0                                             amd64        collision detection
ii  robotpkg-octomap                            1.9.0                                           amd64        An Efficient Probabilistic 3D Mapping Framework Based on Octrees
ii  robotpkg-omniorb                            4.2.4                                           amd64        ORB that implements the 2.6 specification of the CORBA
ii  robotpkg-osg-dae                            3.2.1r2                                         amd64        DAE module for OSG
ii  robotpkg-pinocchio                          2.4.3                                           amd64        Efficient rigid body dynamics
ii  robotpkg-py35-catkin-pkg                    0.4.8                                           amd64        ROS standalone library for the catkin package
ii  robotpkg-py35-eigenpy                       2.3.0                                           amd64        Eigen bindings to python
ii  robotpkg-py35-hpp-fcl                       1.4.4                                           amd64        Humanoid Path Planner (collision detection and distance computations (python bindingss))
ii  robotpkg-py35-omniorbpy                     4.2.4                                           amd64        Robust high-performance CORBA ORB for Python
ii  robotpkg-py35-pinocchio                     2.4.3                                           amd64        Efficient rigid body dynamics (python bindings)
ii  robotpkg-py35-qt4-gepetto-viewer            4.8.0                                           amd64        Humanoid Path Planner (Simple viewer based on OpenSceneGraph)
ii  robotpkg-py35-quadprog                      0.1.6                                           amd64        Solve a strictly convex quadratic program
ii  robotpkg-talos-data                         0.0.21r2                                        amd64        This packages provides data of the humanoid robot Pyrene in a friendly way for the SoT.
ii  robotpkg-ur5-description                    1.0.1                                           amd64        Rigid body model of a simple robot arm.

I’ve tried uninstalling and reinstalling all of them, but nothing has changed.

Installing from source

I’ve also tried installing from source, but I cannot compile pinocchio. The compiler gives up at a certain point, which is something that has happened to me also in the past when compiling pinocchio, but typically I could solve this but re-trying to compile a couple of times, especially if I didn’t use any parallelization. Now instead it never works. This might be simply because I’m on a virtual machine, but it’s a very good VM as I’m using the Pro version of VMWare Fusion.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

Is there a more elegant way to tell cmake I wanna use python 3?

cmake .. -DPYTHON_EXECUTABLE=$(which python3)

If you don’t need fcl, it won’t be compiled by default when you will compile it from source.

Is there a more elegant way to tell cmake I wanna use python 3?

I prefer to use update-alternatives as presented here: https://unix.stackexchange.com/questions/410579/change-the-python3-default-version-in-ubuntu

If you use ipython you need to remove the default version 2 described in the script inside /usr/bin/ipython.