gEDA-dev: Re: Native windows cross-compile with mingw32

Peter Clifton pcjc2 at cam.ac.uk
Tue May 15 07:32:25 EDT 2007


On Mon, 2007-05-14 at 22:36 -0400, Ales Hvezda wrote:
> Hi Peter,
> 
> [snip]
> >It is possible to make a "convenience library" of libgeda, then (static
> >link that into gschem.exe). Much manual hammering later, and I've got
> >gschem.exe running, and looking shiney on a windows PC :)
> 
> 	I didn't try building a dll on w32 when I did the first mingw
> work.  A libgeda.a works just fine.

Yep - found that eventually, just had to clean and recompile as I'd left
some __declspec(dllimport) lines lying around.

> 	There is a hack/patch that needs to be applied to guile 
> (related to GUILD_LOAD_PATH) otherwise it won't work on various other
> drives.   I don't remember if that is described in the README.win32.

I've not bothered so far, have just been setting GUILE_LOAD_PATH on the
command line. I presumed it was due to me not installing the
cross-compiled guile in the right location.

> >I'm still anticipating major breakage when considering other (critical)
> >utilities, gnetlist for example.

> 	Yeah, those are certainly going to be troublesome.

Hehe... gattrib and gnetlist compiled with very minor fixups. More
disturbingly, they appear to "work"!. I've not got to gsch2pcb yet, but
the gnetlist backend seems to be ok.

(Ok, I did have to hack guile to not error out under wine, as wine
doesn't honour some of the file-permission flags guile expects, and
checks).

I'm not sure if I'll be able to get xgsch2pcb working under windows, I
don't think the DBus windows port - its certainly not as complete as the
various Unix ports.

Peter




More information about the geda-dev mailing list