[gnucash-de] Heftige Probleme mit install.sh unter Win XP

Christoph Ernst christoph.ernst72 at googlemail.com
Sa Jan 19 10:55:51 EST 2008


Hallo,

ich versuche seit über einer Woche vergeblich gnucash unter Windows XP zu
bauen, weil ich einige nervige Fehler patchen möchte.
Aber ich komme nur mit einigen Eingriffen überhaupt zu einer
gnucash-bin.exeund die lässt sich dann leider nicht starten.


1.) configure schlägt bei goffice fehl: "The installed PCRE library is not
configured for UTF-8 support."

Zunächst habe ich die entsprechenden Zeilen im configure-Skript
auskommentiert und kam über diesen Schritt hinaus.
Bei einem späteren Versuch, habe ich es mit einer neueren pcre-Version
probiert:
Ergänze custom.sh um:
PCRE_BIN_URL="$SF_MIRROR/gnuwin32/pcre-7.0-bin.zip"
PCRE_LIB_URL="$SF_MIRROR/gnuwin32/pcre-7.0-lib.zip"

Notfalls könnte man sich auch die pcre-6.4-1 Sourcen holen und mit
--enable-utf8 bauen. Das habe ich jetzt noch nicht probiert.
Kommt jemand von euch denn über diesen Schritt hinaus ohne etwas an den
Installationskripten zu ändern?


2.) install.sh setzt den GUILE_LOAD_PATH nicht und bricht nach dem bauen von
guile ab:

Ich habe dazu die folgende Zeile am Anfang der Funktion inst_guile in
install.sh ergänzt:
    add_to_env $_GUILE_UDIR/share/guile/1.6 GUILE_LOAD_PATH
Auch im gnucash Start-Skript muss der GUILE_LOAD_PATH angehängt werden,
sonst bricht der Start von gnucash noch früher ab. Die meisten von euch
werden vermutlich den Loadpath in einer globalen Umgebungsvariable setzen ->
müsste in die Installationsanleitung rein.


