Open jorgschulze73 opened 1 year ago
This might be a bug in our build system.
The libpython.a
static libraries may only have the libpython symbols and not all the other libraries that are linked into libpython.dylib
. As a workaround, the full zstandard compressed distributions have all the raw object files and static archive inputs used to produce the installable Python distribution. In the case of these macOS distributions, you should be able to link against python/build/lib/libcrypto.a
and python/build/lib/libssl.a
to pull in the missing symbols.
Although I'm wondering if this is a symbol visibility problem. This may be one of the subtle problems that goes away if we just distribute shared libraries for 3rd party dependencies instead of aggressively statically linking everything.
I'm trying to embed Python interpreter in a C++ application with no external dependencies and found this project. I downloaded latest install-only prebuilt assets for arm64 macOS but when trying to compile my app against
libpython3.11d.a
I receive a lot of errors about undefined symbols (mostly from OpenSSL):Is this supposed to be intended behaviour? If yes, where can I found the prebuilt assets for OpenSSL (and other required dependencies) so that I can link against those as well?