Replies: 4 comments 5 replies
-
Currently android build is built as dynamic library, I don't think we configured |
Beta Was this translation helpful? Give feedback.
-
Thanks for replying, indeed, it seems I cannot just turn on prefab, the generated Regarding the CMake error, I think it is not important until we get the library compiled. Also, using Java/Kotlin is not an option, since I'm trying to create a RN library that using JSI (faster C++ bindings with JS) and I want to use a single codebase, hence I need the C++ headers. |
Beta Was this translation helpful? Give feedback.
-
I've managed to compile a prefab .aar (all the headers seem to be there), however when I try to compile my app, I get this error:
The Any guidance would be much appreciated |
Beta Was this translation helpful? Give feedback.
-
I've been reading up on the Android STL and static/dynamic linking, so it would seem when the The documentation says changing But I still get the same error when trying to link it in my library. As @AlexOnomy mentioned, it is not a problem with the missing arch missing, but rather a specific version linking error. |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm trying to write an Android C++ library using wallet-core, however, I'm a C++/Android noob. I've managed to add the Gradle dependency into the Android project. Then I would like to expose the internal C++ headers to my own C++ code.
To write my own library I'm using CMake (with a CMakeLists.txt file) where I just declare where my files are. I got from the documentation it is possible for packaged libraries (.aar) to expose the internal C++ headers to other C++ code. I basically have the Gradle dependency working and now the question is how to expose/link it to my C++ code.
How ever when I try to add the dependency on my
CMakeLists.txt
then I just get an error, here is my complete CMakeLists file:You can see I try to find the
TrustWalletCore
library and link it to my library. But the gradle process just fails:Are there any pointers at all you could give me? is it my fault? or is it because the generated
.aar
is notprefab
compatible and importing the code into C++ won't work?Beta Was this translation helpful? Give feedback.
All reactions