opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
801 stars 324 forks source link

Build java bindings with native M1 instruction set #3938

Open aymanhab opened 1 month ago

aymanhab commented 1 month ago

Since GUI can't compile a full stack native M1 libraries as of 10/24, we will publish/support API builds with native M1 libraries.

aymanhab commented 1 month ago

https://drive.google.com/file/d/1N4fqu0PWnEL8aKSTTs8DRsSPTLW6rAkN/view?usp=drive_link

aymanhab commented 1 month ago

The above link has API build with java bindings but without Moco. I'll post one with Moco soon.

aymanhab commented 1 month ago

Build with moco libraries (on osx 15) https://drive.google.com/file/d/12y27vA40tL7WxqpaU5jEY0DvE2wNEG-n/view?usp=sharing

aymanhab commented 1 month ago

@mattpetrucci Here's the zip files for api builds on M1

nickbianco commented 1 month ago

@aymanhab is this in response to #3917?

aymanhab commented 1 month ago

Not really, the issue in 3917 happened even using Rosetta and in python. This responds to bj wanting to run api natively in matlab on Apple silicon

nickbianco commented 1 month ago

Gotcha. Is this something we should PR into core?

aymanhab commented 1 month ago

Sure, the only thing to PR would likely be a script to wire matlab to an API release the rest is just a build process.

On Tue, Oct 15, 2024, 9:40 AM Nick Bianco @.***> wrote:

Gotcha. Is this something we should PR into core?

— Reply to this email directly, view it on GitHub https://github.com/opensim-org/opensim-core/issues/3938#issuecomment-2414510246, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6JY4ERP5CWVJOHQVCNO4LZ3VAPJAVCNFSM6AAAAABPVS7TVWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJUGUYTAMRUGY . You are receiving this because you were mentioned.Message ID: @.***>

mattpetrucci commented 1 month ago

@aymanhab @nickbianco Tried running configureOpenSim.m. Selected the main folder and it breaks showing the message "The Folder you selected is not an OpenSim installation." Did the same when I select the bin folder.

It looks like the problem is in line 95 of the code. It wants the path to get the openSimFolder, which needs the appDir which is this path: /Users/Matt/Documents/OpenSimArtifacts/opensim-core-source-install/opensim-core-source-install.app. This path doesn't exist.

aymanhab commented 1 month ago

Thanks Matt, indeed this is expected as the script never used or tested an api install, I'll update and let you know next week. Thanks again