Skip to content

Instantly share code, notes, and snippets.

@lorepieri8
Created April 12, 2019 13:54
Show Gist options
  • Save lorepieri8/1b50199dee252f76f6a266664e8b0df4 to your computer and use it in GitHub Desktop.
Save lorepieri8/1b50199dee252f76f6a266664e8b0df4 to your computer and use it in GitHub Desktop.
library not found for -ltrezor-crypto
lorenzo@MacBook-Air-di-Lorenzo ~/recentanyl/anyledger-wallet/build $ cmake -GNinja ../
-- Found PythonInterp: /Users/lorenzo/anaconda/bin/python3 (found suitable version "3.6", minimum required is "3")
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- x86 build!
-- Found GTest: /usr/local/lib/libgtest.a
-- Found Threads: TRUE
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
---------------
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lorenzo/recentanyl/anyledger-wallet/build
lorenzo@MacBook-Air-di-Lorenzo ~/recentanyl/anyledger-wallet/build $ ninja
[12/63] Performing download step (git clone) for 'nanopb'
Cloning into 'nanopb'...
Already on 'master'
Your branch is up to date with 'origin/master'.
[19/63] Performing configure step for 'nanopb'
-- The C compiler identification is AppleClang 9.1.0.9020039
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /Users/lorenzo/anaconda/bin/python3 (found suitable version "3.6", minimum required is "3")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lorenzo/recentanyl/anyledger-wallet/build/nanopb/src/nanopb-build
[20/63] Performing build step for 'nanopb'
[1/5] Generating nanopb_pb2.py
[2/5] Building C object CMakeFiles/protobuf-nanopb-static.dir/pb_common.c.o
[3/5] Building C object CMakeFiles/protobuf-nanopb-static.dir/pb_encode.c.o
[4/5] Building C object CMakeFiles/protobuf-nanopb-static.dir/pb_decode.c.o
[5/5] Linking C static library libprotobuf-nanopb.a
[21/63] Performing install step for 'nanopb'
[0/1] Install the project...
-- Install configuration: ""
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/./lib/python3.6/site-packages/nanopb/proto/nanopb_pb2.py
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/./lib/python3.6/site-packages/nanopb/nanopb_generator.py
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/./lib/python3.6/site-packages/nanopb/protoc-gen-nanopb
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/lib/libprotobuf-nanopb.a
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/lib/cmake/nanopb-targets.cmake
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/lib/cmake/nanopb-targets-noconfig.cmake
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/lib/cmake/nanopb-config.cmake
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/lib/cmake/nanopb-config-version.cmake
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/lib/cmake/FindNanopb.cmake
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/pb.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/pb_common.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/pb_encode.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/pb_decode.h
[23/63] Performing download step (git clone) for 'trezor-crypto-lib'
Cloning into 'trezor-crypto'...
Already on 'master'
Your branch is up to date with 'origin/master'.
Submodule 'tests/wycheproof' (https://github.com/google/wycheproof) registered for path 'tests/wycheproof'
Cloning into '/Users/lorenzo/recentanyl/anyledger-wallet/build/thirdparty/trezor-crypto/tests/wycheproof'...
Submodule path 'tests/wycheproof': checked out '2904be69e9d666bf3064fdc15093747e695cfae6'
[26/63] Performing configure step for 'trezor-crypto-lib'
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lorenzo/recentanyl/anyledger-wallet/build/trezor-crypto/src/trezor-crypto-lib-build
[27/63] Performing build step for 'trezor-crypto-lib'
[1/29] Building C object CMakeFiles/trezor-crypto.dir/address.c.o
[2/29] Building C object CMakeFiles/trezor-crypto.dir/base32.c.o
[3/29] Building C object CMakeFiles/trezor-crypto.dir/bip32.c.o
[4/29] Building C object CMakeFiles/trezor-crypto.dir/base58.c.o
[5/29] Building C object CMakeFiles/trezor-crypto.dir/blake256.c.o
[6/29] Building C object CMakeFiles/trezor-crypto.dir/curves.c.o
[7/29] Building C object CMakeFiles/trezor-crypto.dir/bip39.c.o
[8/29] Building C object CMakeFiles/trezor-crypto.dir/cash_addr.c.o
[9/29] Building C object CMakeFiles/trezor-crypto.dir/bignum.c.o
[10/29] Building C object CMakeFiles/trezor-crypto.dir/hasher.c.o
[11/29] Building C object CMakeFiles/trezor-crypto.dir/blake2s.c.o
[12/29] Building C object CMakeFiles/trezor-crypto.dir/blake2b.c.o
[13/29] Building C object CMakeFiles/trezor-crypto.dir/memzero.c.o
[14/29] Building C object CMakeFiles/trezor-crypto.dir/hmac.c.o
[15/29] Building C object CMakeFiles/trezor-crypto.dir/ecdsa.c.o
[16/29] Building C object CMakeFiles/trezor-crypto.dir/rand.c.o
[17/29] Building C object CMakeFiles/trezor-crypto.dir/pbkdf2.c.o
[18/29] Building C object CMakeFiles/trezor-crypto.dir/rc4.c.o
[19/29] Building C object CMakeFiles/trezor-crypto.dir/nem.c.o
[20/29] Building C object CMakeFiles/trezor-crypto.dir/rfc6979.c.o
[21/29] Building C object CMakeFiles/trezor-crypto.dir/script.c.o
[22/29] Building C object CMakeFiles/trezor-crypto.dir/nist256p1.c.o
[23/29] Building C object CMakeFiles/trezor-crypto.dir/segwit_addr.c.o
[24/29] Building C object CMakeFiles/trezor-crypto.dir/ripemd160.c.o
[25/29] Building C object CMakeFiles/trezor-crypto.dir/groestl.c.o
[26/29] Building C object CMakeFiles/trezor-crypto.dir/sha2.c.o
[27/29] Building C object CMakeFiles/trezor-crypto.dir/sha3.c.o
[28/29] Building C object CMakeFiles/trezor-crypto.dir/secp256k1.c.o
[29/29] Linking C static library libtrezor-crypto.a
[28/63] Performing install step for 'trezor-crypto-lib'
[0/1] Install the project...
-- Install configuration: ""
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/lib/libtrezor-crypto.a
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/address.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/base32.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/base58.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/bignum.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/bip32.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/bip39.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/bip39_english.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/blake256.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/blake2_common.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/blake2b.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/blake2s.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/cash_addr.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/check_mem.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/curves.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ecdsa.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/groestl.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/groestl_internal.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/hasher.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/hmac.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/memzero.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/nem.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/nist256p1.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/options.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/pbkdf2.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/rand.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/rc4.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/rfc6979.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ripemd160.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/script.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/secp256k1.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/segwit_addr.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/sha2.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/sha3.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/chacha20poly1305.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/ecrypt-config.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/ecrypt-machine.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/ecrypt-portable.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/ecrypt-sync.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/ecrypt-types.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/poly1305-donna-32.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/poly1305-donna.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/chacha20poly1305/rfc7539.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/curve25519-donna-32bit.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/curve25519-donna-helpers.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/curve25519-donna-scalarmult-base.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-donna-32bit-tables.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-donna-basepoint-table.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-donna-impl-base.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-donna-portable.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-donna.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-hash-custom-keccak.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-hash-custom-sha3.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-hash-custom.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-keccak.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519-sha3.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/ed25519.h
-- Installing: /Users/lorenzo/recentanyl/anyledger-wallet/build/install/include/trezor-crypto/ed25519-donna/modm-donna-32bit.h
[41/63] Linking CXX executable examples/tests/src/test_tx
FAILED: examples/tests/src/test_tx
: && /Library/Developer/CommandLineTools/usr/bin/c++ -std=gnu++14 -pedantic -Wall -Wextra -Wl,-search_paths_first -Wl,-headerpad_max_install_names examples/tests/src/CMakeFiles/test_tx.dir/test_tx.cpp.o -o examples/tests/src/test_tx -L/Users/lorenzo/recentanyl/anyledger-wallet -Wl,-rpath,/Users/lorenzo/recentanyl/anyledger-wallet /usr/local/lib/libgtest.a /usr/local/lib/libgtest_main.a eth/libeth.a -ltrezor-crypto helpers/libhelpers.a && :
ld: library not found for -ltrezor-crypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[46/63] SOLC abi: /Users/lorenzo/recentanyl/anyledger-wallet/build/examples/tests...> /Users/lorenzo/recentanyl/anyledger-wallet/build/examples/tests/src/contracts.c
ninja: build stopped: subcommand failed.
lorenzo@MacBook-Air-di-Lorenzo ~/recentanyl/anyledger-wallet/build $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment