From: Kevan H. <ha...@br...> - 2021-04-06 01:53:54
|
Mansour: > CGPathCreateWithRoundedRect is only available with 10.9 and above: > > https://developer.apple.com/documentation/coregraphics/1411218-cgpathcreatewithroundedrect > > The simplest solution is to set MACOSX_DEPLOYMENT_TARGET to 10.9. The Tk compile completes when I move up to 10.9. > The other solution is as follows... Thank you for this. I will keep a note of the patch in case I need to run on a 10.8 machine. In the meantime, I believe all my users are running 10.11 or later. Marc: > To build for a 10.8 target I run: > export CFLAGS="-mmacosx-version-min=10.9" I try the following with TclTk 8.6.10: export CFLAGS="-mmacosx-version-min=10.9" make -C tcl/macosx embedded make -C tk/macosx embedded And as you predicted, I encounter no problems in the compilation. But I still get this same error when linking Tk. Undefined symbols for architecture x86_64: "_TclIsSpaceProc", referenced from: _strtoul in libtclstub8.6.a(strtoul.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) I get the same error when I try to build TclTk 8.7a3 with the same commands, and if I try without "embedded". If I add "-arch x86_64" to CFLAGS, the result is the same. The fact that _TclIsSpaceProc is not available is not because I compiled a 32-bit version of the routine. > Please make sure that you completely remove your build directory before > compiling. I have been doing that every time, deleting the entire build directory. Now I try building 10.7a3 with: export CFLAGS="-mmacosx-version-min=10.15" make -C tcl/macosx embedded make -C tk/macosx embedded I get the same _TclIsSpaceProc link error. According to a web search, this error was reported about six months ago in various forms, and was occuring with XCode command line tools version 12. I don't have XCode, only the CLTs. I have Clang version 12.0.0. I'm going to try the build on my previous laptop, where the compile worked a year ago. Best, Kevan -- Kevan Hashemi, Electrical Engineer Physics Department, Brandeis University http://www.bndhep.net |