Closed S-Dafarra closed 8 months ago
Using the following environment instead, following the instructions of https://github.com/robotology/robotology-superbuild/blob/b99570885247016c29808f70161996f3982e1c71/doc/conda-forge.md#source-installation, it works:
mamba list
I wonder which package makes it working
Apparently it was enough to add pkg-config
to the list of dependencies to install with mamba
to make it working.
I wonder whether this should be handled otherwise. In any case, I doubt this is an iDynTree
issue.
What I do typically is to install all of these when I compile a C/C++ project: cmake make ninja pkg-config compilers
, exactly as some find_package
modules of CMake depend on pkg-config
to be available. I think it could make sense to have a build-essential
conda-forge metapackage that installs all of it easily, but I never actually went on and open an issue/PR to suggest this.
At the iDynTree-specific level, all the packages necessary for compiling idyntree are documented in https://github.com/robotology/idyntree/blob/master/doc/build-from-source.md#install-dependencies-with-conda-forge, and that includes pkg-config
(actually the problem there is that swig is not pinned, but that is another story and should be fixed now that https://github.com/conda-forge/glib-feedstock/pull/164 is merged). So I guess on the iDynTree side we are good to close the issue, even if indeed the implicit dependency of cmake on pkg-config remains confusing?
At the iDynTree-specific level, all the packages necessary for compiling idyntree are documented in https://github.com/robotology/idyntree/blob/master/doc/build-from-source.md#install-dependencies-with-conda-forge,
Ah thanks, I did not see this
So I guess on the iDynTree side we are good to close the issue, even if indeed the implicit dependency of cmake on pkg-config remains confusing?
Yes, sure, thanks!
I am facing some compilation issue when try to compile from a clean environment.
In particular, if I do
I have the following error
Full output
``` MSBuild version 17.8.5+b5265ef37 for .NET Framework 1>Checking Build System Building Custom Rule C:/Software/robotology-superbuild/src/iDynTree/extern/CMakeLists.txt Building Custom Rule C:/Software/robotology-superbuild/src/iDynTree/src/core/CMakeLists.txt fpconv.c Axis.cpp idyntree-private-fpconv.vcxproj -> C:\Software\robotology-superbuild\src\iDynTree\build\extern\idyntree-private-fpconv.dir\Release\idyntree-private-fpconv.lib ArticulatedBodyInertia.cpp ClassicalAcc.cpp Direction.cpp InertiaNonLinearParametrization.cpp MatrixDynSize.cpp GeomVector3.cpp Position.cpp Rotation.cpp RotationalInertia.cpp SpatialAcc.cpp SpatialForceVector.cpp SpatialMomentum.cpp SpatialMotionVector.cpp SpatialInertia.cpp TestUtils.cpp Transform.cpp TransformDerivative.cpp Twist.cpp Utils.cpp Generating Code... Compiling... VectorDynSize.cpp Wrench.cpp PrivateUtils.cpp SparseMatrix.cpp Triplets.cpp CubicSpline.cpp SO3Utils.cpp Generating Code... Auto build dll exports Creating library C:/Software/robotology-superbuild/src/iDynTree/build/lib/Release/idyntree-core.lib and object C:/Software/robotology-superbuild/src/iDynTree/build/lib/Release/idyntree-core.exp idyntree-core.vcxproj -> C:\Software\robotology-superbuild\src\iDynTree\build\bin\Release\idyntree-core.dll Building Custom Rule C:/Software/robotology-superbuild/src/iDynTree/src/model_io/xml/CMakeLists.txt Building Custom Rule C:/Software/robotology-superbuild/src/iDynTree/src/model/CMakeLists.txt XMLParser.cpp ContactWrench.cpp C:\Software\mambaforge\envs\idyntree\Library\include\libxml2\libxml\encoding.h(28,10): error C1083: Cannot open include file: 'iconv.h': No such file or directory [C:\Software\robotology-superbuild\src\iDynTree\build\src\model_io\ xml\idyntree-modelio-xml.vcxproj] (compiling source file '../../../../src/model_io/xml/src/XMLParser.cpp') XMLElement.cpp DenavitHartenberg.cpp XMLAttribute.cpp XMLDocument.cpp Generating Code... FixedJoint.cpp ForwardKinematics.cpp FreeFloatingState.cpp FreeFloatingMatrices.cpp Indices.cpp Dynamics.cpp DynamicsLinearization.cpp C:\Software\robotology-superbuild\src\iDynTree\src\model\src\DynamicsLinearization.cpp(311,109): warning C4552: '*': result of expression not used [C:\Software\robotology-superbuild\src\iDynTree\build\src\model\idyntree-model.vcxp roj] DynamicsLinearizationHelpers.cpp Link.cpp LinkState.cpp LinkTraversalsCache.cpp Jacobians.cpp JointState.cpp Model.cpp ModelTransformers.cpp ModelInterfaceDestructors.cpp RevoluteJoint.cpp PrismaticJoint.cpp Generating Code... Compiling... SolidShapes.cpp SubModel.cpp Traversal.cpp Sensors.cpp SixAxisForceTorqueSensor.cpp AccelerometerSensor.cpp GyroscopeSensor.cpp ThreeAxisAngularAccelerometerSensor.cpp ThreeAxisForceTorqueContactSensor.cpp PredictSensorsMeasurements.cpp ModelSensorsTransformers.cpp Generating Code... Auto build dll exports Creating library C:/Software/robotology-superbuild/src/iDynTree/build/lib/Release/idyntree-model.lib and object C:/Software/robotology-superbuild/src/iDynTree/build/lib/Release/idyntree-model.exp idyntree-model.vcxproj -> C:\Software\robotology-superbuild\src\iDynTree\build\bin\Release\idyntree-model.dll Building Custom Rule C:/Software/robotology-superbuild/src/iDynTree/src/visualization/CMakeLists.txt Building Custom Rule C:/Software/robotology-superbuild/src/iDynTree/src/solid-shapes/CMakeLists.txt Visualizer.cpp InertialParametersSolidShapesHelpers.cpp Auto build dll exports Creating library C:/Software/robotology-superbuild/src/iDynTree/build/lib/Release/idyntree-visualization.lib and object C:/Software/robotology-superbuild/src/iDynTree/build/lib/Release/idyntree-visualization.exp idyntree-visualization.vcxproj -> C:\Software\robotology-superbuild\src\iDynTree\build\bin\Release\idyntree-visualization.dll ModelTransformersSolidShapes.cpp Generating Code... Auto build dll exports Creating library C:/Software/robotology-superbuild/src/iDynTree/build/lib/Release/idyntree-solid-shapes.lib and object C:/Software/robotology-superbuild/src/iDynTree/build/lib/Release/idyntree-solid-shapes.exp idyntree-solid-shapes.vcxproj -> C:\Software\robotology-superbuild\src\iDynTree\build\bin\Release\idyntree-solid-shapes.dll ```
``` (idyntree) C:\Software\robotology-superbuild\src\iDynTree\build>mamba list # packages in environment at C:\Software\mambaforge\envs\idyntree: # # Name Version Build Channel bzip2 1.0.8 hcfcfb64_5 conda-forge ca-certificates 2024.2.2 h56e8100_0 conda-forge cmake 3.28.3 hf0feee3_0 conda-forge eigen 3.4.0 h91493d7_0 conda-forge intel-openmp 2024.0.0 h57928b3_49841 conda-forge krb5 1.21.2 heb0366b_0 conda-forge libblas 3.9.0 21_win64_mkl conda-forge libcblas 3.9.0 21_win64_mkl conda-forge libcurl 8.5.0 hd5e4a3a_0 conda-forge libexpat 2.6.1 h63175ca_0 conda-forge libffi 3.4.2 h8ffe710_5 conda-forge libhwloc 2.9.3 default_haede6df_1009 conda-forge libiconv 1.17 hcfcfb64_2 conda-forge liblapack 3.9.0 21_win64_mkl conda-forge libsqlite 3.45.1 hcfcfb64_0 conda-forge libssh2 1.11.0 h7dfc565_0 conda-forge libuv 1.47.0 hcfcfb64_0 conda-forge libxml2 2.12.5 hc3477c8_0 conda-forge libzlib 1.2.13 hcfcfb64_5 conda-forge mkl 2024.0.0 h66d3029_49657 conda-forge numpy 1.26.4 py311h0b4df5a_0 conda-forge openssl 3.2.1 hcfcfb64_0 conda-forge pcre2 10.40 h17e33f8_0 conda-forge pip 24.0 pyhd8ed1ab_0 conda-forge pthreads-win32 2.9.1 hfa6e2cd_3 conda-forge python 3.11.8 h2628c8c_0_cpython conda-forge python_abi 3.11 4_cp311 conda-forge setuptools 69.1.1 pyhd8ed1ab_0 conda-forge swig 4.1.0 h9eeddcc_4 conda-forge tbb 2021.11.0 h91493d7_1 conda-forge tk 8.6.13 h5226925_1 conda-forge tzdata 2024a h0c530f3_0 conda-forge ucrt 10.0.22621.0 h57928b3_0 conda-forge vc 14.3 hcf57466_18 conda-forge vc14_runtime 14.38.33130 h82b7239_18 conda-forge vs2015_runtime 14.38.33130 hcb4865c_18 conda-forge wheel 0.42.0 pyhd8ed1ab_0 conda-forge xz 5.2.6 h8d14728_0 conda-forge zstd 1.5.5 h12be248_0 conda-forge ```mamba list
cc @traversaro