3.) Das Kompilieren von gnucash-bin.exe schlägt fehl:
mkdir .libs
gcc -I../.. -Ic:/soft/gnome/include/glib-2.0
-Ic:/soft/gnome/lib/glib-2.0/include
-mms-bitfields -DORBIT2=1
-Ic:/soft/gnome/include/libgnomeui-2.0-Ic:/soft/gnome/include/libgnome-
2.0 -Ic:/soft/gnome/include/libgnomecanvas-2.0 -Ic:/soft/gnome/include/gtk-
2.0 -Ic:/soft/gnome/include/libart-2.0 -Ic:/soft/gnome/include/gconf/2
-Ic:/soft/gnome/include/libbonoboui-2.0 -Ic:/soft/gnome/include/gnome-
vfs-2.0 -Ic:/soft/gnome/lib/gnome-vfs-2.0/include
-Ic:/soft/gnome/include/glib-2.0 -Ic:/soft/gnome/lib/glib-2.0/include
-Ic:/soft/gnome/include/libbonobo-2.0
-Ic:/soft/gnome/include/orbit-2.0-Ic:/soft/gnome/include/bonobo-
activation-2.0 -Ic:/soft/gnome/lib/gtk-2.0/include
-Ic:/soft/gnome/include/atk-1.0 -Ic:/soft/gnome/include/cairo
-Ic:/soft/gnome/include/pango-1.0 -mms-bitfields
-Ic:/soft/gnome/include/gtk-2.0 -Ic:/soft/gnome/lib/gtk-2.0/include
-Ic:/soft/gnome/include/atk-1.0 -Ic:/soft/gnome/include/cairo
-Ic:/soft/gnome/include/pango-1.0
-Ic:/soft/gnome/include/glib-2.0-Ic:/soft/gnome/lib/glib-
2.0/include -I/c/soft/guile/include -I../../lib/libqof/qof
-I../../../repos/lib/libqof/qof
-DPKGSYSCONFDIR=\"/c/soft/gnucash/inst/etc/gnucash\"
-DPKGDATADIR=\"/c/soft/gnucash/inst/share/gnucash\"
-DGNC_HELPDIR=\"/c/soft/gnucash/inst/share\" -I../../../repos/src
-I../../src -I../../../repos/src/core-utils -I../../../repos/src/app-utils
-I../../../repos/src/gnome-utils -I../../../repos/src/engine
-I../../../repos/src/gnome -I../../src/gnome-utils
-I../../../repos/src/gnc-module -Werror -Wdeclaration-after-statement -g -g
-O0 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused
-mms-bitfields -g -mwindows -o gnucash-bin.exe gnucash-bin.o
-L/c/soft/autotools/lib -L/c/soft/regex/lib -L/c/soft/gnome/lib
-L/c/soft/guile/lib -L/c/soft/gwenhywfar/lib -L/c/soft/hh/lib
-L/c/soft/readline/lib -Lc:/soft/gnome/lib
../../lib/libqof/qof/.libs/libgnc-qof.dll.a../../src/engine/.libs/libgncmod-
engine.dll.a ../../src/gnome/.libs/libgnc-gnome.dll.a/c/soft\gnucash\build/src/register/ledger-core/.libs/libgncmod-
ledger-core.dll.a -Lc:/soft/goffice/lib -Lc:/soft/libgsf/lib
-L/c/soft/pcre/lib
/c/soft\gnucash\build/src/register/register-gnome/.libs/libgncmod-
register-gnome.dll.a/c/soft\gnucash\build/src/register/register-core/.libs/libgncmod-
register-core.dll.a/c/soft\gnucash\build/src/report/report-gnome/.libs/libgncmod-
report-gnome.dll.a/c/soft\gnucash\build/src/report/report-system/.libs/libgncmod-
report-system.dll.a /c/soft\gnucash\build/src/gnome-search/.libs/libgncmod-
gnome-search.dll.a /c/soft\gnucash\build/src/gnome-utils/.libs/libgncmod-
gnome-utils.dll.a
../../src/gnome-utils/.libs/libgncmod-gnome-utils.dll.a/c/soft\gnucash\build/src/backend/file/.libs/libgnc-
backend-file-utils.dll.a/c/soft\gnucash\build/src/app-utils/.libs/libgncmod-
app-utils.dll.a -lgtkhtml-3.8
/c/soft/goffice/lib/libgoffice-0.dll.a-lgnomeui-2 -lbonoboui-2
-lgnome-2 /c/soft/libgsf/lib/libgsf-
gnome-1.dll.a -lgnomevfs-2 -lbonobo-2 -lbonobo-activation -luuid -lpcre
/c/soft/libgsf/lib/libgsf-1.dll.a -lglade-2.0 -lgnomeprintui-2-2
-lgnomeprint-2-2 -lgnomecanvas-2 -lxml2 -lz -lart_lgpl_2
../../src/app-utils/.libs/libgncmod-app-utils.dll.a/c/soft\gnucash\build/src/engine/.libs/libgncmod-
engine.dll.a /c/soft\gnucash\build/src/gnc-module/.libs/libgnc-module.dll.a/c/soft\gnucash\build/src/calculation/.libs/libgncmod-
calculation.dll.a /c/soft\gnucash\build/lib/libqof/qof/.libs/libgnc-
qof.dll.a -lhtmlhelp
../../src/core-utils/.libs/libgnc-core-utils.dll.a../../src/gnc-module/.libs/libgnc-
module.dll.a /c/soft\gnucash\build/src/core-utils/.libs/libgnc-
core-utils.dll.a -lgconf-2 -lORBit-2 -lgtk-win32-2.0 -lgdk-win32-2.0 -
latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpangocairo-1.0
-lpango-1.0-lcairo /c/soft/guile/lib/libguile.dll.a
/c/soft/guile/lib/libguile-
ltdl.dll.a -lwsock32 -lregex -lgthread-2.0 -lgobject-2.0 -lgmodule-2.0 -
lglib-2.0 -lintl -liconv -lpopt -L/c/soft\gnucash\build/lib/libqof/qof/.libs
-L/c/soft\gnucash\build/src/engine/.libs
-L/c/soft\gnucash\build/src/gnome/.libs
-L/c/soft\gnucash\build/src/register/ledger-core/.libs
-L/c/soft\gnucash\build/src/register/register-gnome/.libs
-L/c/soft\gnucash\build/src/register/register-core/.libs
-L/c/soft\gnucash\build/src/report/report-gnome/.libs
-L/c/soft\gnucash\build/src/report/report-system/.libs
-L/c/soft\gnucash\build/src/gnome-search/.libs
-L/c/soft\gnucash\build/src/gnome-utils/.libs
-L/c/soft\gnucash\build/src/backend/file/.libs
-L/c/soft\gnucash\build/src/app-utils/.libs -L/c/soft/goffice/lib
-L/c/soft/libgsf/lib -L/c/soft\gnucash\build/src/gnc-module/.libs
-L/c/soft\gnucash\build/src/calculation/.libs
-L/c/soft\gnucash\build/src/core-utils/.libs -L/c/soft/guile/lib
-L/c/soft/gnucash/inst/lib -L/c/soft/gnucash/inst/lib/gnucash
-L/c/soft/goffice/lib -L/c/soft/libgsf/lib -L/c/soft/guile/lib
gcc.exe: c:/softgnucashbuild/src/register/ledger-core/.libs/libgncmod-
ledger-core.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/src/register/register-gnome/.libs/libgncmod-
register-gnome.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/src/register/register-core/.libs/libgncmod-
register-core.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/src/report/report-gnome/.libs/libgncmod-
report-gnome.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/src/report/report-system/.libs/libgncmod-
report-system.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/src/gnome-search/.libs/libgncmod-
gnome-search.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/src/gnome-utils/.libs/libgncmod-
gnome-utils.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/src/backend/file/.libs/libgnc-
backend-file-utils.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/src/app-utils/.libs/libgncmod-app-utils.dll.a:
No such file or directory
gcc.exe: c:/softgnucashbuild/src/engine/.libs/libgncmod-engine.dll.a: No
such file or directory
gcc.exe: c:/softgnucashbuild/src/gnc-module/.libs/libgnc-module.dll.a: No
such file or directory
gcc.exe: c:/softgnucashbuild/src/calculation/.libs/libgncmod-
calculation.dll.a: No such file or directory
gcc.exe: c:/softgnucashbuild/lib/libqof/qof/.libs/libgnc-qof.dll.a: No such
file or directory
gcc.exe: c:/softgnucashbuild/src/core-utils/.libs/libgnc-core-utils.dll.a:
No such file or directory
make[4]: *** [gnucash-bin.exe] Error 1
make[4]: Leaving directory `/c/soft/gnucash/build/src/bin'
make[3]: *** [all-recursive] Error 1

Die Behebung erscheint ja einfach: In defaults.sh für GNUCASH_DIR und
BUILD_DIR die "\\" in "/"  änderen and make clean im Build-Verzeichnis.
Aber komisch kommt mir das schon vor.
(Ich habe übrigens definitiv kein cygwin im Pfad und nutze den gcc von
mingw.)

4.) Das letzte Problem könnte das entscheidende sein:
Der letzte Schritt von inst_gnucash, der Aufruf von gconftool-2 schlägt
direkt fehl.
Es konnte nicht auf die Konfigurationsquelle(n) zugegriffen werden:
Fehlgeschlagen: Fehlgeschlagen: Das Verzeichnis
»/c/soft/gnucash/inst/etc/gconf/gconf.xml.defaults« konnte nicht angelegt
werden: No such file or directory
Diesen Schritt habe ich bisher immer auskommentiert und versucht, mir
Dateien aus dem 2.2.3-Binary nach /etc zu kopieren. Aber ich glaube, das hat
keinen Nährwert.
Bei diesem Schritt benötige ich definitiv Hilfe.

5.) Letztlich bekomme ich zwar eine gnucash exe, aber die lässt sich nicht
starten.
Laut gdb bricht load_gnucash_modules() in gnucash-bin.c ab, weil
gnc_engine_is_initialized() false liefert. Und in der Tat wird die
gnc_engine auch nie zuvor aufgerufen.

Ich habe es nun wirklich mehrmals versucht und mich (außer beim ersten
Versuch) genau an die Anleitung gehalten und zwischendurch komplett neu
aufgesetzt, aber ich kriege es nicht hin!
Kann jemand von euch zur Zeit mit install.sh unter Windows bauen?


Schöne Grüße
  Christoph
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://lists.gnucash.org/pipermail/gnucash-de/attachments/20080119/1bb5f511/attachment.html