Skip to content

Commit a03dcb6

Browse files
authored
Merge pull request #4105 from opensim-org/opensim_452
Merge Opensim 4.5.2 fix to rpath issues for moco dependencies
2 parents 5c7eb5e + ee2f2a2 commit a03dcb6

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ v4.6
1616
- Fixed bug in `C3DFileAdapter` where there was an error when reading C3D files with more than 255 markers. It now excludes non-marker points (POINT:ANGLES, POINT:POWERS, POINT:FORCES, POINT:MOMENTS, and POINT:SCALARS). (#3606)
1717
- updated `ezc3d` version to `1.5.19`.
1818

19-
2019
v4.5.2
2120
======
2221
- The performance of `getStateVariableValue`, `getStateVariableDerivativeValue`, and `getModelingOption` was improved in

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ if (OPENSIM_WITH_CASADI)
859859
${libgcc_name}
860860
DESTINATION ${CMAKE_INSTALL_LIBDIR})
861861

862-
elseif(OPENSIM_COPY_DEPENDENCIES AND LINUX)
862+
elseif(OPENSIM_COPY_DEPENDENCIES)
863863
get_filename_component(gcc_libdir "${pkgcfg_lib_IPOPT_gfortran}" DIRECTORY)
864864

865865
file(GLOB gfortran "${gcc_libdir}/../../../x86_64-linux-gnu/libgfortran*.so*")

cmake/OpenSimMocoInstallLinuxDependencyLibraries.cmake.in

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# for ease of comparison maintenance. Same with commented lines
55

66
set(libdir "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@")
7-
message(STATUS "Editing RPATH of CasADi dependency libraries")
87

98
macro(install_name_tool_add_rpath lib)
109
execute_process(COMMAND bash "-c" "patchelf --force-rpath --set-rpath '$ORIGIN/:$ORIGIN/../../sdk/Simbody/lib' '${libdir}/lib${lib}'"
@@ -36,10 +35,10 @@ if (OPENSIM_WITH_CASADI)
3635
install_name_tool_add_rpath(coinmumps.so.3)
3736
install_name_tool_print_rpath(coinmumps.so.3)
3837

39-
install_name_tool_print_rpath(coinmetis.so.1)
40-
install_name_tool_delete_rpath(coinmetis.so.1)
41-
install_name_tool_add_rpath(coinmetis.so.1)
42-
install_name_tool_print_rpath(coinmetis.so.1)
38+
install_name_tool_print_rpath(metis.so)
39+
install_name_tool_delete_rpath(metis.so)
40+
install_name_tool_add_rpath(metis.so)
41+
install_name_tool_print_rpath(metis.so)
4342

4443
install_name_tool_print_rpath(casadi_conic_nlpsol.so)
4544
install_name_tool_delete_rpath(casadi_conic_nlpsol.so)

cmake/OpenSimMocoInstallMacDependencyLibraries.cmake.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,19 @@ endmacro()
5757
if (OPENSIM_WITH_CASADI)
5858
install_name_tool_add_rpath(casadi.3.7)
5959
install_name_tool_delete_rpath(casadi.3.7 "@CASADI_LIBDIR@")
60+
install_name_tool_delete_rpath(casadi_nlpsol_ipopt.3.7 "@CASADI_LIBDIR@")
61+
62+
install_name_tool_add_rpath(ipopt.3)
63+
install_name_tool_add_rpath(coinmumps.3)
64+
install_name_tool_change(ipopt.3 coinmumps.3 "@IPOPT_LIBDIR@")
6065

6166
install_name_tool_change(casadi_nlpsol_ipopt.3.7 ipopt.3 "@IPOPT_LIBDIR@")
6267
install_name_tool_change(casadi_nlpsol_ipopt.3.7 coinmumps.3 "@IPOPT_LIBDIR@")
6368
install_name_tool_change(casadi_nlpsol_ipopt.3.7 metis "@IPOPT_LIBDIR@")
69+
install_name_tool_change_gfortran(casadi_nlpsol_ipopt.3.7)
6470
install_name_tool_change_quadmath(casadi_nlpsol_ipopt.3.7)
6571
install_name_tool_add_rpath(casadi_nlpsol_ipopt.3.7)
66-
install_name_tool_delete_rpath(casadi_nlpsol_ipopt.3.7 "@CASADI_LIBDIR@")
72+
6773
endif()
6874

6975

0 commit comments

Comments
 (0)