core icon indicating copy to clipboard operation
core copied to clipboard

Mac systemwide installation with cmake fails

Open Simon-Laux opened this issue 3 years ago • 0 comments

gist of the error: ld: library not found for -lsqlcipher

full error

   Compiling deltachat v1.78.0 (~/Coding/deltachat-core-rust)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-Wl,-exported_symbols_list,/var/folders/zk/vsl75gsn4qxgnqj373m1jqcw0000gn/T/rustc0Z6Rq4/list" "-arch" "arm64" "~/Coding/deltachat-core-rust/target/release/deps/deltachat.deltachat.d6cc54ff-cgu.2.rcgu.o" "-L" "~/Coding/deltachat-core-rust/target/release/deps" "-L" "~/.rustup/toolchains/1.60.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "~/.rustup/toolchains/1.60.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-4b0e4c844ac47183.rlib" "-framework" "Security" "-framework" "CoreFoundation" "-lsqlcipher" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "~/.rustup/toolchains/1.60.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "~/Coding/deltachat-core-rust/target/release/deps/libdeltachat.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs"
  = note: ld: library not found for -lsqlcipher
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `deltachat_ffi` due to previous error
make[2]: *** [target/release/libdeltachat.a] Error 101
make[1]: *** [CMakeFiles/lib_deltachat.dir/all] Error 2
make: *** [all] Error 2

after this I have installed sqlcipher via home-brew, but it does not find it.

Simon-Laux avatar Apr 30 '22 23:04 Simon-Laux