On Jul 23, 2008, at 5:40 PM, William Kyngesburye wrote:

On Jul 23, 2008, at 7:16 PM, Michael Barton wrote:

I also have TclTk libs in /usr/local/lib, but these are not links. Maybe I should delete them? I'm not sure if go to the x11 install that I need for compiling the 'normal' TclTk GUI (the one installed following your instructions in the README file with most files located in /usr/local/tcltk).

otool -L /usr/local/lib/libtk8.4.dylib

(or 8.5 if they are 8.5)

This will tell you if it's linked to X11.

cmb-MBP-2:grass7_src cmbarton$ otool -L /usr/local/lib/libtk8.4.dylib
/usr/local/lib/libtk8.4.dylib:
/usr/local/lib/libtk8.4.dylib (compatibility version 8.4.0, current version 8.4.14) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.3) /usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, current version 6.2.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
cmb-MBP-2:grass7_src cmbarton$

I am thinking this means that this version of the libraries are linked to x11

Michael



Then just add --with-tcltk-libs=/usr/local/lib to your configure.

Maybe --with-tcltk-libs=/usr/lib ??

NO.  That's the system tcltk.

What about the environmental setting for 8.5? Just not run it or set it to 8.4?

I just started looking at 8.5. What I found so far for the aqua framework build:

- it includes the private headers we need by default, but in a separate subfolder:

Tk.framework/PrivateHeaders

- it does NOT install /usr/local/lib symlinks. So to account for a default tcltk aqua, we need to look into the configure idea I had earlier.

- while they have 64bits working for an X11 build, they don't have it working for an Aqua build, so we won't get a 64bit tcl-based nviz.


For an immediate fix:

Configure with the --with-tcltk-includes as:

--with-tcltk-includes="/Library/Frameworks/Tcl.framework/Headers / Library/Frameworks/Tk.framework/Headers /Library/Frameworks/ Tk.framework/PrivateHeaders" --with-opengl=aqua

you can ignore --with-tcltk-libs. BEFORE make, edit include/make/ platform.make and replace the TCLTKLIBS line with:

TCLTKLIBS = -framework Tcl -framework Tk

then make.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

All generalizations are dangerous, even this one.



_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to