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

Add the possibility to use the official casadi binaries #14

Merged
merged 3 commits into from
Aug 2, 2022

Conversation

FabioBergonti
Copy link
Member

Instead of using casadi installed via conda, the user can select to use casadi binaries released in https://web.casadi.org/get/

@FabioBergonti FabioBergonti self-assigned this Aug 2, 2022
if input.install_casadi_via_mamba
system(sprintf('"%s" create -n "%s" -y -c conda-forge -c robotology casadi-matlab-bindings=3.5.5.2 "libblas=*=*openblas"\n', mamba_full_path,input.env_name));
else
system(sprintf('"%s" create -n "%s" -y -c conda-forge -c robotology \n', mamba_full_path,input.env_name));
Copy link
Contributor

@traversaro traversaro Aug 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to create the conda/mamba environment if you install casadi by the official binaries?

Copy link
Member Author

@FabioBergonti FabioBergonti Aug 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because in the environment I also declare the MATLABPATH env variable (see https://github.com/ami-iit/mystica/pull/14/files#diff-54c250a9c215f1709a131ba16c0752bab45e3460408a7ab3152a992dcda74ba3R140).
I usually run Matlab from a terminal where the mamba environment is active, in this way it's not necessary to run the autogenerated setup.m

@FabioBergonti
Copy link
Member Author

Thanks @traversaro
Merging

@FabioBergonti FabioBergonti merged commit 4f5f723 into dynamic-simulator Aug 2, 2022
@FabioBergonti FabioBergonti deleted the use-casadi-bin branch August 2, 2022 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants