Skip to content

add macos-arm64 native library#4

Merged
Morgoth398 merged 1 commit into
Morgoth398:Overhaulfrom
stephengold:sgold-dylib
Jun 25, 2026
Merged

add macos-arm64 native library#4
Morgoth398 merged 1 commit into
Morgoth398:Overhaulfrom
stephengold:sgold-dylib

Conversation

@stephengold

Copy link
Copy Markdown
Contributor

Here's a hand-compiled native library for macos-arm64. I tested it and determined that no source-code changes were required, just the addition of one dylib.

The build/test procedure, for future reference:

  • built joltc using cmake -S . -B build followed by cmake --build build
  • copied "build/lib/libjoltc.dylib" to "../JoltPhysics-JavaFFM/src/main/resources/natives/jolt/libjolt_arm64.dylib"
  • downloaded JDK26 from https://adoptium.net/temurin/releases
  • installed JDK26 using installer -pkg ~/Downloads/OpenJDK26U-jdk_aarch64_mac_hotspot_26.0.1_8.pkg -target /
  • export JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-26.jdk/Contents/Home
  • installed Maven using brew install maven
  • built JoltPhysics-JavaFFM using mvn install
  • tested using $JAVA_HOME/bin/java --enable-preview -cp target/JoltPhysics-JavaFFM-5.5.0-jar-with-dependencies.jar volucris.bindings.jolt.HelloWorld

@Morgoth398 Morgoth398 merged commit bdcb174 into Morgoth398:Overhaul Jun 25, 2026
1 check failed
@stephengold stephengold deleted the sgold-dylib branch June 26, 2026 04:12
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