How to compile Secp256K1 .a static library for different architectures #1202
Replies: 5 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 |
Beta Was this translation helpful? Give feedback.
-
Any dea how to use the library for Arduino/PlatformIO projects ? |
Beta Was this translation helpful? Give feedback.
-
If it's using the ARM assembly and you want pure C, you can force that with |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions