View previous topic :: View next topic |
Author |
Message |
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Mon Feb 26, 2007 7:49 am Post subject: MinWin/GTK on Mac OS X |
|
|
I posted some updated Makefiles for MinWin/GTK at:
http://www.algonet.se/~afb/d/minwin-darwin.zip
To start with, you need MinWin r32 from SVN (with patch)
and Xcode Tools, X11 and GDC (e.g. gdcmac.sourceforge.net).
First you need to install GTK+ using DarwinPorts/MacPorts:
Code: |
sudo port install gtk2
|
And then you build the library and samples using Make:
Code: |
cd minwin
make -f darwin.mak
cd samples
make -f darwin.mak
|
To run a sample, use the shortcut: "open-x11 sample"
(this command will make sure that X11.app is started)
Here is what the "widgets" sample looks like, for instance:
(works just fine, but does look a bit alien to the Mac GUI)
A Carbon port would still be a nice thing to have, though...
(there is also a better GTK+ port to Mac OS X in progress)
PS. I replaced the DMD stuff with the GDC equivalents,
and the GTK lib hacks with "pkg-config gtk+-2.0" instead.
You might want to provide those for Linux as well ?
(for using GDC instead of DMD, to build MinWin/GTK) |
|
Back to top |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Thu Apr 05, 2007 1:24 am Post subject: |
|
|
Here is what it looks like with the experimental Quartz port of GTK+:
That is: still alien, but not requiring any X11 installation anymore.
Makefile change: (no minwin source code changes needed)
Code: |
-# Use the "gtk2" port from DarwinPorts for GTK+
-XLIBS = `/opt/local/bin/pkg-config --libs gtk+-2.0`
+# Use the *experimental* port of GTK+ to Quartz
+XLIBS = `/opt/gtk/bin/pkg-config --libs gtk+-quartz-2.0`
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|