-
Notifications
You must be signed in to change notification settings - Fork 1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
How to compile Secp256K1 .a static library for different architectures #1109
Comments
Set your PATH correctly, for instance:
For ARM32 with experimental assembler::
For other architectures, a simpler config should work, for instance:
You'll find the Note that there will be many different compilers with different JNI version numbers. You need to select the one you need. 21 and 31 are arbitrary choices above. related: #621 |
Any dea how to use the library for Arduino/PlatformIO projects ? |
If it's using the ARM assembly and you want pure C, you can force that with |
Thank you, I suspect PlanformIO would not understand any of it because it take the library from the github as it is thus I have no chance to do any configuration. I tried to copy just the .c file and compile - it did, but then it would not link, I guess not enough flash on my device, so for now I gave up on this and found uECC library which does compile and link. I will see how long it takes to sign. I will use your library on the receiving end, but there is compiles already, so all is fine. |
you can
Well I don't know how PlanformIO works but if it targets embedded then maybe its package should set these by default? But I can't find the package here: https://registry.platformio.org/search Which package are you using? Maybe you want to create an official package? If you can set defines/compiler options, then |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
At present, my project depends on the secp256k1 library file. Now I need to compile the static library of different architectures for the Android JNI interface. How should I compile it? Please help me, thank you very much
The text was updated successfully, but these errors were encountered: