Windows XP, gnucash build problems

Christian Stimming stimming at tuhh.de
Wed Mar 10 06:22:45 EST 2010


Hi Geert,

Zitat von Geert Janssens <janssens-geert at telenet.be>:
> I'm trying to setup a build environment for GnuCash on WinXP, 32bit  
> to try and help to fix some windows specific issues.
> ...
>
> The build stops because of this error
> make[3]: Entering directory `/C/GCDevel/tmp/OpenSP-1.5.2/sx'
> g++ -DHAVE_CONFIG_H -I. -I.. -I../include    -g -O2 -MT
> XmlOutputEventHandler.o -MD -MP -MF .deps/XmlOutputEventHandler.Tpo -c -o
> XmlOutputEventHandler.o XmlOutputEventHandler.cxx
> XmlOutputEventHandler.cxx: In member function `virtual void
> OpenSP::XmlOutputEventHandler::inputOpened(OpenSP::InputSource*)':
> XmlOutputEventHandler.cxx:1206: error: `realpath' was not declared in this
> scope

The subdirectory sx/ of the OpenSP package is for sure irrelevant for  
use. The only relevant part is the library (DLL) in the first  
subdirectory lib/. Hence, the build errors in sx/ and subsequent  
directories can be ignored.

However, the more severe error is that the build in lib/ only builds a  
static library and not a dynamic DLL. This is wrong - we need the DLL,  
which is the reason why install.sh subsequently fails with the "Not  
installed correctly" message.

The relevant error for this problem is at the end of buildling lib/:

>  Warning: Trying to link with static lib archive ../intl/libintl.a.

and additionally the next warning about the "-lpthread" library. I  
think both shouldn't have appeared on the command line here. Did those  
get pulled in from some environment variable? You need to find out  
where this -lpthread comes from, and disable that. I guess the  
libintl.a static library comes from the similar env variable, and it  
must be changed to pull in -lintl from the gnome/lib directory so that  
it eventually links to gnome/bin/intl.dll.

Regards,

Christian




More information about the gnucash-devel mailing list