Open FaultyxDx opened 1 year ago
Unfortunately, binding doesn't provide builds for arm/arch architectures.
I would really like to have arm64 builds for macOS since that is a fairly common platform out there now.
I would also prefer to use this natively. In the meantime, you can install an x86 JVM which will run with Rosetta.
+1
some projects started using zig for easy cross-compilation of C code, eg. https://github.com/lmdbjava/lmdbjava/pull/217 I suspect this would work C++ as well, see https://zig.news/kristoff/cross-compile-a-c-c-project-with-zig-3599
+1
buildSrc/src/main/groovy/tool/generator/GenerateLibs.groovy
- def mac64 = BuildTarget.newDefaultTarget(BuildTarget.TargetOs.MacOsX, true)
+ def mac64 = BuildTarget.newDefaultTarget(BuildTarget.TargetOs.MacOsX, true, true)
- BuildExecutor.executeAnt(jniDir + '/build-macosx64.xml', commonParams)
+ BuildExecutor.executeAnt(jniDir + '/build-macosxarm64.xml', commonParams)
./gradlew imgui-binding:generateLibs -Denvs=macos -Dfreeetype=true -Dlocal
imgui-binding/build/libsNative/macosxarm64/libimgui-javaarm64.dylib
-Dimgui.library.path=./path/to/library/folder -Dimgui.library.name=libimgui-javaarm64.dylib
Version
1.86.9
What happened?
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/~~aPFq1K5IGZtPglACKE1Dzw==/xyz.akatski.imguijni-G8FAKsF_TBczARNP_Fv6Hw==/lib/arm64/libimgui-java64.so" is for EM_X86_64 (62) instead of EM_AARCH64 (183)
Reproduction
i just loaded the sample code is provided in repo and compiled dependency in my application
Relevant log output
No response