-
Notifications
You must be signed in to change notification settings - Fork 743
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
Introduce macosx-arm64
to presets for libpostal
#1205
Conversation
Hi @saudet, I tried the library on my mac m1 but it fails at runtime with:
Apparently, this is a sign the architecture of the library is incorrect. However, if I unpack the jar, the library looks ok
do you have an idea of what went wrong? Thanks, |
It's saying "X86_64", doesn't this need to be "ARM64"? |
oh you are right, I was looking at the other dynamic library where the architecture is correct:
hum so the cppbuild.sh must be incorrect: https://github.com/bytedeco/javacpp-presets/pull/1205/files#diff-ae4eed1b337db40a14189f50b893c841de813757ab17c9f41e6d903263ab6f86R45 |
To get cross compilation working with Autotools (or CMake for that matter), you'll probably need to set CC="clang -arch arm64 -fPIC" and CXX="clang++ -arch arm64 -fPIC" like this: |
ok got it, I'm really sorry: |
There's actually no C++ files in libpostal, so we should be able to do the same as libffi. Could you test only with |
This has been released with version 1.5.8. Thanks for the contribution! |
No description provided.