From 50fd62651398a3c6dfccc7b7b8854b3fa4f4a9cb Mon Sep 17 00:00:00 2001 From: aymanhab Date: Thu, 9 Jan 2025 11:01:33 -0800 Subject: [PATCH 1/3] Specify fortran compiler on linux --- opensim/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/opensim/meta.yaml b/opensim/meta.yaml index 1f27d19..15b1bae 100644 --- a/opensim/meta.yaml +++ b/opensim/meta.yaml @@ -27,6 +27,7 @@ requirements: - python {{ python }} - {{ compiler('c') }} - {{ compiler('cxx') }} + - {{ compiler('fortran') }} # [not win] - openblas # [not win] - make # [not win] From 325d74c596e7a366557e322bb0363b0e4bfc2ac9 Mon Sep 17 00:00:00 2001 From: aymanhab Date: Thu, 9 Jan 2025 11:03:25 -0800 Subject: [PATCH 2/3] Specify gfortran on linux --- opensim/conda_build_config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opensim/conda_build_config.yaml b/opensim/conda_build_config.yaml index 41c656a..5727d58 100644 --- a/opensim/conda_build_config.yaml +++ b/opensim/conda_build_config.yaml @@ -16,3 +16,6 @@ cxx_compiler: - vs2019 # [win] - clangxx # [osx] - gxx # [linux] +fortran_compiler: + - gfortran # [linux] + From c74f11f49ef367f7610cb6d1d14bae205cb63906 Mon Sep 17 00:00:00 2001 From: aymanhab Date: Thu, 9 Jan 2025 11:06:05 -0800 Subject: [PATCH 3/3] Enable casadi on linux --- opensim/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opensim/build.sh b/opensim/build.sh index 47b06dc..b98c0a2 100644 --- a/opensim/build.sh +++ b/opensim/build.sh @@ -13,7 +13,7 @@ cmake ../dependencies/ -LAH \ -DSUPERBUILD_spdlog=ON \ -DSUPERBUILD_ezc3d=ON \ -DOPENSIM_WITH_TROPTER=OFF \ - -DOPENSIM_WITH_CASADI=OFF + -DOPENSIM_WITH_CASADI=ON make -j8 cd .. @@ -48,6 +48,6 @@ cmake ../ \ -DOPENSIM_BUILD_INDIVIDUAL_APPS=ON \ -DOPENSIM_COPY_DEPENDENCIES=ON \ -DOPENSIM_WITH_TROPTER=OFF \ - -DOPENSIM_WITH_CASADI=OFF + -DOPENSIM_WITH_CASADI=ON make -j8 make install