On Thu, 12 Mar 2009 andreas.rosenblad(a)ltv.se wrote:
My progress on building gretl on windows so far...
First of all, thanks for your patience in working on this! I think
we're making progress, though there are still a few residual
problems.
After downloading and installing MinGW and MSYS I downloaded and
installed
the all-in-on bundle of GTK+ for win32 on
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.14/gtk+-bundle_2.14....
I then installed all files from
http://ricardo.ecn.wfu.edu/pub/gretl/winbuild/ following the instructions
there.
When typing "make" in c:\gretl\win32 all goes well until I get the
following error message:
../plugin/audio.c:44:19: sapi.h No such file or directory
I cannot find sapi.h in c:\ming\include and it was not included in the
mingw-extra.zip file on
http://ricardo.ecn.wfu.edu/pub/gretl/winbuild/, but
I found that it was included in an older file mingw_lib_inc.zip that
previously was available on that site.
Thanks. I've now updated mingw-extra.zip to include sapi.h.
I copied the sapi.h file and added it to c:\ming\include. Typing
"make"
started the process again, until I get the error message below. How do I
solve this?
gcc -Wall -O2 -mms-bitfields -DWIN32 -mwindows -o gretlw32.exe about.o
calculator.o callbacks.o cmdstack.o console.o database.o datafiles.o
datawiz.o dialogs.o dlgutils.o filelists.o fileselect.o filters.o fncall.o
fnsave.o gpt_control.o gpt_dialog.o graph_page.o gretl.o gretlwin32.o
guiprint.o gui_recode.o gui_utils.o helpfiles.o lagpref.o library.o
menustate.o model_table.o objectsave.o obsbutton.o selector.o series_view.o
session.o settings.o ssheet.o textbuf.o textutil.o toolbar.o treeutils.o
update.o winstack.o gretlres.coff -lm -L./import-libs -lgretl -lintl
-ladvapi32 -lwsock32 -lole32 -Lc:/mingw/lib -lgtk-win32-2.0 -lgdk-win32-2.0
-latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
-lintl -lgtksourceview -lxml2 -L./import-libs -lzlib1 -lmingwex -s
c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
gretlres.coff: illegal symbol index 8224 in relocs
I'll work on that today. Here's the story: gretlres.coff is
supposed to be a replacement for the old file gretlw32_res.o.
This is a Windows "resources" file, containing the program icons,
and it gets built using the program "windres".
I noticed yesterday that when I built gretl on Windows everything
was fine apart from the colored icons: these were somehow
scrambled. However, they come out OK if I cross-build the
resources file on Linux. So gretlres.coff is a cross-built file
which I added to CVS. I gave it the suffix ".coff" rather than
".o" so it wouldn't get deleted by "make clean" (and it is a COFF
format file).
Now I tested this on Windows up to a point: I used the cross-built
object file successfully on Windows, but that was before deciding
to rename it as gretlres.coff. So I need to do some more testing
today. The best solution would be to get the icons to come out
properly on Windows, and to remove the object file from CVS.
Allin.