spruceid / didkit

A cross-platform toolkit for decentralized identity.
https://www.spruceid.dev/didkit/didkit
Apache License 2.0
266 stars 76 forks source link

error: unable to find library -lunwind #379

Open hpelitebook745G2 opened 9 months ago

hpelitebook745G2 commented 9 months ago
  1. Cloned didkit and ssi in the same level in a folder
  2. Ran cargo build in the didkit root folder
  3. Ran cd ./lib
  4. Ran make ../target/test/android.stamp

Got this error:

error: linking with `i686-linux-android19-clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="... "-o" "~/Desktop/didkit/target/i686-linux-android/release/deps/libdidkit.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
  = note: ld: error: unable to find library -lunwind
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `didkit` (lib) due to previous error
make: *** [../target/i686-linux-android/release/libdidkit.so] Error 101"

I ran brew install lunwind:

➜  lib git:(main) ✗ brew install lunwind 
Warning: No available formula with the name "lunwind". Did you mean luabind or libunwind?
==> Searching for similarly named formulae and casks...
==> Formulae
luabind

To install luabind, run:
  brew install luabind

I ran brew install luabind:

➜  lib git:(main) ✗ brew install luabind
Error: luabind has been disabled because it is not maintained upstream!

I ran brew install libunwind:

➜  lib git:(main) ✗ brew install libunwind
libunwind: Linux is required for this software.
Error: libunwind: An unsatisfied requirement failed this build.
shabaad commented 7 months ago

Use forked repository https://github.com/alan-turing-institute/trustchain-mobile.git and follow the instructions from install_trustchain_mobile.md file to setup the project. This is updated latest repo. Android and iOS running successfully without any issues.