RoboStack / ros-noetic

vinca configuration files for ros-noetic
https://robostack.github.io
464 stars 73 forks source link

Ensure .dll files in Windows gets installed in %CONDA_PREFIX%/Library/bin and not %CONDA_PREFIX%/Library/lib #457

Open traversaro opened 6 months ago

traversaro commented 6 months ago

Solution to issue cannot be found in the documentation.

Issue

See https://github.com/RoboStack/ros-noetic/issues/374#issuecomment-1987329600 .

.dll files currently installed in lib:

traversaro commented 6 months ago

A specific case of this was reported in https://github.com/RoboStack/ros-noetic/issues/381 .

Tobias-Fischer commented 6 months ago

Great investigation as always @traversaro, thanks a lot! I wonder whether we should include a test section in vinca that looks for any dlls installed in the wrong location, to avoid issues in the future? Also, do you think we have similar problems in ros-humble? It might be worth checking.

traversaro commented 6 months ago

I wonder whether we should include a test section in vinca that looks for any dlls installed in the wrong location, to avoid issues in the future?

Unfortunately it seems that some packages install their .dll in the form of plugin that are expected to be found in %CONDA_PREFIX%\Library\lib, as such location is declared in a .xml file to locate the plugin, so those are ok, so we can't just check that there are no .dll in %CONDA_PREFIX%\Library\lib, unless we have a test that we skip for some packages, but that is a bit more complex.

traversaro commented 6 months ago

Also, do you think we have similar problems in ros-humble? It might be worth checking.

Good point, installing ros-humble-desktop ros-humble-moveit there are two problematic files:

 Directory of C:\Users\straversaro\AppData\Local\miniforge3\envs\ros-humble\Library\lib

09/17/2023  06:18 AM            84,992 backward.dll
02/07/2023  08:17 PM            13,312 tf2_eigen_kdl.dll
               2 File(s)         98,304 bytes
               0 Dir(s)  443,462,447,104 bytes free

I will open a ros-humble issue to tackle those.

traversaro commented 6 months ago

For backward_dll, this was already fixed upstream in https://github.com/pal-robotics/backward_ros/commit/1ca04e3b895fe94449b8f11091e07a864b6e5650 .

Tobias-Fischer commented 6 months ago

Reopening till packages are rebuilt