Difference between revisions of "Talk:MacOS/Quartz"

From GnuCash
Jump to: navigation, search
Line 53: Line 53:
 
* After running configure for readline, edit <code>shlib/Makefile</code> and change <code>SHOBJ_LDFLAGS = -dynamic</code> to <code>SHOBJ_LDFLAGS = -dynamic -dynamiclib</code>
 
* After running configure for readline, edit <code>shlib/Makefile</code> and change <code>SHOBJ_LDFLAGS = -dynamic</code> to <code>SHOBJ_LDFLAGS = -dynamic -dynamiclib</code>
 
* As part of item 13, between libgnome and libbonoboui, fetch libgnomecanvas from the same place, configure with the standard configure, make and install.
 
* As part of item 13, between libgnome and libbonoboui, fetch libgnomecanvas from the same place, configure with the standard configure, make and install.
 +
* Step 20, libgoffice, comment out line 23316 of the configure script
 +
<pre>
 +
#      CFLAGS="$CFLAGS -DGTK_DISABLE_DEPRECATED"
 +
</pre>
 +
: then run the standard configure and make as usual.
 
* I haven't got through all these yet, but will update this when I do.
 
* I haven't got through all these yet, but will update this when I do.
  
 
--[[User:Iain benson|Iain benson]] 04:53, 4 November 2007 (EST)
 
--[[User:Iain benson|Iain benson]] 04:53, 4 November 2007 (EST)

Revision as of 19:25, 5 November 2007

Building on Leopard on Intel

Just thought I'd give details of my experience attempting to build gnucash for MacOSX/Quartz on an Intel MacBook Pro running Leopard .

The first thing is that MacOSX/Quartz has moved on to use jhbuild rather than gtk-osx-build, so I'm using the this instead, following the official instructions to bootstrap.

svn co http://svn.gnome.org/svn/jhbuild/trunk jhbuild
(cd jhbuild && make -f Makefile.plain install)
jhbuild bootstrap

Next, to ensure that pango builds the pangoft module, we have to have freetype and fontconfig, and then we can build the core

jhbuild build fontconfig
jhbuild

jhbuild doesn't have an 'extra' list like gtk-osx-build had, but some of the listed extras are already built, and gtk-engines and libart_lgpl can be built with jhbuild.

jhbuild buildone gtk-engines libart_lgpl

Next is a little tricky, libglade uses the "-std=c9x" switch which causes problems with inlining under leopard (http://bugzilla.gnome.org/show_bug.cgi?id=315437), so we have to start the build of libglade, interrupt it with ctrl+c when it starts running configure an then fix a file, so ...

jhbuild buildone libglade

wait for the following to appear

 U   libglade
Checked out revision 538.
*** Configuring libglade *** [1/1]

./autogen.sh --prefix /opt/gtk  --disable-static --disable-gtk-doc --disable-docs --disable-scrollkeeper
/opt/gtk/bin/gnome-autogen.sh

and then press ctrl+c and enter the following

4
sed -e s/std=c9x/std=c89/ configure.in > configure.in.new
mv configure.in.new configure.ing
exit
1

Next is a bit of a problem, we need libgnomecanvas, but the version pulled down by jhbuild required gail which has not been ported to support quartz, it is dependent on either windows or X, so libgnomecanvas will have to built manually with an older version, which we will do later.

So, now we run jhbuild shell and progress on with the 'many other requirements' from the previous page, with the following notes:

  • After running configure for readline, edit shlib/Makefile and change SHOBJ_LDFLAGS = -dynamic to SHOBJ_LDFLAGS = -dynamic -dynamiclib
  • As part of item 13, between libgnome and libbonoboui, fetch libgnomecanvas from the same place, configure with the standard configure, make and install.
  • Step 20, libgoffice, comment out line 23316 of the configure script
#       CFLAGS="$CFLAGS -DGTK_DISABLE_DEPRECATED"
then run the standard configure and make as usual.
  • I haven't got through all these yet, but will update this when I do.

--Iain benson 04:53, 4 November 2007 (EST)