DISPLAY is a popular way to check if x11 is running, I'm curious why it is
defined if x11 is not running. Or if is always defined in osx?  I'm
ignorant here.

If your case, you may try making that condition always true to load the
quartz gtk binary to see if it work or not.  The gtksourceview is not
mandatory and libxml should be referenced by gtksourceview or gtkbuilder.

You cannot uncomment any of those lib... definitions because that will lead
to value error.

Вск, 09 Янв 2011, Charles Turner писал(а):
> 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

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to