[ 94%] Linking CXX executable tlbc
Undefined symbols for architecture arm64:
"_CRYPTO_THREADID_set_callback", referenced from:
td::init_openssl_threads() in libtdutils.a(crypto.cpp.o)
"_CRYPTO_THREADID_set_pointer", referenced from:
td::(anonymous namespace)::openssl_threadid_callback(crypto_threadid_st*) in libtdutils.a(crypto.cpp.o)
"_CRYPTO_get_locking_callback", referenced from:
td::init_openssl_threads() in libtdutils.a(crypto.cpp.o)
"_CRYPTO_num_locks", referenced from:
td::(anonymous namespace)::openssl_mutexes() in libtdutils.a(crypto.cpp.o)
"_CRYPTO_set_locking_callback", referenced from:
td::init_openssl_threads() in libtdutils.a(crypto.cpp.o)
"_OPENSSL_add_all_algorithms_noconf", referenced from:
td::init_crypto()::$_6::operator()() const in libtdutils.a(crypto.cpp.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [crypto/tlbc] Error 1
make[2]: *** [crypto/CMakeFiles/tlbc.dir/all] Error 2
make[1]: *** [crypto/CMakeFiles/func.dir/rule] Error 2
make: *** [func] Error 2

Oct 2, 2022, 10:46 AM
Hey guys, I had this error when trying to build func on my apple silicon mac
Can anyone help?
Oct 2, 2022, 10:47 AM
Hi, It builds for me without any problems
Oct 2, 2022, 11:02 AM
maybe you need to install openssl ? via brew
Oct 2, 2022, 11:06 AM
I was able to build this in the past somehow, but I forgot what I did to make it work...
Oct 2, 2022, 11:27 AM
maybe this help
brew install openssl
Oct 2, 2022, 12:26 PM
Yes I did it
cmake says
-- Found OpenSSL: /opt/homebrew/Cellar/[email protected]/1.1.1q/lib/libcrypto.dylib (found version "1.0.2o")
Which makes zero sense
And it does not work
Oct 2, 2022, 12:27 PM
https://github.com/ton-defi-org/ton-binaries
if you dl the binaries from here ? do they work?
Oct 2, 2022, 12:27 PM
it works
But I would like to build it myself
Let me try more
Oct 2, 2022, 12:30 PM
did you restart the terminal after the brew install
maybe the env variable should re initiate ?
another thing i would try is

xcode-select --install

maybe you are missing clang are something
Oct 2, 2022, 12:35 PM
I added this and it works now
set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/[email protected]/")
set(OPENSSL_LIBRARIES "/opt/homebrew/opt/[email protected]/lib")
https://ton.org/docs/#/howto/step-by-step
Here it says "Note that this tutorial is for a testnet, so you must use the config https://ton-blockchain.github.io/testnet-global.config.json". Why cant the tutorial be used on the main net?
Oct 2, 2022, 12:58 PM
so the flags OPENSSL_ROOT_DIR and OPENSSL_LIBRARIES werent set I guess …

probably something with reading the env variables after the openssl installation
-------------------------------------------------
Hi all
does anyone knows the devs of mytonwallet ?

if you could connect me that would be great !

thanks !
Oct 2, 2022, 1:51 PM

© 2024 Draquery.com All rights reserved.