The J701 Gtk IDE is now supported on Mac OS X 10.5 and 10.6 for 32-bit Intel.

Install

1. install J701 from the beta page.

2. Update from pacman. It is easiest to install everything, i.e. load jconsole, then:

load 'pacman'
'update' jpkg ''
'install' jpkg 'all'

3. Close J and reload jconsole. Get the gtk libraries with:

install 'gtkide'

4. Close J and reload jconsole. To start gtkide, enter:

load 'gtkide'

Notes

To Do

1. use a more appropriate GTK theme.

2. fix gtk warnings showing in the terminal.

Compiling GTK on Mac

Following are Norman's original notes re building gtk on OSX for J7 (may be out of date now).

1. Follow build instructions at http://sourceforge.net/apps/trac/gtk-osx/wiki/Build

Add to .jhbuildrc-custom the line

   setup_sdk(target="10.5", sdk_version="10.5", architectures=["i386"])

Alternatively, just change the architectures setting (as was done for this set of files).

2. Run jhbuild to compile gtk

   jhbuild bootstrap
   jhbuild build meta-gtk-osx-bootstrap
   jhbuild build meta-gtk-osx-core
   jhbuild build gtk-quartz-engine
   jhbuild build meta-gtk-osx-themes

3. Build gtksourceview

   jhbuild build gtksourceview

4. Result will be a folder named "gtk" in your home directory. The contained folder "inst" is the gtk directory structure with all of the libraries, shared files, etc.

5. Copy the inst folder to your J7 install folder and rename it to gtk.

6. Need to set the internal names and paths for all executables.

To see what needs to be done, run otool -L on one of the libraries. For example,

   otool -L libgtksourceview-2.0.0.dylib
   libgtksourceview-2.0.0.dylib:
        /Users/drinkwater/gtk/inst/lib/libgtksourceview-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
        /Users/drinkwater/gtk/inst/lib/libgtk-quartz-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.1.0)
        /Users/drinkwater/gtk/inst/lib/libgdk-quartz-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.1.0)
        /Users/drinkwater/gtk/inst/lib/libatk-1.0.0.dylib (compatibility version 3010.0.0, current version 3010.1.0)
        /Users/drinkwater/gtk/inst/lib/libgio-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0)
        /Users/drinkwater/gtk/inst/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 2001.0.0, current version 2001.1.0)
        /Users/drinkwater/gtk/inst/lib/libpangocairo-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.1.0)
        /Users/drinkwater/gtk/inst/lib/libpango-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.1.0)
        /Users/drinkwater/gtk/inst/lib/libcairo.2.dylib (compatibility version 10803.0.0, current version 10803.8.0)
        /Users/drinkwater/gtk/inst/lib/libgobject-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0)
        /Users/drinkwater/gtk/inst/lib/libgmodule-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0)
        /Users/drinkwater/gtk/inst/lib/libgthread-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0)
        /Users/drinkwater/gtk/inst/lib/libglib-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.1.0)
        /Users/drinkwater/gtk/inst/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0)
        /Users/drinkwater/gtk/inst/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.7.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 12.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)

For both the id and dependencies, we need to change

/Users/drinkwater/gtk/inst/lib/

to

@executable_path/../gtk/lib/

Use fixdylib.sh (should be copied to your path) as follows. Change to the appropriate gtk directory (eg., gtk/lib) then run

for i in *.dylib ; do fixdylib.sh /Users/drinkwater/gtk/inst/lib/ $i ; done

You will need to do the same for all of the other executables using fixso.sh. This includes all of the .so and the program files in various places in the gtk file structure.

The paths within etc/gtk-2.0/gdk-pixbuf.loaders (and similar files) also need to be fixed.

System/Beta/Gtk on Mac (last edited 2011-01-16 22:00:27 by ChrisBurke)