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

Model does not compile. Missing symbols #101

Closed
S-Dafarra opened this issue Mar 9, 2018 · 13 comments
Closed

Model does not compile. Missing symbols #101

S-Dafarra opened this issue Mar 9, 2018 · 13 comments

Comments

@S-Dafarra
Copy link
Collaborator

S-Dafarra commented Mar 9, 2018

I am trying to compile a model which contains only the Config block (configured via mask and the Real Time Synchronizer, but Simulink is not able to compile, throwing the following error (after a long while)

Error while obtaining sizes from MEX S-function 'WBToolbox' in 'DumpJoints/Real Time Synchronizer'.
Caused by:
Invalid MEX-file '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64': Missing dependent shared libraries:
'libidyntree-modelio-urdf.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libidyntree-model.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libidyntree-core.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libidyntree-sensors.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-modelio-urdf.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libidyntree-model.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-modelio-urdf.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libidyntree-core.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-modelio-urdf.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libYARP_math.so.1' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libYARP_dev.so.1->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libYARP_sig.so.1' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libYARP_dev.so.1->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libYARP_OS.so.1' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libYARP_dev.so.1->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libYARP_sig.so.1' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libYARP_math.so.1->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libYARP_OS.so.1' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libYARP_math.so.1->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libYARP_OS.so.1' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libYARP_sig.so.1->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libidyntree-model.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-sensors.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libidyntree-core.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-sensors.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
'libidyntree-core.so' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-model.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'

Missing symbol '_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKc' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4swapERS4_' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE7_M_syncEPcmm' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZTVNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZTVNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree11PositionRaw7inverseERKS0_' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree11reportErrorEPKcS1_S1_' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkAccArray6resizeERKNS_5ModelE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkAccArrayC1Ej' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkAccArrayclEi' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkAccArrayD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkInertias6resizeERKNS_5ModelE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkInertiasC1Ej' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkInertiasclEi' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkInertiasD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkVelArray6resizeERKNS_5ModelE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkVelArrayC1Ej' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkVelArrayclEi' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkVelArrayD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkWrenches4zeroEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkWrenches6resizeERKNS_5ModelE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkWrenchesC1Ej' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkWrenchesclEi' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree12LinkWrenchesD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13LinkPositions6resizeERKNS_5ModelE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13LinkPositionsC1Ej' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13LinkPositionsclEi' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13LinkPositionsD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13MatrixDynSize4dataEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13MatrixDynSize4zeroEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13MatrixDynSize6resizeEjj' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13MatrixDynSizeC1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13MatrixDynSizeD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13reportErrorIfEbPKcS1_' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13VectorDynSize4dataEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13VectorDynSize4zeroEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13VectorDynSize6resizeEj' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree13VectorDynSizeaSERKS0_' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingAcc6resizeERKNS_5ModelE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingAcc7baseAccEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingAcc8jointAccEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingAccC1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingAccD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingPos12worldBasePosEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingPos6resizeERKNS_5ModelE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingPos8jointPosEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingPosC1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingPosD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingVel6resizeERKNS_5ModelE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingVel7baseVelEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingVel8jointVelEv' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingVelC1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15FreeFloatingVelD1Ev' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree15SpatialMomentumC1ERKS0_' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree16RNEADynamicPhaseERKNS_5ModelERKNS_9TraversalERKNS_19JointPosDoubleArrayERKNS_12LinkVelArrayERKNS_12LinkAccArrayERKNS_12LinkWrenchesERSF_RNS_30FreeFloatingGeneralizedTorquesE' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree17PositionSemantics17setReferencePointEi' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
Missing symbol '_ZN8iDynTree17PositionSemantics18setCoordinateFrameEi' required by '/home/sdafarra/Software/robotology-superbuild/build/install/lib/libidyntree-high-level.so->/home/sdafarra/Software/robotology-superbuild/build/install/mex/WBToolbox.mexa64'
[a lot more]

I have just installed from scratch the robotology_superbuild and run sudo ldconfig. The matlab path and the .bashrc are set as in the README.

Matlab is version 2017b on Ubuntu 16.04

@S-Dafarra
Copy link
Collaborator Author

Is the RPATH enabled on the toolbox?

@traversaro
Copy link
Member

All the models are failing to compile, or just the simple one?
As a workaround, please append the directory containing the idyntree and yarp libraries to LD_LIBRARY_PATH, and run sudo ldconfig .

@S-Dafarra
Copy link
Collaborator Author

S-Dafarra commented Mar 9, 2018

Right now I tried to add $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX/lib to the LD_LIBRARY_PATH and build the superbuild from scratch. Once it finished I recompiled and reinstalled only the WBToolbox (making sure that it was actually recompiled) and run sudo ldconfig.
When I try to compile the model I don't have anymore the error about the missing libraries, but I have a tons of error about missing symbols. I tried also to use other blocks, like the DOFsConverter but it happened as well.

@S-Dafarra
Copy link
Collaborator Author

Interestingly I does not happen with only the Configuration block, but as soon I add another block. Additionally, if I open a blank new model, and I insert the Real Time Synchronizer I get the following error
image

@traversaro
Copy link
Member

This problem instead seems the usual robotology-legacy/codyco-superbuild#141 .

@S-Dafarra
Copy link
Collaborator Author

Thanks, I totally forgot about the reason why LD_PRELOAD=$LD_PRELOAD:/usr/lib/x86_64-linux-gnu/libstdc++.so.6 was useful. I had two Matlab crashes in a row involving that library and I removed it. Now I am able to compile. I wonder whether it is necessary to add documentation about this 🤔

@S-Dafarra
Copy link
Collaborator Author

Also I would argue that the error message of robotology-legacy/codyco-superbuild#141 was a bit more understandable 😁

@diegoferigo
Copy link
Member

@S-Dafarra I opened #99 just two days ago 😂 It never occurred to me The Root Of Many Headache error (I used to call that way) for the missing libstdc++ preload. The error you mentioned is more common.

However, the standard error is already discussed in the documentation. As soon as I add #99 I will cross reference TROMH to libstdc++.

P.s. In the future, tag me if you need a quick reply from me. Luckily @traversaro is always present.

@S-Dafarra
Copy link
Collaborator Author

Thanks! Actually the behavior was very strange. It was working at the beginning, then started crashing continuously. Anyway, what about RPATH? It seems to me that this may cause issues when using the toolbox with the robotology superbuild. Am I right?

@diegoferigo
Copy link
Member

RPATH is enabled for long time now, what kind of problems are you mentioning?

@S-Dafarra
Copy link
Collaborator Author

Sorry I did not see it initially in the CMakeLists. Initially I thought that that was the cause of the first set of errors of the first comment. It was complaining about missing libraries and I thought about a linking problem. Was it all related to TROMH?

@diegoferigo
Copy link
Member

diegoferigo commented Mar 10, 2018

Understanding and debugging the causes of THROM is a difficult topic. When symbols are actually missing its raw output being so verbose is totally useless (it shows all external symbols, including standard library). I do not exclude that also in this case, even if all symbols are there, its output would be hard to understand.

For the record, the Configuration block works because it is basically just a mask. It has no S-Function inside.

@traversaro
Copy link
Member

traversaro commented Mar 10, 2018

We should document THROM also in the robotology-superbuild matlab section, as that is the entry-point for matlab software developed by us for most lab members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants