conda-forge / libccd-feedstock

A conda-smithy repository for libccd.
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Downstream projects on Windows can't link #8

Closed traversaro closed 1 year ago

traversaro commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

Downstream projects are failing with:

"C:\src\robotology-superbuild\build\src\mujoco\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\src\robotology-superbuild\build\src\mujoco\plugin\elasticity\elasticity.vcxproj" (default target) (3) ->
"C:\src\robotology-superbuild\build\src\mujoco\mujoco.vcxproj" (default target) (4) ->
(Link target) ->
  engine_collision_convex.obj : error LNK2019: unresolved external symbol ccd_vec3_origin referenced in function mjc_Convex [C:\src\robotology-superbuild\build\sr
c\mujoco\mujoco.vcxproj]
  C:\src\robotology-superbuild\build\src\mujoco\bin\Release\mujoco.dll : fatal error LNK1120: 1 unresolved externals [C:\src\robotology-superbuild\build\src\mujoc
o\mujoco.vcxproj]

    0 Warning(s)
    2 Error(s)

I think it is due to something in this library.

Installed packages

.

Environment info

.
traversaro commented 1 year ago

It turns out that the problem was not in libccd, but on MuJoCo that defined CCD_STATIC_DEFINE in https://github.com/deepmind/mujoco/blob/87f35b7703ce7804395c4961b53b455f44ca7474/CMakeLists.txt#L92 .