Here's my most recent progress for Snow Leopard, using jgtk701.app:

The previously suggested download of the system libraries:

<http://www.jsoftware.com/download/gtkmac32.zip>

is missing:

libgtksourceview-2.0.0.dylib
libxml2.2.dylib

Googling a bit for libgtksourceview found me this page on the J Wiki:

<http://www.jsoftware.com/jwiki/System/Beta/Gtk%20on%20Mac>

which seems to have a pretty complete download of GTK for OSX Intel. Anyway, it 
had the two missing dylibs.

The next problem was with ~adons/gui/gtk/gtk.ijs. Line 244-45:

> case. 'Darwin' do.
>   if. 0-:2!:5'DISPLAY' do.

My system defines display:

> declare -x DISPLAY="/tmp/launch-yIeXm9/org.x:0"

So the above if-clause tests FALSE and J tries to load the X11 GTK libraries, 
which aren't included in either of the above GTK distributions. If I fix this 
issue, and comment out both:

> NB. libgtksourceview=: <libdir,'libgtksourceview-2.0.0.dylib'
> NB. libxml=: <libdir,'libxml2.2.dylib'

I get the following:

> azonips:~$ /Users/cturner/Applications/j701/bin/jgtk.command ; exit;
> |domain error: cddef
> |   libgtksourceview     cddef each<;._2[0 :0
> |[-1320] /Users/cturner/Applications/j701/addons/gui/gtk/gtk.ijs


If I comment out that line, I get further errors.

If I add the two missing libraries and uncomment the above lines, I get:

> /Users/cturner/Applications/j701/bin/jgtk.command ; exit;
> azonips:~$ /Users/cturner/Applications/j701/bin/jgtk.command ; exit;
> 
> GTK init failed: libraries not installed or not found.
> 
> Find path to the gtk folder with Finder or shell command:
> ...> find / -name libgtk-x11-2.0.dylib 2> /dev/null
> 
> If not found, you need to install GTK.
> 
> The GTK installation is assumed to be in the Libraries framework.
> 
> /Library/Frameworks/Gtk.framework/Libraries
> /Library/Frameworks/Glib.framework/Libraries
> ...
> 
> |domain error: gtkinit
> |       13!:8[3

Which, taking me back to the beginning, seems like a less helpful error message.

HTH, Charles

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to