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

Update build.sh #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
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
14 changes: 12 additions & 2 deletions opensim/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,21 @@ cd ..

# cp -r $PREFIX/simbody/libexec/simbody/* $PREFIX/bin/


if [ "$(uname)" == "Darwin" ]; then
SWIG_DIR_SPEC=/usr/local/Cellar/swig/4.0.2
SWIG_EXE_SPEC=~/swig/bin/swig
else
SWIG_DIR_SPEC=~/swig/share/swig
# Check if swig has been installed using package manager.
if [ -d "/usr/share/swig4.0" ]; then
SWIG_DIR_SPEC=/usr/share/swig4.0
SWIG_EXE_SPEC=/usr/bin/swig
else
SWIG_DIR_SPEC=~/swig/share/swig
SWIG_EXE_SPEC=~/swig/bin/swig
fi
fi

# TODO: Tests are missing!
mkdir opensim_build
cd opensim_build
Expand All @@ -36,7 +46,7 @@ cmake ../ \
-DCMAKE_OSX_SYSROOT=${CONDA_BUILD_SYSROOT} \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
-DSWIG_DIR=${SWIG_DIR_SPEC} \
-DSWIG_EXECUTABLE=~/swig/bin/swig \
-DSWIG_EXECUTABLE=${SWIG_EXE_SPEC} \
-DBUILD_PYTHON_WRAPPING=ON \
-DOPENSIM_DISABLE_LOG_FILE=ON \
-DOPENSIM_C3D_PARSER=ezc3d \
Expand Down