opensim-org / opensim-core

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

Build java bindings with native M1 instruction set #3938

Open aymanhab opened 1 week ago

aymanhab commented 1 week 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 week ago

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

aymanhab commented 1 week ago

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

aymanhab commented 1 week ago

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

aymanhab commented 1 week ago

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

nickbianco commented 3 days ago

@aymanhab is this in response to #3917?

aymanhab commented 3 days 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 3 days ago

Gotcha. Is this something we should PR into core?

aymanhab commented 3 days 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 19 hours 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 19 hours 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