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

Copy adolc and dependencies to install folder on linux #2930

Merged
merged 34 commits into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
4aec590
Copy adolc and dependencies to install folder (rpath not fixed yet)
aymanhab Jan 14, 2021
93137a4
Update CMakeLists.txt
aymanhab Jan 15, 2021
0f63d38
UNIX is True on APPLE, account for that to fix Mac build
aymanhab Jan 15, 2021
587723d
minor cleanup
aymanhab Jan 15, 2021
d3c7a70
modify rpath on linux
aymanhab Jan 15, 2021
ea1a944
Add custom file to change rpath for tropter depenedencies on linuxwq
aymanhab Jan 28, 2021
96eaf9a
Update CMakeLists.txt
aymanhab Mar 2, 2021
970f64e
Copy libraries on linux to install folder.
aymanhab Aug 19, 2021
2fa777f
Merge branch 'fix_tropter_libs_linux' of https://github.com/opensim-o…
aymanhab Aug 19, 2021
acd1551
Merge branch 'master' into fix_tropter_libs_linux
aymanhab Aug 19, 2021
8434a81
Merge branch 'master' into fix_tropter_libs_linux
aymanhab Aug 1, 2022
9266f58
Update CMakeLists.txt
aymanhab Aug 3, 2022
220f2db
add script to change rpath for tropter and dependent libraries on lin…
aymanhab Aug 5, 2022
d31926b
fix rpath of tropter libs
aymanhab Aug 6, 2022
d40925a
Remove some unused lines and add comments
aymanhab Aug 8, 2022
0455833
Merge branch 'master' into fix_tropter_libs_linux
aymanhab Aug 25, 2022
7d174a8
Merge remote-tracking branch 'remotes/origin/main' into fix_tropter_l…
aymanhab Dec 15, 2022
115820b
Merge branch 'main' into fix_tropter_libs_linux
aymanhab Dec 16, 2022
6fae1cb
Merge branch 'fix_tropter_libs_linux' of https://github.com/opensim-o…
aymanhab Dec 16, 2022
a7a9231
Add debugging message line in cmake
aymanhab Dec 20, 2022
4edb990
more diagnostic messages
aymanhab Jan 4, 2023
89a2c83
debug patchelf command
aymanhab Jan 4, 2023
cc849ab
debug gfortran and quadmath libs
aymanhab Jan 4, 2023
365704f
Changed option --add-rpath by --set-rpath.
AlbertoCasasOrtiz Jan 10, 2023
3fa1d33
Updated gfortran and quadmath paths
AlbertoCasasOrtiz Jan 19, 2023
5a424f8
Changing rpath for tropter.
AlbertoCasasOrtiz Jan 19, 2023
fcc241e
Added runpath for ipopt and adolc.
AlbertoCasasOrtiz Jan 19, 2023
6717b62
Update continuous_integration.yml
AlbertoCasasOrtiz Jan 20, 2023
a683376
Added rpath to coinmumps and coinmetis
AlbertoCasasOrtiz Jan 20, 2023
d1304ac
Update tropter_install_linux_dependency_libraries.cmake.in
AlbertoCasasOrtiz Feb 6, 2023
9a75fbc
Update tropter_install_linux_dependency_libraries.cmake.in
AlbertoCasasOrtiz Feb 6, 2023
2082b6b
Changed ORIGIN by .
AlbertoCasasOrtiz Feb 8, 2023
3c4e10e
Merge pull request #3394 from opensim-org/main
AlbertoCasasOrtiz Feb 8, 2023
3c02ee4
use ORIGIN for default rpath
aymanhab Feb 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install packages
run: sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools
run: sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools patchelf

- name: Install SWIG
# if: steps.cache-swig.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -639,7 +639,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install packages
run: sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools
run: sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools patchelf

- name: Install SWIG
# if: steps.cache-swig.outputs.cache-hit != 'true'
Expand Down
43 changes: 37 additions & 6 deletions Vendors/tropter/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,45 @@ if(TROPTER_COPY_DEPENDENCIES AND APPLE)
install(SCRIPT "${script}")

elseif(TROPTER_COPY_DEPENDENCIES AND UNIX)
get_filename_component(gcc_libdir "${pkgcfg_lib_IPOPT_gfortran}" DIRECTORY)
message(STATUS "getting dir for ${pkgcfg_lib_IPOPT_gfortran}" )
message(STATUS "ADOLC_DIR dir ${ADOLC_DIR}" )
message(STATUS "ColPack_ROOT_DIR dir ${ColPack_ROOT_DIR}" )
message(STATUS "IPOPT_LIBDIR dir ${IPOPT_LIBDIR}" )

get_filename_component(gcc_libdir "${pkgcfg_lib_IPOPT_gfortran}" DIRECTORY)

file(GLOB gfortran "${gcc_libdir}/libgfortran*.so")
file(GLOB quadmath "${gcc_libdir}/libquadmath*.so")
file(GLOB gfortran "${gcc_libdir}/../../../x86_64-linux-gnu/libgfortran*.so*")
file(GLOB quadmath "${gcc_libdir}/../../../x86_64-linux-gnu/libquadmath*.so*")
message(STATUS "gfortran list ${gfortran}" )
message(STATUS "quadmath list ${quadmath}" )

install(FILES
${ADOLC_DIR}/lib64/libadolc.so.2.1.0 DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
install(FILES
${ADOLC_DIR}/lib64/libadolc.so.2
${ADOLC_DIR}/lib64/libadolc.so.2.1.0
${ADOLC_DIR}/lib64/libadolc.so
# /usr/local/opt/boost/lib/libboost_system.so
${ColPack_ROOT_DIR}/lib/libColPack.so.0
${ColPack_ROOT_DIR}/lib/libColPack.so
${IPOPT_LIBDIR}/libipopt.so.1.10.8
${IPOPT_LIBDIR}/libipopt.so.1
${IPOPT_LIBDIR}/libipopt.so
${IPOPT_LIBDIR}/libcoinmumps.so.1.6.0
${IPOPT_LIBDIR}/libcoinmumps.so.1
${IPOPT_LIBDIR}/libcoinmumps.so
${IPOPT_LIBDIR}/libcoinmetis.so.1.3.5
${IPOPT_LIBDIR}/libcoinmetis.so.1
${IPOPT_LIBDIR}/libcoinmetis.so

${gfortran}
${quadmath}
${gcc_libdir}/libgcc_s.so

DESTINATION ${CMAKE_INSTALL_LIBDIR})
set(script
${CMAKE_CURRENT_BINARY_DIR}/tropter_install_linux_dependency_libraries.cmake)
configure_file(tropter_install_linux_dependency_libraries.cmake.in
"${script}" @ONLY)
install(SCRIPT "${script}")
endif()


Loading