|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
FOX for Mac packageAs I hadn't been using FOX in quite a while (like years) and especially not without MacPorts, I went back to try... I wanted to build a Universal Binary for Mac OS X 10.4+, and I didn't want to use either MacPorts or Fink to do it. The first problem was installing pkg-config, and using that. Then I had to do some compat fixing for old fontconfig used. But even after that, you will still get linker problems for "graph" due to it using some Multiprocessing (MP) functions: /usr/bin/ld: Undefined symbols: _MPCreateSemaphore _MPDeleteSemaphore _MPSignalSemaphore _MPWaitOnSemaphore Those are in the CoreServices framework, guess something in MacPorts linked with Carbon or something (that hid it) I didn't want to mess around with png/jpeg/tiff libraries, so didn't install those (and thus they weren't included) http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz http://www.fox-toolkit.org/ftp/fox-1.6.36.tar.gz http://afb.users.sourceforge.net/fox-toolkit/fox-1.6.36-tiger- fontconfig.patch http://afb.users.sourceforge.net/fox-toolkit/fox-1.6.36- multiprocessing.patch The fully expanded configure line goes something like this: PATH=/opt/pkgconfig/bin:$PATH PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/ X11R6/lib/pkgconfig:$PKG_CONFIG_PATH \ CC="gcc-4.0" CFLAGS="-O2 -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" \ CXX="g++-4.0" CXXFLAGS="-O2 -g -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -arch ppc -arch i386" \ LDFLAGS="-arch ppc -arch i386" \ ./configure --with-x --with-xft --with-opengl --enable-cups \ --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/ lib --disable-dependency-tracking And here is the resulting package, linking *only* to /usr: http://afb.users.sourceforge.net/fox-toolkit/fox-1.6.36.dmg At 8.5M compressed, it's "only" twice as big as the source which isn't too bad - considering it has two architectures ? prefix=/usr/local exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: FOX Description: FOX is a C++ based Toolkit for developing Graphical User Interfaces Version: 1.6.36 Libs: -L${libdir} -lFOX-1.6 -L/usr/X11R6/lib -lXext -lX11 -L/usr/ X11R6/lib -lXft -lfreetype -lXrender -lfontconfig -lXcursor - lXrandr -ldl -Wl,-framework,CoreServices -lz -lbz2 -lm -lcups - lGLU -lGL Cflags: -I${includedir}/fox-1.6 I might do some more packages for FOX (and for GTK) later, that would be a little more fine-grained than this one... And with all the image formats and language bindings etc, if there would be any use for such a binary packaging ? --anders ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Foxgui-users mailing list Foxgui-users@... https://lists.sourceforge.net/lists/listinfo/foxgui-users |
|
|
Re: FOX for Mac packageOn Oct 22, 2009, at 9:18 AM, Anders F Björklund wrote: > As I hadn't been using FOX in quite a while (like years) > and especially not without MacPorts, I went back to try... > I wanted to build a Universal Binary for Mac OS X 10.4+, > and I didn't want to use either MacPorts or Fink to do it. Heh. I had just finished doing this too (although I guess I left out the PPC build): http://wiki.github.com/lylejohnson/fxruby/building-fxruby-as-a-universal-gem-for-mac-os-x > And here is the resulting package, linking *only* to /usr: > http://afb.users.sourceforge.net/fox-toolkit/fox-1.6.36.dmg Nice! > I might do some more packages for FOX (and for GTK) later, > that would be a little more fine-grained than this one... > And with all the image formats and language bindings etc, > if there would be any use for such a binary packaging? I'm doing basically the same thing in the process of building the binary gem for FXRuby, but I hadn't planned to provide a standalone FOX package, so I think this provides a useful service to people who are just learning FOX (without FXRuby). ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Foxgui-users mailing list Foxgui-users@... https://lists.sourceforge.net/lists/listinfo/foxgui-users |
|
|
Re: FOX for Mac packageLyle Johnson wrote:
>> As I hadn't been using FOX in quite a while (like years) >> and especially not without MacPorts, I went back to try... >> I wanted to build a Universal Binary for Mac OS X 10.4+, >> and I didn't want to use either MacPorts or Fink to do it. > > Heh. I had just finished doing this too (although I guess I left out > the PPC build): > > http://wiki.github.com/lylejohnson/fxruby/building-fxruby-as-a- > universal-gem-for-mac-os-x Clearly our "Universal" universes vary a bit here. :-) I'm still using the legacy definition of the term, with ppc and i386 for Mac OS X 10.4 - and you are using the latest definition with i386 and x86_64 for Mac OS X 10.6. (which I don't have, so would appreciate testing there) Obviously both could use a real packaging / build system. >> I might do some more packages for FOX (and for GTK) later, >> that would be a little more fine-grained than this one... >> And with all the image formats and language bindings etc, >> if there would be any use for such a binary packaging? > > I'm doing basically the same thing in the process of building the > binary gem for FXRuby, but I hadn't planned to provide a standalone > FOX package, so I think this provides a useful service to people who > are just learning FOX (without FXRuby). I'm mostly using it for the Xfe family of desktop helpers myself (see http://roland65.free.fr/xfe/) these days... And with the Quartz port of GTK, that seemed like better. Maybe I should pick up a copy of your FXRuby book ? ;-) --anders ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Foxgui-users mailing list Foxgui-users@... https://lists.sourceforge.net/lists/listinfo/foxgui-users |
|
|
Re: FOX for Mac packageOn Oct 22, 2009, at 10:31 AM, Anders F Björklund wrote: > Clearly our "Universal" universes vary a bit here. :-) Yeah. Snow Leopard is Intel-only, but the concept of universal switches to binaries that support both 32-bit and 64-bit processors. I think I can actually target PPC too, though, even though I have no way to test that. > Obviously both could use a real packaging / build system. Sure. > I'm mostly using it for the Xfe family of desktop helpers > myself (see http://roland65.free.fr/xfe/) these days... Right. > And with the Quartz port of GTK, that seemed like better. > Maybe I should pick up a copy of your FXRuby book ? ;-) Whatever else you do, you should *absolutely* buy a copy of the book. ;) --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Foxgui-users mailing list Foxgui-users@... https://lists.sourceforge.net/lists/listinfo/foxgui-users |
|
|
Re: FOX for Mac packageLyle Johnson wrote:
> Yeah. Snow Leopard is Intel-only, but the concept of universal > switches to binaries that support both 32-bit and 64-bit processors. I > think I can actually target PPC too, though, even though I have no way > to test that. I think you can still use the 10.4u SDK and -arch ppc, yes. You could test by running with "arch -ppc" prefix in Leopard. (Rather horrible case of overloading an old known command...) Of course that would assume installing / running with Rosetta. I tested mine with a real PowerPC, once package was finished. >> Obviously both could use a real packaging / build system. > > Sure. I didn't want to use MacPorts, because then it would need to build an entire X server plus all the other dependencies... Using something crude like build scripts could have worked, or maybe making some real RPM packages if feeling ambitious. Probably including Ruby as well, seems to be missing a dmg ? --anders ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Foxgui-users mailing list Foxgui-users@... https://lists.sourceforge.net/lists/listinfo/foxgui-users |
| Free embeddable forum powered by Nabble | Forum Help |