hyperledger-archives / indy-sdk

indy-sdk
https://wiki.hyperledger.org/display/indy
Apache License 2.0
666 stars 737 forks source link

Cannot build indy-cli on MacOS #2573

Closed tdiesler closed 6 months ago

tdiesler commented 1 year ago
... le-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-635ac2664b5ede2a.rlib" "-lindy" "-lncurses" "-lSystem" "-lc" "-lm" "-L" "/Users/tdiesler/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/tdiesler/git/indy-sdk/cli/target/debug/deps/indy_cli-5a5d5b15d9696ff2" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: library not found for -lindy
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

I successfully built libindy before (and DYLD_LIBRARY_PATH points to that), but the indy-cli build cannot find/use that. Perhaps its a naming issue (i.e. indy vs. libindy ???)

ianco commented 1 year ago

I've had issues with DYLD_LIBRARY_PATH ... I link the generated libraries under /usr/local/lib and that seems to work

o$ ls -l /usr/local/lib  | grep -i indy
lrwxr-xr-x    1 icostanzo  wheel      83 16 Dec  2020 libaries_askar.dylib -> /Users/icostanzo/Projects/indy-shared/aries-askar/target/debug/libaries_askar.dylib
lrwxr-xr-x    1 icostanzo  wheel      69 30 Mar  2020 libindy.dylib -> /Users/icostanzo/Projects/indy-sdk/libindy/target/debug/libindy.dylib
lrwxr-xr-x    1 icostanzo  wheel      77 14 Dec  2020 libindy_vdr.dylib -> /Users/icostanzo/Projects/indy-shared/indy-vdr/target/debug/libindy_vdr.dylib
lrwxr-xr-x    1 icostanzo  wheel     111 30 Mar  2020 libindystrgpostgres.dylib -> /Users/icostanzo/Projects/indy-sdk/experimental/plugins/postgres_storage/target/debug/libindystrgpostgres.dylib
lrwxr-xr-x    1 icostanzo  wheel      75 30 Mar  2020 libnullpay.dylib -> /Users/icostanzo/Projects/indy-sdk/libnullpay/target/debug/libnullpay.dylib
lrwxr-xr-x    1 icostanzo  wheel      71 30 Mar  2020 libvcx.dylib -> /Users/icostanzo/Projects/indy-sdk/vcx/libvcx/target/debug/libvcx.dylib