build gnucash on lion

John Ralls jralls at ceridwen.us
Sat Jul 23 08:23:27 EDT 2011


On Jul 23, 2011, at 1:13 AM, vincentl wrote:

> Hi John,
> 
> I upgraded to lion not thinking about gnu-cash not working, but the the precompiled binary failed to launch.
> 
> So I am trying to build with jhbuild and ran into a few problems that I thought you might want to know about:
> 
> 1. stpncpy.c fails to compile in gettext-0.18.1.1.  work around is to comment out '# define __stpncpy stpncpy'.
> 
> 2. need to apply patch https://trac.macports.org/ticket/30281 for gtk2 build.
> 
> 3. For libgcrypt-1.4.6, need to add --disable-asm to configure
> 
> 4. For WebKit, I have a case sensitive filesystem so the patch for PluginView.h fails because it tries to apply to pluginview.h.  
> 
> 5. For WekKit, need to follow https://trac.macports.org/ticket/21151
> 
> Now I'm getting the error:
> 
>  CXX    WebCore/plugins/gtk/libWebCore_la-PluginViewGtk.lo
> WebCore/plugins/gtk/PluginViewGtk.cpp:85: error: ‘bool WebCore::PluginView::dispatchNPEvent’ is not a static member of ‘class WebCore::PluginView’
> WebCore/plugins/gtk/PluginViewGtk.cpp:85: error: ‘NPEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp:85: error: ‘event’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp:86: error: expected ‘,’ or ‘;’ before ‘{’ token
> WebCore/plugins/gtk/PluginViewGtk.cpp: In member function ‘virtual void WebCore::PluginView::paint(WebCore::GraphicsContext*, const WebCore::IntRect&)’:
> WebCore/plugins/gtk/PluginViewGtk.cpp:164: error: ‘NPEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp:164: error: expected `;' before ‘npEvent’
> WebCore/plugins/gtk/PluginViewGtk.cpp:171: error: ‘npEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp:171: error: ‘dispatchNPEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp: In member function ‘void WebCore::PluginView::handleKeyboardEvent(WebCore::KeyboardEvent*)’:
> WebCore/plugins/gtk/PluginViewGtk.cpp:177: error: ‘NPEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp:177: error: expected `;' before ‘npEvent’
> WebCore/plugins/gtk/PluginViewGtk.cpp:182: error: ‘npEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp:182: error: ‘dispatchNPEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp: In member function ‘void WebCore::PluginView::handleMouseEvent(WebCore::MouseEvent*)’:
> WebCore/plugins/gtk/PluginViewGtk.cpp:188: error: ‘NPEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp:188: error: expected `;' before ‘npEvent’
> WebCore/plugins/gtk/PluginViewGtk.cpp:197: error: ‘npEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp:197: error: ‘dispatchNPEvent’ was not declared in this scope
> WebCore/plugins/gtk/PluginViewGtk.cpp: At global scope:
> WebCore/plugins/gtk/PluginViewGtk.cpp:436: warning: ‘gboolean WebCore::plug_removed_cb(GtkSocket*, void*)’ defined but not used
> 
> I'm headed to bed, but will try to track this down tomorrow.
> 
> I also had trouble setting MAKE='make -j8'.  It cause any perl Makefile.pl generated makefile to fail.
> 
> Finally, I wasn't sure what to do with my .jhbuild-custom file.  I started with the jhbuildrc-gtk-osx-custom-example on github and added the gnucash entries from the .jhbuild-custom linked from http://wiki.gnucash.org/wiki/MacOSX/Quartz.  It seems to have worked though.

Vince,

Thanks for the information. Some of those problems can be addressed by using the 10.6 SDK instead of building against the frameworks and libraries in /System/Library/Frameworks or the 10.7 SDK.

Aside from the adventure of building Gnucash yourself on a new OS, you'll probably want to get back to using gnucash. There are updated libraries at 
https://bugzilla.gnome.org/show_bug.cgi?id=655059 which you can copy into your Gnucash bundle and it will run on Lion, though window resizing is borked, as noted in the bug. 

Please in future use the Gnucash devel list for this sort of correspondence; I'm not the only one who's interested. 

Regards,
John Ralls




More information about the gnucash-devel mailing list