Win32 Build error - cannot find swig-runtime.h
Paul J Stautzenberger-Crown
pjoseph at crownpride.com
Mon Feb 26 19:51:14 EST 2007
Greetings,
The error I am getting is
"It looks like you are NOT building from Subversion
but I cannot find swig-runtime.h. Check your PATH
and make sure we can find svnversion in your PATH!
Either that or contact gnucash-devel at gnucash.org because
the tarball you downloaded is broken."
Can you tranlate the above paragraph for me, so that I can at least
begin to know where I want to try re-compiling or looking for a missing
file, etc? Any ideas?
Thanks.
Paul J Crown
These are my gnucash build steps for Win32 binary on February 26, 2007.
I had previously installed gnucash using
gnucash-2.0.99-svn-r15480-setup.exe,
however, I was getting a report error when printing invoices because I
have jobs associated with each invoice. This bug was reported at
http://bugzilla.gnome.org/show_bug.cgi?id=410407 and I saw that it was
fixed in r15640. So, I figured I need to compile my own if I wanted to
print soon.
I read http://wiki.gnucash.org/wiki/Windows#Q:_Where_is_the_binary.3F and
http://lists.gnucash.org/pipermail/gnucash-devel/2006-September/018588.html
and
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/README and
http://wiki.gnucash.org/wiki/Windows/Old_Notes
I'm on a HP Pavilion dv6000 laptop. It has an AMD Turion 64 X2 Mobile
processor running 1.81GHz and 2GB of RAM. The operating system is WinXP
Home 2002 SP2. I used Firefox 2.0.0.1{1} and extension WindizUpdate
0.7{2} to update WinXP from http://windowsupdate.62nds.com/ as of
February 24, 2007.
{1}
http://download.mozilla.org/?product=firefox-2.0.0.2&os=win&lang=en-US or
http://downloads.sourceforge.net/portablefirefox/Firefox_Portable_2.0.0.1_en-us.paf.exe
{2}
http://releases.mozilla.org/pub/mozilla.org/extensions/go_to_windizupdate/go_to_windizupdate-0.7-fx.xpi
On drive P: I create the directories from cmd box (i.e. Start-> Run-> cmd):
P:
mkdir \Develop
mkdir \Develop\gnucash
mkdir \Develop\gnucash\packaging
mkdir \Develop\gnucash\downloads
mkdir \Develop\gnucash\msys
mkdir \Develop\gnucash\mingw
With Firefox, I went to
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/
I downloaded each of the following into P:\Develop\gnucash\packaging. I
assume that the files in this directory may change, but here is what
existed today.
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/README
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/create_cross_mingw.sh
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/custom.sh
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/dist.sh
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/exetype.pl
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/functions
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/gnucash.iss.in
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/goffice-0.3.0-patch.diff
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/goffice-0.3.2-patch.diff
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/install.sh
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/libofx-0.8.3-patch.diff
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/opensp-1.5.2-patch.diff
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/pi.sh
http://svn.gnucash.org/repo/gnucash/trunk/packaging/win32/reset.sh
I renamed README and functions because when I downloaded them they ended
up with .html extensions. So from my cmd box,
cd \Develop\gnucash\packaging
ren README.html README
ren functions.html functions
Next, I opened and edited custom.sh in Wordpad. On the fifth line, I
changed c:\\soft to read p:\\Develop\\gnucash and saved custom.sh back
in P:\Develop\gnucash\packaging
Now, I downloaded MSYS{3}, wget{4}, and Qt{5} and saved each in
P:\Develop\gnucash\downloads
{3} http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download
{4} http://prdownloads.sf.net/mingw/wget-1.9.1-mingwPORT.tar.bz2?download
{5} ftp://ftp.trolltech.com/qt/source/qt-win-opensource-4.2.2-mingw.exe
Next, I execute (by double-click) qt-win-opensource-4.2.2-mingw.exe. It
asks for an install directory and I enter P:\Develop\gnucash\Qt\4.2.2
Then I get a warning telling me that it can't find MingW install and
wants to know what directory to use. I enter P:\Develop\gnucash\mingw
and let the install finish. (I know that Mingw is not there now, but it
will be).
I execute (by double-click) MSYS-1.0.10.exe. It asks me where to
install and I enter P:\Develop\gnucash\msys. At somepoint it shows
which tools are to be installed and the default it shows is just 'gcc'.
I also click on 'g++' and make sure that 'Make' is not checked, then
just let the install finish. After installing, a cmd box asks if
I want to normalize, and I answered N.
At this point, I close the various windows open on my computer and see
the 'M' icon on my desktop. I execute MSYS (by double-clicking this
icon) and get a yellow window with my computer name and then a '$'.
At this $ prompt, I enter
export QTDIR=/p/Develop/gnucash/Qt/4.2.2
export aqbanking_with_qt=yes
/p/Develop/gnucash/packaging/install.sh
The compile takes hours, and I run into a couple of failures. One
failure shows it trying repeatedly to find a website that does not
respond. I discover my router to have had a problem and reboot it. I
end up rebooting my laptop and restarting MSYS and at the prompt enter
again:
export QTDIR=/p/Develop/gnucash/Qt/4.2.2
export aqbanking_with_qt=yes
/p/Develop/gnucash/packaging/install.sh
This time it skips over sections that are already complete. My next
error was due to the firewall on my computer. I use Outpost Firewall
Pro ver. 4.0.971.7030 (584){6} and have it set to ask permission
whenever a new program makes a DNS request or calls another application.
I had been watching and authorizing the dozens of apps that make a
request during this compile, but I was too slow to respond to one of
them and the compile errored with the message "giving up". I just
restarted with:
/p/Develop/gnucash/packaging/install.sh
{6} http://www.agnitum.com/download/OutpostProInstall64.exe or
http://www.agnitum.com/download/OutpostProInstall.exe
And again, it skips over sections that were already complete.
As I approach the end, I run into an error:
############################################################
### svn update in p:\Develop\gnucash\gnucash\repos
############################################################
At revision 15670.
############################################################
### GnuCash
############################################################
Creating ./po/POTFILES.in ...
Creating ./aclocal.m4 ...
Running glib-gettextize --force --copy ...
GnuCash note: Please ignore the output of glib-gettextize below!
Copying file mkinstalldirs
Copying file po/Makefile.in.in
. . . . . . .
. . . . . . .
. . . . . . .
checking for native Win32... yes
checking for Win32 platform in general... yes
checking for the tm_gmtoff member of struct tm... no
checking if scanf supports %lld conversions... no
checking if scanf supports %qd conversions... no
checking if scanf supports %I64d conversions... yes
checking for ../repos/src/swig-runtime.h... no
configure: error:
It looks like you are NOT building from Subversion
but I cannot find swig-runtime.h. Check your PATH
and make sure we can find svnversion in your PATH!
Either that or contact gnucash-devel at gnucash.org because
the tarball you downloaded is broken.
More information about the gnucash-devel
mailing list