beeware / Python-Apple-support

A meta-package for building a version of Python that can be embedded into a macOS, iOS, tvOS or watchOS project.
MIT License
1.11k stars 160 forks source link

ld: symbol(s) not found for architecture x86_64 #95

Closed full-of-fire closed 3 years ago

full-of-fire commented 4 years ago

Describe the bug ld: symbol(s) not found for architecture x86_64

To Reproduce I use Python-Apple-support to run make macOS and then add the files in Support to the App project of macOS. An error is reported when compiling. Can you help me see this problem? Thank you very much. Detail Undefined symbols for architecture x86_64: "_libintl_bind_textdomain_codeset", referenced from: _PyIntl_bind_textdomain_codeset in libPython.a(_localemodule.o) "_libintl_bindtextdomain", referenced from: _PyIntl_bindtextdomain in libPython.a(_localemodule.o) "_libintl_dcgettext", referenced from: _PyIntl_dcgettext in libPython.a(_localemodule.o) "_libintl_dgettext", referenced from: _PyIntl_dgettext in libPython.a(_localemodule.o) "_libintl_gettext", referenced from: _PyIntl_gettext in libPython.a(_localemodule.o) "_libintl_setlocale", referenced from: _PyLocale_setlocale in libPython.a(_localemodule.o) _PyLocale_localeconv in libPython.a(_localemodule.o) "_libintl_textdomain", referenced from: _PyIntl_textdomain in libPython.a(_localemodule.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation

freakboy3742 commented 4 years ago

Sounds like you've got gettext in your developer environment when you run the compilation. For some reason, we can't convince the build script to ignore that dependency if it is present.

full-of-fire commented 4 years ago

But I removed the files in the Support and compiled it normally. I really don’t know how to solve it. I’ll try to find other methods again, Thanks for the reply!

freakboy3742 commented 3 years ago

This appears to be a duplicate of #91, which has now been resolved.