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

"To Do
1. shrink down the gtk libraries to runtime only (if possible). Right
now the download is around 40MB. However, run time on Windows is only
around 10MB and it should be about the same on the Mac. "

Here's where I got to, after an hour or so this morning...

"~install/gtk" comes as a zipfile of around 40 MB. But it expands to
207.2 MB. It contains these dirs:

        bin                     6.1 MB
        etc                     291 KB
                include         5.9 MB
                info            377 KB
        lib                     22.8 MB
                Library         20 KB
                libexec         4 KB
                man                     16 KB
                share           171 MB
        share/gtksourceview-2.0         934 KB
                var                     684 KB

Most of the MBs are in /share and (to a lesser extent) /lib (...which
has all the Mac:dylibs -- c/f Win:DLLs)

I hid the indented dirs above (...moved them to a folder called HIDE)
and blue-J (jgtj701.app) started, displayed a noun in the session
window, and opened an ijs script in the Edit window, and did all these
things without nasty messages appearing in Mac:Terminal.

Here's a sample of the sort of message you see in Mac:Terminal when
you hide something needed:
(<unknown>:524): GtkSourceView-WARNING **: Failed to load
'/Applications/j701/addons/gui/gtk/config/j.lang': could not find the
RelaxNG schema file

Mind-you, this is not to say jgtk will be happy when I start wanting
more specialist facilities. But with Mac:Spotlight and Mac:Terminal
it's easy to identify any missing files/dirs and drag them back into
"~install/gtk".

I thus arrive at gtk (30.2MB) --not excessive by today's standards. It
zips-up to: gtk.zip (8.9 MB), suitable for a download, IMO.
It contains the whole of the originals dirs: /bin  /etc  /lib, and a
single dir from /share, viz: /share/gtksourceview-2.0/.

That's the best I can do for now. Further work would need to
cheese-pare /bin and /lib, without any guarantee that some specialist
facility might not fail. I'd be happy to stick with what I've arrived
at, ...knowing I can download the whole of /gtk from somewhere.

Now... what I want for Christmas is a sample app to study.

Ian



On Mon, Dec 13, 2010 at 11:37 PM, Ian Clark <[email protected]> wrote:
> Well, that seemed to work, at last! And fairly smoothly -- or at least
> potentially smoothable.
>
> Here is my log, as I followed the steps as closely as I could from:
> http://www.jsoftware.com/jwiki/System/Beta/Gtk%20on%20Mac
>
> 1. install J701 from the beta page.
>
> [I did that, renaming my old j701 install folders, and dragging down
> the 4 coloured J's afresh into the Dock.]
> [But when I tried to run jconsole using the gray-J (jcon701.app), Mac
> told me the app was broken.
> Undaunted, I double-clicked '~install/bin/jconsole', which launched
> "Terminal" and gave me a tty J-session, allowing me to proceed to step
> 2.
>
> 2. Update from pacman. It is easiest to install everything, i.e. load
> jconsole, then:
>
> load 'pacman'
> 'update' jpkg ''
> 'install' jpkg 'all'
>
> [That worked smoothly. I even copy/pasted the input lines.]
>
> 3. Get the gtk libraries from here. Unzip and
>
>    * copy the gtk folder into ~install/gtk
>    * copy jgtk.command into ~bin/jgtk.command, overwriting the existing file
>    * copy jgtk701.app into ~install/jgtk701.app, overwriting the
> existing directory
>
> (Ignore the gtk.ijs script, as that in pacman is already up to date.)
>
> [The download started immediately I clicked the link:
>   http://ubuntuone.com/p/TOP
> Firefox showed a blank page, but zipfile: cb2.zip (42.6 MB) soon
> appeared in Downloads.
> Unzipped to single folder: /cb2 (207.3 MB)
> Contains:
>        gtk                             (Folder, drag into '~install')
>        gtk.ijs                 (ignore)
>        jgtk.command            (Terminal shell script, drag into 
> '~install/bin')
>        jgtk701.app             (Application, drag into '~install')
> ...trashed the rump of /cb2.]
>
> 4. Click jgtk701.app in finder to run J701.
>
> ["Terminal" appeared in Dock, and both its icon and the blue-J jumped
> up and down for a long time. Then the standard message appeared
> warning me that jgtk701.app had been downloaded from the internet and
> did I want to run it? --Replied Yes (of course).
> A "Terminal" session opened in its own window. There's ways of hiding
> it, which I shall look for. Then a parchment-coloured window appeared,
> entitled "Term", a J session implemented in gtk.]
>
> [Subsequently jgtk701.app started immediately.
> What's more, the gray-J now runs too, without complaint, launching a
> "Terminal" session.
>
> I copied my j602-user folder whole-and-entire and renamed it:
> j701-user. However a lot of my utilities don't run any more, or they
> don't run quite as intended. To be expected.
>
> My startup.ijs concludes with:
>   smoutput PROMPTS
> ...intended to show a list of useful expressions in the session. These
> appear in the "Terminal" window, and not in the (gtk) "Term" window,
> which starts off blank, and I have to type: PROMPTS to see them.
>
> The factory-default session font is very poor with non-ascii chars,
> and the box-chars collapse into column 0. See: apal.tiff (attached,
> provided it doesn't get stripped).
>
> However this problem goes away if I choose menu Edit > Session Font,
> and pick APL385 Unicode. This shows boxes correctly, including the
> existing (collapsed) boxes.
>
> The alternative is menu View > Toggle Ascii Box Drawing, which gives
> '+--+' boxes, which don't collapse the box display.
>
> There are two menu items associated with Command+Quit, namely
>   menu: jconsole > Quit jconsole
>   menu: File > Quit
> The first one produces a Logout message in the "Terminal" session.
> The second one makes the "Term" window disappear.
>
> There's a small scrollbar bug in the session / edit windows. If both
> scrollbars are showing, the window resize box is visible okay. But if
> the window is wide enough for the bottom scrollbar to disappear, the
> side scrollbar descends to the bottom of the window, covering the
> resize box.
>
> Suddenly, after exitting and restarting it a few times, gtk has
> spontaneously stopped working and gives the message "GTK init failed:
> libraries not installed or not found, etc."
> Repeated exits and restarts give the same result.
> However gtk has come to life again after I've quitted Firefox and all
> other apps and re-run jgtk701.app. I suspect a resource bottleneck,
> for all my 4GB of installed memory. Mac "Console" shows a lot of
> messages from some very unhappy processes.
>
> I've also tried restarting the Mac. jgtk701 still runs. (Always a good
> thing to check!)
>
> 'wd' gives value error. I suppose it's too much to hope for a 'wd'
> emulator, even a cut-down one for helping to migrate heritage scripts.
> So I'm going to have to rebuild a lot of basic tools which I use to
> help me see what's going on. Such as my locale-browser.
>
> Gtk offers some rich window-building possibilities, and I just wonder
> what J701 will offer in the way of window-building tools.
>
> Experiments continue...
>
> Ian
>
>
>
> On Mon, Dec 13, 2010 at 2:28 PM, chris burke <[email protected]> wrote:
>> Thanks to Norman Drinkwater, the J7 Gtk IDE (with syntax highlighting)
>> is now working properly on Mac OS X 10.6 32-bit Intel. See
>> http://www.jsoftware.com/jwiki/System/Beta/Gtk%20on%20Mac for more
>> info.
>>
>> We need this tested on other Mac OS, and if necessary, appropriate
>> binaries built.
>>
>> Chris
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to