Difference between revisions of "Windows"

From GnuCash
Jump to: navigation, search
(install issues on winxpsp2 rev.15222)
(install issues on winxpsp2 rev.15222)
Line 190: Line 190:
 
** i pulled r15223 but am not sure whether it would fix these issues.  help?
 
** i pulled r15223 but am not sure whether it would fix these issues.  help?
 
:ive checked the downloaded regexp-spencer-3.8-lib.zip and the regexp.h inside ./include/ matches the one placed at the default location - so my hack to install.sh line 205 is ok.  im guessing it is actually a code-issue with the qif-parse routines... [[User Hfelton|Hfelton]]
 
:ive checked the downloaded regexp-spencer-3.8-lib.zip and the regexp.h inside ./include/ matches the one placed at the default location - so my hack to install.sh line 205 is ok.  im guessing it is actually a code-issue with the qif-parse routines... [[User Hfelton|Hfelton]]
 +
** i give up - i believe that something is still wrong, but i have no idea what it is.  it might be related to [[http://bugzilla.gnome.org/show_bug.cgi?id=382852|this bug]] or it might not.  i tried changing C:\soft\repos\src\import-export\qif-import\qif-parse.scm to see what the issue might be with the regexp.  unfortunately, when i went to the repos-dir and typed make - i ended up with the exact-same-error.  thus, i assume that some dependency was not triggered correctly and am too tired to try and fight any more today.
 +
** in case it helps, here is a long directory listing of c:\soft\downloads which is the default place where install.sh/custom.sh were used/modified: [[User Hfelton|Hfelton]]
 +
<pre>
 +
total 50121
 +
-rw-r--r--    1 hfelton_ Administ  8729714 Apr 16  2004 ActivePerl-5.6.1.638-MSWin32-x86.zip
 +
-rw-r--r--    1 hfelton_ Administ  1452674 Jun  1  2006 GConf-2.14.0.zip
 +
-rw-r--r--    1 hfelton_ Administ    70101 Jun  1  2006 GConf-dev-2.14.0.zip
 +
-rwxr-xr-x    1 hfelton_ Administ  2808061 Dec 11 12:06 MSYS-1.0.10.exe
 +
-rwxr-xr-x    1 hfelton_ Administ  130426 Nov 21 05:46 MinGW-5.1.0.exe
 +
-rw-r--r--    1 hfelton_ Administ  134640 Aug 11 13:35 ORBit2-2.14.2.zip
 +
-rw-r--r--    1 hfelton_ Administ  248108 Aug 11 13:35 ORBit2-dev-2.14.2.zip
 +
-rw-r--r--    1 hfelton_ Administ    2847 Dec 17 03:40 README.txt
 +
-rwxr-xr-x    1 hfelton_ Administ  6854734 Sep 28 15:16 Win32OpenSSL-0_9_8d.exe
 +
-rw-r--r--    1 hfelton_ Administ  310613 Oct 22 17:32 atk-1.12.3.zip
 +
-rw-r--r--    1 hfelton_ Administ    72599 Oct 22 17:32 atk-dev-1.12.3.zip
 +
-rw-r--r--    1 hfelton_ Administ  1019170 Jun 26 12:02 autoconf-2.60.tar.bz2
 +
-rw-r--r--    1 hfelton_ Administ  765505 Jul 10  2005 automake-1.9.6.tar.bz2
 +
-rw-r--r--    1 hfelton_ Administ  6160640 Dec 17 06:20 binutils-2.15.91-20040904-1.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ  180688 Nov  8 14:52 cairo-1.2.6.zip
 +
-rw-r--r--    1 hfelton_ Administ  195367 Nov  8 14:52 cairo-dev-1.2.6.zip
 +
-rwxr-xr-x    1 hfelton_ Administ    12500 Dec 17 03:40 create_cross_mingw.sh
 +
-rwxr-xr-x    1 hfelton_ Administ    7681 Dec 17 03:53 custom.sh
 +
-rwxr-xr-x    1 hfelton_ Administ    7680 Dec 17 03:46 custom.sh.bak
 +
-rw-r--r--    1 hfelton_ Administ        0 Dec 17 17:06 dirlist.txt
 +
-rwxr-xr-x    1 hfelton_ Administ    5306 Dec 17 03:40 dist.sh
 +
-rw-r--r--    1 hfelton_ Administ    59440 Sep  7 19:19 expat-2.0.0.zip
 +
-rw-r--r--    1 hfelton_ Administ    99990 Sep  7 19:20 fontconfig-2.3.2-tml-20060825.zip
 +
-rw-r--r--    1 hfelton_ Administ  531355 Sep  7 19:20 fontconfig-dev-2.3.2-tml-20060825.zip
 +
-rw-r--r--    1 hfelton_ Administ        0 Dec 17 04:49 fork-prob.txt
 +
-rw-r--r--    1 hfelton_ Administ  267194 Sep 10  2005 freetype-2.1.10-lib.zip
 +
-rw-r--r--    1 hfelton_ Administ  249379 Jan  3  2006 freetype-2.1.10.zip
 +
-rw-r--r--    1 hfelton_ Administ    1532 Dec 17 03:40 functions
 +
-rw-r--r--    1 hfelton_ Administ  366835 Oct 22 17:34 gail-1.9.3.zip
 +
-rw-r--r--    1 hfelton_ Administ    6405 Oct 22 17:34 gail-dev-1.9.3.zip
 +
-rw-r--r--    1 hfelton_ Administ  3515620 Dec 17 06:21 gcc-core-3.4.2-20040916-1.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ  4831138 Dec 17 06:23 gcc-g++-3.4.2-20040916-1.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ  2037027 Dec 17 06:23 gcc-g77-3.4.2-20040916-1.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ  2293595 Dec 17 06:24 gcc-objc-3.4.2-20040916-1.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ    19344 Oct  2  2005 gettext-0.14.5.zip
 +
-rw-r--r--    1 hfelton_ Administ  1541571 Oct  2  2005 gettext-dev-0.14.5.zip
 +
-rw-r--r--    1 hfelton_ Administ  840435 Oct  3 12:03 glib-2.12.4.zip
 +
-rw-r--r--    1 hfelton_ Administ  1168950 Oct  3 12:03 glib-dev-2.12.4.zip
 +
-rw-r--r--    1 hfelton_ Administ  899787 Jun  1  2006 gnome-vfs-2.14.2.zip
 +
-rw-r--r--    1 hfelton_ Administ  385494 Jun  1  2006 gnome-vfs-dev-2.14.2.zip
 +
-rw-r--r--    1 hfelton_ Administ    7727 Dec 17 03:40 gnucash.iss.in
 +
-rw-r--r--    1 hfelton_ Administ    5102 Dec 17 03:40 goffice-0.3.0-patch.diff
 +
-rw-r--r--    1 hfelton_ Administ  1625665 Apr 26  2006 goffice-0.3.0.tar.bz2
 +
-rw-r--r--    1 hfelton_ Administ    3177 Dec 17 03:40 goffice-0.3.2-patch.diff
 +
-rw-r--r--    1 hfelton_ Administ  6495526 Oct  5 08:55 gtk+-2.10.6.zip
 +
-rw-r--r--    1 hfelton_ Administ  3797502 Oct  5 08:56 gtk+-dev-2.10.6.zip
 +
-rw-r--r--    1 hfelton_ Administ  1078493 Sep  7 18:56 gtkhtml-3.12.0.zip
 +
-rw-r--r--    1 hfelton_ Administ    69937 Sep  7 18:56 gtkhtml-dev-3.12.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  3114052 May 28  2006 guile-1.6.8.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ  195931 Jan 13  2004 indent-2.2.9-bin.zip
 +
-rwxr-xr-x    1 hfelton_ Administ    27942 Dec 17 09:39 install.sh
 +
-rwxr-xr-x    1 hfelton_ Administ    27886 Dec 17 07:06 install.sh.bak
 +
-rw-r--r--    1 hfelton_ Administ    73410 Jun  1  2006 intltool-0.35.0.zip
 +
-rw-r--r--    1 hfelton_ Administ    42481 Aug 28  2005 libart_lgpl-2.3.17.zip
 +
-rw-r--r--    1 hfelton_ Administ    54859 Aug 28  2005 libart_lgpl-dev-2.3.17.zip
 +
-rw-r--r--    1 hfelton_ Administ  646713 Sep  7 18:43 libbonobo-2.16.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  701807 Sep  7 18:43 libbonobo-dev-2.16.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  484019 Sep  7 18:43 libbonoboui-2.16.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  281061 Sep  7 18:43 libbonoboui-dev-2.16.0.zip
 +
-rw-r--r--    1 hfelton_ Administ    35689 Aug 11 13:52 libglade-2.6.0.zip
 +
-rw-r--r--    1 hfelton_ Administ    66556 Aug 11 13:52 libglade-dev-2.6.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  1368853 Sep 10 10:04 libgnome-2.16.0-1.zip
 +
-rw-r--r--    1 hfelton_ Administ    99995 Sep  7 18:43 libgnome-dev-2.16.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  312493 Mar 21  2006 libgnomecanvas-2.14.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  111606 Mar 21  2006 libgnomecanvas-dev-2.14.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  478685 Oct 17  2005 libgnomeprint-2.12.1.zip
 +
-rw-r--r--    1 hfelton_ Administ  153454 Oct 17  2005 libgnomeprint-dev-2.12.1.zip
 +
-rw-r--r--    1 hfelton_ Administ  387777 Oct 17  2005 libgnomeprintui-2.12.1.zip
 +
-rw-r--r--    1 hfelton_ Administ    19220 Oct 17  2005 libgnomeprintui-dev-2.12.1.zip
 +
-rw-r--r--    1 hfelton_ Administ  1118206 Sep  7 18:43 libgnomeui-2.16.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  415025 Sep  7 18:44 libgnomeui-dev-2.16.0.zip
 +
-rw-r--r--    1 hfelton_ Administ  543791 Nov  6 11:05 libgsf-1.14.3.tar.bz2
 +
-rw-r--r--    1 hfelton_ Administ  698294 Aug 19  2005 libiconv-1.9.1.bin.woe32.zip
 +
-rw-r--r--    1 hfelton_ Administ    65677 Jan  3  2006 libjpeg-6b-4.zip
 +
-rw-r--r--    1 hfelton_ Administ  266839 Nov 22  2005 libpng-1.2.8-bin.zip
 +
-rw-r--r--    1 hfelton_ Administ  2921483 Dec 18  2005 libtool-1.5.22.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ  1662968 Nov  6 15:21 libxml2-2.6.27.win32.zip
 +
-rw-r--r--    1 hfelton_ Administ  426259 Dec 17 06:19 mingw-runtime-3.11.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ    1291 Nov 21 04:51 mingw.ini
 +
-rwxr-xr-x    1 hfelton_ Administ 10299560 Jan  2  2003 msysDTK-1.0.1.exe
 +
-rw-r--r--    1 hfelton_ Administ  235030 Oct  3 11:59 pango-1.14.5.zip
 +
-rw-r--r--    1 hfelton_ Administ  354403 Oct  3 11:59 pango-dev-1.14.5.zip
 +
-rw-r--r--    1 hfelton_ Administ    48650 Apr 12  2005 pexports-0.43.zip
 +
-rw-r--r--    1 hfelton_ Administ    3178 Dec 17 03:41 pi.sh
 +
-rw-r--r--    1 hfelton_ Administ  170990 Jan  3  2006 pkg-config-0.20.zip
 +
-rw-r--r--    1 hfelton_ Administ    20058 Aug 28  2005 popt-1.10.2-tml-20050828.zip
 +
-rw-r--r--    1 hfelton_ Administ    6840 Aug 28  2005 popt-dev-1.10.2-tml-20050828.zip
 +
-rw-r--r--    1 hfelton_ Administ  206857 Mar 11  2005 readline-5.0-bin.zip
 +
-rw-r--r--    1 hfelton_ Administ  208048 Mar 11  2005 readline-5.0-lib.zip
 +
-rw-r--r--    1 hfelton_ Administ    36483 Oct  1  2003 regex-spencer-3.8-bin.zip
 +
-rw-r--r--    1 hfelton_ Administ    23609 Oct  1  2003 regex-spencer-3.8-lib.zip
 +
-rwxr-xr-x    1 hfelton_ Administ      826 Dec 17 03:41 reset.sh
 +
drwxr-xr-x    2 hfelton_ Administ        0 Dec 17 03:54 rev15222
 +
-rw-r--r--    1 hfelton_ Administ  964595 Feb 15  2006 slib3a3.zip
 +
-rwxr-xr-x    1 hfelton_ Administ  3546284 Nov 19 18:10 svn-1.4.2-setup.exe
 +
-rw-r--r--    1 hfelton_ Administ  5706007 Nov 20 15:15 swigwin-1.3.31.zip
 +
-rwxr-xr-x    1 hfelton_ Administ  786072 Feb 14  2005 unzip-5.51-1.exe
 +
-rw-r--r--    1 hfelton_ Administ  1623353 Dec 17 06:19 w32api-3.8.tar.gz
 +
-rw-r--r--    1 hfelton_ Administ  100514 Dec 17 03:33 wget-1.9.1-mingwPORT.tar.bz2
 +
-rw-r--r--    1 hfelton_ Administ      18 Dec 17 09:00 xaa
 +
-rw-r--r--    1 hfelton_ Administ      37 Dec 17 09:00 xab
 +
-rw-r--r--    1 hfelton_ Administ    80898 Nov 22  2005 zlib123-dll.zip
 +
 +
</pre>
  
 
== Todo ==
 
== Todo ==

Revision as of 02:14, 18 December 2006

GnuCash on Microsoft Windows

This page collects various notes about compiling GnuCash on Microsoft Windows. See Windows/Old_Notes for old, solved issues.

Q: Is it possible to compile GnuCash on Windows?

A: Well, compiling is possible, and running as well, but so far not everything runs.

Q: So, where is the binary?

We do not (yet) provide a binary for Windows. The simple reason is already stated above: We know compiling is possible, but the runtime testing has just started, and we expect a lot of issues still need to be resolved. This means the source code will change quite quickly and those early testers are expected to follow those source code changes by getting the code from SVN. On the other hand, providing a binary would mean people wouldn't follow the source code changes quickly enough, making the testing almost useless. (That would change if someone volunteers to provide e.g. a nightly binary build. Volunteers, anyone?) That's why we still do not provide a binary, until we've received enough positive feedback to know the program can actually be distributed.

Instructions for an (almost) automated build

Copied from http://lists.gnucash.org/pipermail/gnucash-devel/2006-September/018588.html

Several people have now compiled and run GnuCash on MS Windows by the mingw32/gcc compiler environment. These instructions explain how everyone else can give it a try as well. We would be happy to hear any further feedback about problems or (hopefully) success in this matter.

We've created a shell script that will download, compile, and install all requirements of GnuCash on Windows and eventually GnuCash itself. It will even make sure to retrieve the most up-to-date gnucash source code directly from SVN. Running this script will probably download ~200MB of data (but all downloaded data will be cached) and will take anything between 0.5 through 5 hours of time. That shell script is located in packaging/win32/install.sh of the gnucash SVN sources.

Before you can execute this shell script (which will do everything else automatically), you have to complete these steps manually:

  • Get the contents of the packaging/win32/ directory of gnucash SVN, most up-to-date from SVN, and copy it to some directory on your Windows machine. Do not use a directory that is one of the parent directories of the path you intend to use for the repository in the next step (c:\soft\repos by default). Possible locations are c:\soft\packaging or c:\soft\downloads.
  • Adapt the directory name variables in the custom.sh file according to your preferences; the defaults would install everything in subdirectories below c:\soft. (Note that due to shell syntax, every windows-style backslash has to be specified as two backslashes.)
  • Execute this downloaded package to install it into the chosen directory, say, C:\soft\msys (which is the $MSYS_DIR variable in custom.sh)
  • Start the MSYS commandline shell by double-clicking the "MSYS" icon on the desktop which should have been created when you installed the MSYS package.
  • Let the automated build begin by typing:
 $INSTALLER_DIR/install.sh   (the complete path to the install.sh)
  • Some of the downloaded packages are installed through graphical installer dialogs where you can choose an installation directory. In those cases, the install.sh script will tell you in the MSYS window the installation directory that you should choose, according to your settings in custom.sh. Please enter only those installation directory in the installer dialog because otherwise the install.sh script cannot find the newly installed software.
  • If there haven't been any errors, you should be able (after several hours of compiling and installing) to start gnucash from the MSYS command line by typing
 c:/soft/gnucash/bin/gnucash

or even without MSYS directly by "Start"-> "Run"-> "c:\soft\gnucash\bin\gnucash.bat"

Please spread the word and report back any problems you encounter. It is probably not too difficult anymore to create a full self-contained package of GnuCash on Windows as well! Some more information is also collected here on this wiki page.

A bit of history

This page used to collect random notes from the time when we manually tried to install each and every part of the requirements. They have been moved to Windows/Old Notes.

Notes

gdb

In addition to Stack Trace, here are a few instructions on how to run gnucash under gdb on Windows:

  • Install "gdb" from mingw.org
  • Modify the installed "gnucash" script to call "exec gdb gnucash-bin.exe" instead of "exec gnucash-bin.exe" at the end
  • Then start gnucash, which will give you the gdb prompt
  • Type "run" at the gdb prompt.
  • Then provoke the crash and type "backtrace" or shorthand "bt" at the gdb prompt to obtain the backtrace, as explained on Stack Trace as well.

You can provide even better stack traces if you tell gdb where in memory dynamically loaded modules got mapped to, because otherwise function calls into those are only written as '??'. See here and here for a way to do this.

install.sh

  • To debug install.sh, change set -e to set -ex at the top of it.
  • Once you have installed Subversion, you might want to checkout and update packaging/win32 as described in SVN.
svn checkout http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32 packaging

Problems, issues, comments

For any problem that occurs now, you should add a new section below.

pkg-config

Error : winxpsp2 - endless loop with "The application failed to initialize properly (0xc0000142)." only solution was to hard-power-down when encountered. problem is in install.sh (rev.15222 lines 541,546) the pkg_config here-file should not use the $(PKG_CONFIG) variable since it creates a self-referential-script. chgd to pkg-config command as listed in rev.12155

You should never need to hard-power-down. First try to interrupt the running process by typing Ctrl-C. If that does not help, use the task manager to kill it or sh.
Indeed, r15215 (r12155 is irrelevant here) introduced a regression, because the pkg-config-msys.sh script must not use $PKG_CONFIG as we export that. Cstim, may you take look at this issue? I suppose we want something like "popd `dirname $0` &>/dev/null; ./pkg-config...". -- andi5
sorry about the wiki confusion - this section (obviously?) applies to the one below that i started-over. in fact, it has a nice html-page self-referential feel to it all now...  ;-) Hfelton

What is needed for providing a binary...

Hi all,

Since that gnucash works more or less nicely on windows, assuming that it might come even better in the future (big thanks to all developers and 'voluntaires') I said to my MS-friend he shall use gnucash. (sql-ledger would have been the other possibility).

Now I have the problem, what do I need to copy onto his machine now? The whole soft folder is 909M. It would be nice when it's possible to delete all not needed (just needs to run on his machine) stuff. I guess that will be about 85% maybe even?

Anyway, before doing quite some 'try and error' work to reduce that, I thought I would ask people (you :) with inside knowledge, maybe providing some hints to me.

Thanks a lot! Calmar

Assuming that you installed to different prefixes within soft, I will name a few directories that contain only build dependencies: active-perl (as long as finance::quote in non-functional), autotools, downloads, (expat?), indent, mingw, msys, pexports, repos, svn, swig, tmp, unzip and wget. There may be more we do not need to run GnuCash, but I think we do not have a better list right now. Maybe we should indeed start discussion some day :) -- andi5
Some stats of mine: c:\soft -> 4.15 GB, dirs above sum up to 2.64 GB. Did not expect that a high percentage, because I have a lot of stuff lying around :) Your mileage will vary.
Hi Andi. I had to include the autotools folder.I have now: gnome, gnucash, goffice, guile, readline, autotools, libgsf and regex. 193MB. Only 50MB zipped (just in case it's here: http://www.calmar.ws/toni.zip ). Can send to the friend now. thanks again! Calmar 16:04, 8 December 2006 (EST)
Yes, I guess you need libltdl-3.dll only. In case you can wait a few days, I will try to make a script that extracts the necessary files. That may at least be an intermediate solution. -- andi5
Hi Andi, it seems there is also the need for libssl32.dll libeay32.dll or so. Probably from the openssl package. Maybe the need to install the openssl package additionally , or maybe just the dll's in such a 'binary package'. I will check out somebit. Cheers Calmar
Additionally (still trying to install that on a friends computer without the long install.sh) I get that error:
procedure: primitive-load-path:
unable to find: ice-9/boot-9.scm
Gnucash actually quits suddenly after that. (That is with the folders (mentioned above) zipped on my computer, extracted on his, and additionally installed Win32OpenSSL-0_9_8d.exe. Cheers Calmar
Easy fix: Move these files to exactly the same position they have been on your computer, i.e. most likely guile@c:\soft\guile. Meanwhile, I am setting up a dist.sh that should produce a GnuCash installer package, including a fix for guile by setting GUILE_LOAD_PATH. -- andi5
Hi Andi, it says it can't find unzip. I added /c/soft/unzip/bin/ to the path. then it says that it can't find: /c/soft/guile/bin/libguile.*dll' my dll's looks like: libguile-12.dll maybe a typo and it could be: libguile*.dll? Cheers and thanks Calmar
Please rebuild guile, i.e. remove c:\soft\guile, c:\soft\tmp\guile-1.6.8, comment out add_step svnup and add_step gnucash, run install.sh. Does that help? -- andi5
cp: cannot stat `/c/soft/guile/bin/libguile.*dll': No such file or directory I still get. I removed the directories you mentioned. (I did not really uncomment add_step svnup and gnucash in custom.sh, but that' shouldn't be the problem, should it?) Cheers Calmar
Restarting at the left. Calmar, what dll files does a run of an up-to-date install.sh create in c:\soft\guile\bin for you? -- andi5
Hi Andi,I did not update the dist.sh, that was maybe the problem. At least it processed further now. But I begun from scratch anyway, and now it hangs after the message: Extracting gtkhtml-dev-3.12.0.zip ... done, while working on gnome it seems. It opens many many (hundreds) sh.exe instances, that's why. it seems at this code here:
if quiet gconftool-2 --version &&
${PKG_CONFIG} --exists gconf-2.0 libgnome-2.0 libgnomeui-2.0 libgnomeprint-2.2 libgnomeprintui-2.2 libgtkhtml-3.8 &&
quiet intltoolize --version
in install.sh (not sure so). Was there a change recently, or is it my computer now suddenly? Cheers Calmar
these are due to the pkg-config self-referential issue listed at pkg-config. Hfelton

DLL install error

I get an error like that:

'libgncmodule.la' 'c:/soft/gnucash/lib/libgncmodule.la'
/bin/install -c .libs/libgncmodule.dll.a
c:/soft/gnucash/lib/libgncmodule.dll.a
base_file=`basename ${file}`
  dlpath=`/bin/sh 2>&1 -c '. .libs/'${base_file}'i;echo $dlname'`
make[5]: *** [install-libLTLIBRARIES] Error 1
make[5]: Leaving directory `/c/soft/repos/src/gnc-module'
make[4]: *** [install-am] Error 2

This seems to be only an installation problem. Fine compiling it seems.

I saw this at "make install" when I stopped and restarted the preceding compiling several times. So to me this looks like an artifact of DLLs that somehow "don't fit" to each other. The solution was always to run "make clean" in the source directory so that all DLLs are being deleted, and then starting the compiling again. --Cstim 05:55, 4 December 2006 (EST)
'make clean' in the repos/ and afterwards a rerun of install.sh really worked! thanks a lot Calmar 08:47, 4 December 2006 (EST)
actually it seems to be necessary here: to make 'make clean' in the repos/src/ dir *and* afterwards 'make clean' in the repos/ directory. Cheer Calmar 08:14, 12 December 2006 (EST)
I don't think so. "make clean" in the repos/ directory calls the same thing in repos/src, but not vice versa. "make clean" in repos/ should clearly be enough. Anyway, this only concerns people who re-use an existing repos/ directory. --Cstim 04:53, 13 December 2006 (EST)
Yeah, that's the logical thing in my mind too. It just regurarly fails with a 'make clean' in repos only. Maybe it's only here anyway for some reason. I'm happy enough I can get it compiled/installed. (I get that error also after removing the repos directory completely and then an install.sh btw (win2000)) Cheers and thx Calmar 07:31, 13 December 2006 (EST)

cannot move on swigwin

Extracting swigwin-1.3.29.zip ... done mv: cannot move `mydir/Examples' to `./Examples'. I copied them manually then Calmar 08:48, 4 December 2006 (EST)

I guess the swig installation is not perfect with regard to updates. I will try to improve that. Meanwhile, removing the c:\soft\swig directory completely should solve the issue. -- andi5

Text reports crash

Some text report crashed instantly, but on some other machines they worked fine. Same for graphical reports. Debugging is ongoing. When you run gnucash in gdb, the crash does reliably not occur the text reports.

What we currently know: GnuCash spits a warning ([1]), but does not crash because of it. It crashes because of something different (in WinAPI?) we cannot detect in gdb. isDebuggerPresent() might be true, but a breakpoint will only be set for fatal errors, so we cannot set a breakpoint. We also cannot start gnucash with --g-fatal-warnings though, as a standard win32 glib build aborts the application after a critical error [2].
The issue is described in this bug and a solution is committed in SVN's install.sh in r15213. Hopefully, these crashers are fixed now :) I think removal of c:\soft\regex, \guile, \tmp\guile-1.6.8 and \gnucash (the previous installation) is necessary. -- andi5
Thanks for the fix in r15213! Indeed I don't see any crash anymore, and even the graphical reports (wohoo!) work correctly. (The warning of [3] is still there, though.) --Cstim 10:50, 15 December 2006 (EST)

GConf/ORBit COMM_FAILURE

On some computers (Windows 2000/SP4), the following error has been observed, but on other computers GConf runs fine. GConf shows plenty of error messages like these: "Failed to save key /apps/gnucash/window/pages/account_tree/name_visible: Adding client to server's list failed, CORBA error: IDL:omg.org/CORBA/COMM_FAILURE:1.0" and also the "Cannot find default values" dialog is shown on each startup, regardless whether the "setup" is done or not. Also, the startup of GnuCash might open dozens of shell windows one after the other, and the startup of GnuCash is incredibly slow.

This is being reported to the ORBit crew as bug#363648. As a quick workaround, you have to install ORBit2-2.13.3 from here instead of 2.14.2, as this seems to fix that problem.

Failed to fork

When starting GNUCash I receive the following message:

gnucash: [E] "Failed to fork child process."

It is not a fatal error (program continues to load). Is this something I can safely ignore? --Scbash 17:10, 3 December 2006 (EST)

This is from the file process.scm and it concerned with the Finance::Quote script for stock price retrieval. Chris wrote: "That's process.scm which is run during price-quote retrieval. Perhaps guile's (primitive-fork) doesn't work on win32." You can ignore this for now. On the other hand, this means Finance::Quote and price retrieval currently doesn't work yet. --Cstim 16:07, 4 December 2006 (EST)

Reading/writing compressed files

The current win32 SVN code doesn't read or write compressed (gzip'd) files. On Linux, gnucash forks gzip as a child process and pipes the file through it. On windows, there isn't an easy replacement for fork() and pipe(). See src/backend/file/io-gncxml-v2.c:1246 ff.

As a consequence, a linux-stored data file which, by default, is stored in compressed form cannot be read by the Windows version at the moment. If you want to use the linux datafile, you need to switch off file compression beforehand. Or 'mv datafile datafile.gz && gunzip datafile.gz #providing a .gz suffix, and finally enzipping it'

install issues on winxpsp2 rev.15222

  • The install.sh script causes an infinite loop while installing gnome.
    • lines 541 and 546 needed to be changed from ${PKG_CONFIG} to pkg-config
    • this changes the here-file from a self-referential-loop to executing a command.
See pkg-config.
  • I had to hack at the c:\soft\repos\configure script to get it to work.
    • not sure whether it was my installation troubles or swig-install itself
    • basically, the swig --swiglib command returned two lines of output which caused all the Makefiles to be created incorrectly. in particular, the command returned the correct c:\soft\swig\Lib dir first and then a weird default-nonexistent dir on the next line.
    • my hack was to change line 24178 and add a '|grep Lib' section to the command.
I am sorry, I forgot to commit my change to fix this. Please update to r15223.
  • Thank you for the prompt responses! i am continuing my reruns of the install.sh script and so i should get fresh copies of things in the repos directory and use them instead. i will have to check whether install.sh line 205 has the rxspencer directory removed from regex_lib variable also. the problem with using the same computer for multiple-tasks is that these compiles basically chew up 95+% cpu.
    • im guessing that there must be some fix in the rxspencer regex directory that is required. the compile finally finished and i saw the dos-screens come up and even (briefly) some tip-of-the-day type of box with the gnucash-splash-screen in the background.
    • then, the bin failed with a back-trace in qif-parse.scm:9:3: unbound variable: make-regexp
    • i pulled r15223 but am not sure whether it would fix these issues. help?
ive checked the downloaded regexp-spencer-3.8-lib.zip and the regexp.h inside ./include/ matches the one placed at the default location - so my hack to install.sh line 205 is ok. im guessing it is actually a code-issue with the qif-parse routines... Hfelton
    • i give up - i believe that something is still wrong, but i have no idea what it is. it might be related to [bug] or it might not. i tried changing C:\soft\repos\src\import-export\qif-import\qif-parse.scm to see what the issue might be with the regexp. unfortunately, when i went to the repos-dir and typed make - i ended up with the exact-same-error. thus, i assume that some dependency was not triggered correctly and am too tired to try and fight any more today.
    • in case it helps, here is a long directory listing of c:\soft\downloads which is the default place where install.sh/custom.sh were used/modified: Hfelton
total 50121
-rw-r--r--    1 hfelton_ Administ  8729714 Apr 16  2004 ActivePerl-5.6.1.638-MSWin32-x86.zip
-rw-r--r--    1 hfelton_ Administ  1452674 Jun  1  2006 GConf-2.14.0.zip
-rw-r--r--    1 hfelton_ Administ    70101 Jun  1  2006 GConf-dev-2.14.0.zip
-rwxr-xr-x    1 hfelton_ Administ  2808061 Dec 11 12:06 MSYS-1.0.10.exe
-rwxr-xr-x    1 hfelton_ Administ   130426 Nov 21 05:46 MinGW-5.1.0.exe
-rw-r--r--    1 hfelton_ Administ   134640 Aug 11 13:35 ORBit2-2.14.2.zip
-rw-r--r--    1 hfelton_ Administ   248108 Aug 11 13:35 ORBit2-dev-2.14.2.zip
-rw-r--r--    1 hfelton_ Administ     2847 Dec 17 03:40 README.txt
-rwxr-xr-x    1 hfelton_ Administ  6854734 Sep 28 15:16 Win32OpenSSL-0_9_8d.exe
-rw-r--r--    1 hfelton_ Administ   310613 Oct 22 17:32 atk-1.12.3.zip
-rw-r--r--    1 hfelton_ Administ    72599 Oct 22 17:32 atk-dev-1.12.3.zip
-rw-r--r--    1 hfelton_ Administ  1019170 Jun 26 12:02 autoconf-2.60.tar.bz2
-rw-r--r--    1 hfelton_ Administ   765505 Jul 10  2005 automake-1.9.6.tar.bz2
-rw-r--r--    1 hfelton_ Administ  6160640 Dec 17 06:20 binutils-2.15.91-20040904-1.tar.gz
-rw-r--r--    1 hfelton_ Administ   180688 Nov  8 14:52 cairo-1.2.6.zip
-rw-r--r--    1 hfelton_ Administ   195367 Nov  8 14:52 cairo-dev-1.2.6.zip
-rwxr-xr-x    1 hfelton_ Administ    12500 Dec 17 03:40 create_cross_mingw.sh
-rwxr-xr-x    1 hfelton_ Administ     7681 Dec 17 03:53 custom.sh
-rwxr-xr-x    1 hfelton_ Administ     7680 Dec 17 03:46 custom.sh.bak
-rw-r--r--    1 hfelton_ Administ        0 Dec 17 17:06 dirlist.txt
-rwxr-xr-x    1 hfelton_ Administ     5306 Dec 17 03:40 dist.sh
-rw-r--r--    1 hfelton_ Administ    59440 Sep  7 19:19 expat-2.0.0.zip
-rw-r--r--    1 hfelton_ Administ    99990 Sep  7 19:20 fontconfig-2.3.2-tml-20060825.zip
-rw-r--r--    1 hfelton_ Administ   531355 Sep  7 19:20 fontconfig-dev-2.3.2-tml-20060825.zip
-rw-r--r--    1 hfelton_ Administ        0 Dec 17 04:49 fork-prob.txt
-rw-r--r--    1 hfelton_ Administ   267194 Sep 10  2005 freetype-2.1.10-lib.zip
-rw-r--r--    1 hfelton_ Administ   249379 Jan  3  2006 freetype-2.1.10.zip
-rw-r--r--    1 hfelton_ Administ     1532 Dec 17 03:40 functions
-rw-r--r--    1 hfelton_ Administ   366835 Oct 22 17:34 gail-1.9.3.zip
-rw-r--r--    1 hfelton_ Administ     6405 Oct 22 17:34 gail-dev-1.9.3.zip
-rw-r--r--    1 hfelton_ Administ  3515620 Dec 17 06:21 gcc-core-3.4.2-20040916-1.tar.gz
-rw-r--r--    1 hfelton_ Administ  4831138 Dec 17 06:23 gcc-g++-3.4.2-20040916-1.tar.gz
-rw-r--r--    1 hfelton_ Administ  2037027 Dec 17 06:23 gcc-g77-3.4.2-20040916-1.tar.gz
-rw-r--r--    1 hfelton_ Administ  2293595 Dec 17 06:24 gcc-objc-3.4.2-20040916-1.tar.gz
-rw-r--r--    1 hfelton_ Administ    19344 Oct  2  2005 gettext-0.14.5.zip
-rw-r--r--    1 hfelton_ Administ  1541571 Oct  2  2005 gettext-dev-0.14.5.zip
-rw-r--r--    1 hfelton_ Administ   840435 Oct  3 12:03 glib-2.12.4.zip
-rw-r--r--    1 hfelton_ Administ  1168950 Oct  3 12:03 glib-dev-2.12.4.zip
-rw-r--r--    1 hfelton_ Administ   899787 Jun  1  2006 gnome-vfs-2.14.2.zip
-rw-r--r--    1 hfelton_ Administ   385494 Jun  1  2006 gnome-vfs-dev-2.14.2.zip
-rw-r--r--    1 hfelton_ Administ     7727 Dec 17 03:40 gnucash.iss.in
-rw-r--r--    1 hfelton_ Administ     5102 Dec 17 03:40 goffice-0.3.0-patch.diff
-rw-r--r--    1 hfelton_ Administ  1625665 Apr 26  2006 goffice-0.3.0.tar.bz2
-rw-r--r--    1 hfelton_ Administ     3177 Dec 17 03:40 goffice-0.3.2-patch.diff
-rw-r--r--    1 hfelton_ Administ  6495526 Oct  5 08:55 gtk+-2.10.6.zip
-rw-r--r--    1 hfelton_ Administ  3797502 Oct  5 08:56 gtk+-dev-2.10.6.zip
-rw-r--r--    1 hfelton_ Administ  1078493 Sep  7 18:56 gtkhtml-3.12.0.zip
-rw-r--r--    1 hfelton_ Administ    69937 Sep  7 18:56 gtkhtml-dev-3.12.0.zip
-rw-r--r--    1 hfelton_ Administ  3114052 May 28  2006 guile-1.6.8.tar.gz
-rw-r--r--    1 hfelton_ Administ   195931 Jan 13  2004 indent-2.2.9-bin.zip
-rwxr-xr-x    1 hfelton_ Administ    27942 Dec 17 09:39 install.sh
-rwxr-xr-x    1 hfelton_ Administ    27886 Dec 17 07:06 install.sh.bak
-rw-r--r--    1 hfelton_ Administ    73410 Jun  1  2006 intltool-0.35.0.zip
-rw-r--r--    1 hfelton_ Administ    42481 Aug 28  2005 libart_lgpl-2.3.17.zip
-rw-r--r--    1 hfelton_ Administ    54859 Aug 28  2005 libart_lgpl-dev-2.3.17.zip
-rw-r--r--    1 hfelton_ Administ   646713 Sep  7 18:43 libbonobo-2.16.0.zip
-rw-r--r--    1 hfelton_ Administ   701807 Sep  7 18:43 libbonobo-dev-2.16.0.zip
-rw-r--r--    1 hfelton_ Administ   484019 Sep  7 18:43 libbonoboui-2.16.0.zip
-rw-r--r--    1 hfelton_ Administ   281061 Sep  7 18:43 libbonoboui-dev-2.16.0.zip
-rw-r--r--    1 hfelton_ Administ    35689 Aug 11 13:52 libglade-2.6.0.zip
-rw-r--r--    1 hfelton_ Administ    66556 Aug 11 13:52 libglade-dev-2.6.0.zip
-rw-r--r--    1 hfelton_ Administ  1368853 Sep 10 10:04 libgnome-2.16.0-1.zip
-rw-r--r--    1 hfelton_ Administ    99995 Sep  7 18:43 libgnome-dev-2.16.0.zip
-rw-r--r--    1 hfelton_ Administ   312493 Mar 21  2006 libgnomecanvas-2.14.0.zip
-rw-r--r--    1 hfelton_ Administ   111606 Mar 21  2006 libgnomecanvas-dev-2.14.0.zip
-rw-r--r--    1 hfelton_ Administ   478685 Oct 17  2005 libgnomeprint-2.12.1.zip
-rw-r--r--    1 hfelton_ Administ   153454 Oct 17  2005 libgnomeprint-dev-2.12.1.zip
-rw-r--r--    1 hfelton_ Administ   387777 Oct 17  2005 libgnomeprintui-2.12.1.zip
-rw-r--r--    1 hfelton_ Administ    19220 Oct 17  2005 libgnomeprintui-dev-2.12.1.zip
-rw-r--r--    1 hfelton_ Administ  1118206 Sep  7 18:43 libgnomeui-2.16.0.zip
-rw-r--r--    1 hfelton_ Administ   415025 Sep  7 18:44 libgnomeui-dev-2.16.0.zip
-rw-r--r--    1 hfelton_ Administ   543791 Nov  6 11:05 libgsf-1.14.3.tar.bz2
-rw-r--r--    1 hfelton_ Administ   698294 Aug 19  2005 libiconv-1.9.1.bin.woe32.zip
-rw-r--r--    1 hfelton_ Administ    65677 Jan  3  2006 libjpeg-6b-4.zip
-rw-r--r--    1 hfelton_ Administ   266839 Nov 22  2005 libpng-1.2.8-bin.zip
-rw-r--r--    1 hfelton_ Administ  2921483 Dec 18  2005 libtool-1.5.22.tar.gz
-rw-r--r--    1 hfelton_ Administ  1662968 Nov  6 15:21 libxml2-2.6.27.win32.zip
-rw-r--r--    1 hfelton_ Administ   426259 Dec 17 06:19 mingw-runtime-3.11.tar.gz
-rw-r--r--    1 hfelton_ Administ     1291 Nov 21 04:51 mingw.ini
-rwxr-xr-x    1 hfelton_ Administ 10299560 Jan  2  2003 msysDTK-1.0.1.exe
-rw-r--r--    1 hfelton_ Administ   235030 Oct  3 11:59 pango-1.14.5.zip
-rw-r--r--    1 hfelton_ Administ   354403 Oct  3 11:59 pango-dev-1.14.5.zip
-rw-r--r--    1 hfelton_ Administ    48650 Apr 12  2005 pexports-0.43.zip
-rw-r--r--    1 hfelton_ Administ     3178 Dec 17 03:41 pi.sh
-rw-r--r--    1 hfelton_ Administ   170990 Jan  3  2006 pkg-config-0.20.zip
-rw-r--r--    1 hfelton_ Administ    20058 Aug 28  2005 popt-1.10.2-tml-20050828.zip
-rw-r--r--    1 hfelton_ Administ     6840 Aug 28  2005 popt-dev-1.10.2-tml-20050828.zip
-rw-r--r--    1 hfelton_ Administ   206857 Mar 11  2005 readline-5.0-bin.zip
-rw-r--r--    1 hfelton_ Administ   208048 Mar 11  2005 readline-5.0-lib.zip
-rw-r--r--    1 hfelton_ Administ    36483 Oct  1  2003 regex-spencer-3.8-bin.zip
-rw-r--r--    1 hfelton_ Administ    23609 Oct  1  2003 regex-spencer-3.8-lib.zip
-rwxr-xr-x    1 hfelton_ Administ      826 Dec 17 03:41 reset.sh
drwxr-xr-x    2 hfelton_ Administ        0 Dec 17 03:54 rev15222
-rw-r--r--    1 hfelton_ Administ   964595 Feb 15  2006 slib3a3.zip
-rwxr-xr-x    1 hfelton_ Administ  3546284 Nov 19 18:10 svn-1.4.2-setup.exe
-rw-r--r--    1 hfelton_ Administ  5706007 Nov 20 15:15 swigwin-1.3.31.zip
-rwxr-xr-x    1 hfelton_ Administ   786072 Feb 14  2005 unzip-5.51-1.exe
-rw-r--r--    1 hfelton_ Administ  1623353 Dec 17 06:19 w32api-3.8.tar.gz
-rw-r--r--    1 hfelton_ Administ   100514 Dec 17 03:33 wget-1.9.1-mingwPORT.tar.bz2
-rw-r--r--    1 hfelton_ Administ       18 Dec 17 09:00 xaa
-rw-r--r--    1 hfelton_ Administ       37 Dec 17 09:00 xab
-rw-r--r--    1 hfelton_ Administ    80898 Nov 22  2005 zlib123-dll.zip

Todo

This section is intended mainly for developers to concisely specfiy what issues are open, assigned or closed (and can be removed then).

[ ] R  Text report crashers (Bug, Bug)
[ ] R  GConf/ORBit2
[ ] R  SWIG installation (minor)
[ ]    Finance::Quote
[ ]    AqBanking
[ ]    Packaging
[ ]    Randomness (Mail)
[ ]    Terminal encoding != Locale encoding
[ ] R  Compressed files
A lot more, fill me