Building on win32.



Title: Building on win32.

Hello,

My name's Pat Flaherty.  I'm a programmer in the SF East Bay.

A month or so ago, spotted Gnome and in particular Gnumeric.  Looked

nice and I thought I'd try it out.  Looked around the Web site and there

didn't appear to be a pre-built for win32 (I'm running on W2K).  Maybe I

should try building my own.

Installed cygwin as well as some of the non-default packages that

I found necessary, eg, xfree86 (I assume one needs this for, among others,

tkl).

These are the gnumeric clusters I currently have:

PF C521434-E ~/gnome

$ ls

MinGW-2.0.0-3.exe  glib-1.2.9        gnome-print-0.36  libole2-0.2.4

gal-0.19.3         glib-1.3.15       gnumeric-1.0.9    libxml-1.8.14

gcc.help           glib-1.3.9        gtk+-1.2.7        mingw.lis

gcc.help~          gnome-libs-1.4.2  libglade-0.17     xml-i18n-tools-0.9

PF C521434-E ~/gnome

$

I succeeded in building glib-1.2.9 (using gcc 2.95.3-5) but then progress

broke down at some later point (don't remember exactly where now) before I

discovered a win32 README that told me that even though it was still

in development I needed to use a 1.3+ glib for win32.  Hence the

1.3.9 and 1.3.15 above.

Went to Usenet where Jody replied to me and said I should move to

the mail-list.

Started over.  Then got buried by work for a month ...

... A month later then.  Getting back to this ... Had found previously

that the mantra for each 'cluster' is (from a Cygwin DOS-like window):

./configure

make

make install        ! make install seems to copy files over into c:\cygwin

I can ./configure glib-1.3.9.  But then when I go to make, I get:

$ make

make  all-recursive

make[1]: Entering directory `/cygdrive/c/gnome/glib-1.3.9'

Making all in .

make[2]: Entering directory `/cygdrive/c/gnome/glib-1.3.9'

make[2]: Leaving directory `/cygdrive/c/gnome/glib-1.3.9'

Making all in m4macros

make[2]: Entering directory `/cygdrive/c/gnome/glib-1.3.9/m4macros'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/cygdrive/c/gnome/glib-1.3.9/m4macros'

Making all in glib

make[2]: Entering directory `/cygdrive/c/gnome/glib-1.3.9/glib'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/cygdrive/c/gnome/glib-1.3.9/glib'

Making all in gobject

make[2]: Entering directory `/cygdrive/c/gnome/glib-1.3.9/gobject'

/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall -D_REENTRANT  -o libgobject-1.3

.la -rpath /usr/local/lib -version-info 9:0:0 -export-dynamic -no-undefined gbox

ed.lo gclosure.lo genums.lo gobject.lo gparam.lo gparamspecs.lo gsignal.lo gsour

ceclosure.lo gtype.lo gtypemodule.lo gtypeplugin.lo gvalue.lo gvaluearray.lo gva

luetransform.lo gvaluetypes.lo ../glib/libglib-1.3.la -lintl

*** Warning: This library needs some functionality provided by ../glib/libglib-1

.3.la.

*** I have the capability to make that library automatically link in when

*** you link to this library.  But I can only do this if you have a

*** shared version of the library, which you do not appear to have.

libtool: link: warning: `/lib/libiconv.la' seems to be moved

rm -fr .libs/libgobject-1.3.la .libs/libgobject-1.3.* .libs/libgobject-1.3.*

generating symbol list for `libgobject-1.3.la'

 dlltool --export-all --exclude-symbols DllMain 12,_cygwin_dll_entry 12,_cygwin_

noncygwin_dll_entry 12,DllMainCRTStartup 12,DllEntryPoint 12 --output-def .libs/

cyggobject-1.3-9.dll-def  gboxed.lo gclosure.lo genums.lo gobject.lo gparam.lo g

paramspecs.lo gsignal.lo gsourceclosure.lo gtype.lo gtypemodule.lo gtypeplugin.l

o gvalue.lo gvaluearray.lo gvaluetransform.lo gvaluetypes.lo

 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < .libs/cyggobject-1.3

-9.dll-def > .libs/libgobject-1.3.exp

if test "x`head -1 .libs/libgobject-1.3.exp`" = xEXPORTS; then cp .libs/libgobje

ct-1.3.exp .libs/cyggobject-1.3-9.dll-def; else echo EXPORTS > .libs/cyggobject-

1.3-9.dll-def; _lt_hint=1; cat .libs/libgobject-1.3.exp | while read symbol; do

set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >> .libs/cyggobject-1

.3-9.dll-def;; *) echo " $2 @ $_lt_hint $3 ; " >> .libs/cyggobject-1.3-9.dll-def

;; esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi

 gcc -Wl,--base-file,.libs/cyggobject-1.3-9.dll-base -Wl,--dll -nostartfiles -Wl

,-e,__cygwin_dll_entry 12 -o .libs/cyggobject-1.3-9.dll  gboxed.lo gclosure.lo g

enums.lo gobject.lo gparam.lo gparamspecs.lo gsignal.lo gsourceclosure.lo gtype.

lo gtypemodule.lo gtypeplugin.lo gvalue.lo gvaluearray.lo gvaluetransform.lo gva

luetypes.lo  -L/usr/lib -L/lib .libs/libimp-cygintl-2.a

gboxed.lo: In function `value_copy':

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:69: undefined reference to `g_mall

oc0'

gboxed.lo: In function `value_free':

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:86: undefined reference to `g_free

'

gboxed.lo: In function `gstring_copy':

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:94: undefined reference to `g_stri

ng_new_len'

gboxed.lo: In function `gstring_free':

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:102: undefined reference to `g_str

ing_free'

gboxed.lo: In function `g_boxed_type_init':

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:127: undefined reference to `g_log

'

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:134: undefined reference to `g_log

'

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:141: undefined reference to `g_log

'

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:148: undefined reference to `g_log

'

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:156: undefined reference to `g_log

'

gboxed.lo: In function `boxed_proxy_lcopy_value':

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:240: undefined reference to `g_str

dup_printf'

gboxed.lo: In function `g_boxed_type_register_static':

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:290: undefined reference to `g_log

'

/cygdrive/c/gnome/glib-1.3.9/gobject/gboxed.c:302: undefined reference to `g_bse

arch_array_insert'

Etc. 

I guess the warning about libglib-1.3.la should be the first red flag.  I assume

on win32 that I need a DLL, and there does seem to be a utility dlltool (which gets

used in the above).

Anyway, listen, I could write more (and may continue next time), but let's leave

it at this for the time being and see if anyone has any quick ideas as to where I'm

going off the rails.

Am looking forward to using my bright and glistening win32 version of Gnumeric.

pat



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]