From: Kevin W. <kw...@co...> - 2011-03-13 23:12:12
|
Hi Kish, On 3/13/11 6:59 PM, K Shen wrote: > I build a Tcl/Tk 8.5.9 from source so that it provides both Aqua and X11 versions of Tcl/Tk for use with my application. I build the Aqua version following the instructions in the macosx/README, with weak-linking for 10.5. For Unix. I build from the unix directory. It's not entirely clear to me how you can build both X11 and Aqua versions of Tk, unless they are installed in different places. > > I am able to run both the X11 and Aqua wish on my own machine (an Intel iMac running Mac OS X 10.6), but I have just received a report from a user that > he is unable to run the Aqua Tcl/Tk I distribute. He reports the following error: > > TclMacOSXNotifierAddRunLoopMode: Tcl not built with CoreFoundation support > /Users/pmoura/Documents/Prolog/eclipse_6_0_168_x86_64_macosx/tcltk/x86_64_macosx/bin/wish8.5: line 2: 16972 Abort trap "$(dirname $0)/../Library/Frameworks/Tk.framework/Versions/8.5/Resources/Wish.app/Contents/MacOS/Wish" "$@" > > He is running a 64bit Intel Mac OS X 10.6 machine as well, so I am not sure why he is getting this problem and I am not. > > As far as I can tell from the configure, --enable-corefoundation is a flag for configuring the Mac build of Tcl/Tk, but it is enabled by default, and I don't remember disabling it during the build. --enable-corefoundation is the default, and is required for Aqua Tk. -disable-corefoundation is a flag you can pass for Unix/X11 builds of Wish, but I'm not sure if that is the default for Unix/X11 Tk. > > Does anyone have any idea what the problem might be, and why the Tcl/Tk can run on some Macs, but not others, even though they are both running the same version of Mac OS X? [I have tried running the Aqua Tcl/Tk on both 32 and 64 bit kernels, and it works for me on both] The only thing I can think of is that you have mixed up your X11 and Aqua builds, gotten them tangled up. Have you tried separating them out? --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com |