From: Daniel A. S. <st...@ic...> - 2004-01-13 08:04:38
|
Cameron, On 11/01/2004, at 2:03 , Cameron Laird wrote: > I'd been e-mailing in a way that sf.net didn't recognize, and > Daniel's done me the courtesy of manually authorizing every- > thing I've sent to tcl-mac. I *think* I solved that one, and > this message should go through automatically as from a regi- > stered subscriber, as I am. Daniel, do let me know if I'm > still creating problems. still didn't seem to work. As mentioned, the easiest way around the problem is to subscribe the exact address that is used for posting and eventually disable mail delivery for that address in mailman. > I recently upgraded to Panther. > > I've never been able to construct 8.3x or 8.4x Tk cleanly. I > unpacked Tcl and Tk 8.5 Head, and, although make failed when > I tried a conventional tk/unix generation, > make -C tcl/macosx; make -C tk/macosx > make -C tcl/macosx install INSTALL_ROOT=$MY_ROOT > make -c tk/macosx install INSTALL_ROOT=$MY_ROOT > succeeded. > > The wish8.5 this yields seems to require X (correct? no, this build does not require X1, it uses the native Aqua GUI widgets. The fact that this build works seems to indicate that something is wrong with your X11 install on your system, but not with your compiler/toolchain. > The > answer's in the archives, I know, but I've had trouble recog- > nizing the signal; most of what I get when I try to read is > the noise). Since I installed Panther, X hasn't done what I > expect. X11 comes with 10.3, it's an optional install on the installer CDs, IIRC on CD #3 (X11User.pkg), also the headers & some libraries are a separate install that you'll also need to build Tk, that one is an optional install on the XCode CD (X11SDK.pkg). > I installed XDarwin (by way of Fink? I can't understand my own > notes) soon after I picked up this host. It always did what > I expected, and I didn't study it at all. I have a red X on > (in?) my dock, and I'd click that when I needed X. > > Now, when I launch X, and select either "Full screen" or "Root- > less", the process simply goes away. No diagnostic is evident > to me. not sure if XDarwin still works on Panther, I now use Apple's X11 exclusively. It may be wise to remove XDarwin completely in fact so that you don't have the possibility of including the wrong/old X11 headers by mistake. > I did as complete an installation of Panther's XCode as I could. > Is there an X server somewhere I'm not noticing? you should have /Applications/Utilities/X11 if you installed the Apple X11 correctly. > Should I > expect to re-install XDarwin? Is it practical for me to work > with a native wish8.5, that is, one that doesn't require X? it depends, tkX11 is certainly more "standard" in certain ways, but tkAqua is "nicer" in that it uses a more platform-native look&feel. It's easy to have both installed, but tk extensions built against one won't necessarily run with the other. > I recognize I have the resources to answer all these questions > on my own. I'd be very thankful, though, if someone could > shortcut the hours it seems to take me now to unravel anything > on the Mac. > > Again: the goal, in my terms, is to be able to > gcc -o my_app ... -ltk -ltcl ... > and launch my_app. I'm willing to be ignorant about a lot, for > now, if I can find success in this one pursuit. I only have to > make it work on my one development host (for now). the following steps in terminal should build tcl/tk X11 for you, this exact sequence works for me on a freshly installed Panther system (with X11 and XCode including X11SDK installed). If this doesn't work for you, you may things missing from you system or may have bits left over from the previous system version (or from fink) that interfere. You may want to do an "archive & install" of Panther instead of an upgrade to get a clean system... % cd ~ % mkdir tcltk; cd tcltk % curl -O http://umn.dl.sourceforge.net/sourceforge/tcl/tcl8.4.5-src.tar.gz % curl -O http://umn.dl.sourceforge.net/sourceforge/tcl/tk8.4.5-src.tar.gz % tar zxf tcl8.4.5-src.tar.gz % tar zxf tk8.4.5-src.tar.gz % mkdir -p build/tcl build/tk; cd build/tcl % ../../tcl8.4.5/unix/configure % make % cd ../tk % ../../tk8.4.5/unix/configure --with-tcl=`pwd`/../tcl/ % make % setenv DISPLAY :0.0; setenv DYLD_LIBRARY_PATH `pwd`; open /Applications/Utilities/X11.app % make test Cheers, Daniel -- ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |