Discussion:
[geda-user] Regarding Windows
Jason White
2014-09-07 13:00:33 UTC
Permalink
Hello, as of the present is it possible to compile both gschem and PCB
to windows. If I recall, linking guile (lisp) was the issue. Has this
been resolved?
--
Jason White
Kai-Martin Knaak
2014-09-09 20:44:13 UTC
Permalink
Post by Jason White
Hello, as of the present is it possible to compile both gschem and PCB
to windows. If I recall, linking guile (lisp) was the issue. Has this
been resolved?
Short answer: No.

Nobody seems to have been able to cross compile guile 2.0 for windows.
While searching forums and mailing lists for hints, I saw contributions
by Eli Zaretski on several occasions. So I contacted him. He has managed
to compile guile natively on windows with a 32-bit MinGW development
environment. He uploaded the result to sourceforge:
http://sourceforge.net/projects/ezwinports/files/guile-2.0.11-2-w32-bin.zip/download

I tried to insert these files into the MXE cross compile environment.
However, compile fails with errors. The error message looks more like c++ and
less like guile. But what do I know. MXE is meant to produce static binaries,
but the download of Eli Zaretski contains *.DLLs . This may be also be a blocker.

---<)kaimartin(>---

PS: Here is the error message I currently get from MXE:
/------------------------
$ make
(...)
make[4]: Entering directory '/usr/local/src/mxe-geda/geda-gaf/libgeda/src'
/bin/bash ../../libtool --silent --tag=CC --mode=compile i686-pc-mingw32.static-gcc -DHAVE_CONFIG_H -I. -I../..
-DLOCALEDIR=\"/usr/local/share/locale\" -I./../include -I./../include/libgeda -I../.. -Wall -
Id:/usr/include/guile/2.0 -Id:/usr/include -I/usr/local/src/mxe-geda/mxe/usr/i686-pc-
mingw32.static/include/glib-2.0 -I/usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/lib/glib-2.0/include -
mms-bitfields -DPCRE_STATIC -I/usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/gdk-pixbuf-2.0 -
I/usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/glib-2.0 -I/usr/local/src/mxe-geda/mxe/usr/i686-
pc-mingw32.static/lib/glib-2.0/include -mms-bitfields -DPCRE_STATIC -I/usr/local/src/mxe-geda/mxe/usr/i686-pc-
mingw32.static/include/libpng16 -g -O2 -MT libgeda_la-g_basic.lo -MD -MP -MF .deps/libgeda_la-g_basic.Tpo -c -o
libgeda_la-g_basic.lo `test -f 'g_basic.c' || echo './'`g_basic.c
In file included from g_basic.c:21:0:
../../missing.h:31:54: error: expected declaration specifiers or '...' before '(' token
# define scm_to_utf8_string(x) scm_to_utf8_stringn ((x), NULL)
^
In file included from /usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/time.h:21:0,
from /usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/glib-2.0/glib/gtypes.h:37,
from /usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/glib-2.0/glib/galloca.h:34,
from /usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/glib-2.0/glib.h:32,
from ./../include/libgeda_priv.h:2,
from g_basic.c:37:
../../missing.h:31:59: error: expected declaration specifiers or '...' before '(' token
# define scm_to_utf8_string(x) scm_to_utf8_stringn ((x), NULL)
^
In file included from g_basic.c:21:0:
../../missing.h:25:58: error: expected declaration specifiers or '...' before '(' token
# define scm_from_utf8_string(x) scm_from_utf8_stringn ((x), -1)
^
../../missing.h:25:63: error: expected declaration specifiers or '...' before '-' token
# define scm_from_utf8_string(x) scm_from_utf8_stringn ((x), -1)
^
Makefile:888: recipe for target 'libgeda_la-g_basic.lo' failed
make[4]: *** [libgeda_la-g_basic.lo] Error 1
make[4]: Leaving directory '/usr/local/src/mxe-geda/geda-gaf/libgeda/src'
Makefile:601: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/usr/local/src/mxe-geda/geda-gaf/libgeda/src'
Makefile:543: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/local/src/mxe-geda/geda-gaf/libgeda'
Makefile:568: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/mxe-geda/geda-gaf'
Makefile:497: recipe for target 'all' failed
make: *** [all] Error 2
\----------------------
--
Kai-Martin Knaak tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik fax: +49-511-762-2211
Welfengarten 1, 30167 Hannover http://www.iqo.uni-hannover.de
GPG key: http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get
Jason White
2014-09-10 01:22:05 UTC
Permalink
So correct me if I'm wrong. Guile depends on glib, as things stand
either glib or guile are pulling in Linux system related stuff on
windows builds. Presumably guile's build configuration is messed up?
Or is MXE/mingw to blame?

Other important things? If I can find some spare time I might try to
build guile and/or its dependencies independent of any program. If
that can be made to work, then differences between the working and the
faulty might be identifiable (That's all a big maybe, depending on how
involved things get)

On Tue, Sep 9, 2014 at 1:44 PM, Kai-Martin Knaak
Post by Kai-Martin Knaak
Post by Jason White
Hello, as of the present is it possible to compile both gschem and PCB
to windows. If I recall, linking guile (lisp) was the issue. Has this
been resolved?
Short answer: No.
Nobody seems to have been able to cross compile guile 2.0 for windows.
While searching forums and mailing lists for hints, I saw contributions
by Eli Zaretski on several occasions. So I contacted him. He has managed
to compile guile natively on windows with a 32-bit MinGW development
http://sourceforge.net/projects/ezwinports/files/guile-2.0.11-2-w32-bin.zip/download
I tried to insert these files into the MXE cross compile environment.
However, compile fails with errors. The error message looks more like c++ and
less like guile. But what do I know. MXE is meant to produce static binaries,
but the download of Eli Zaretski contains *.DLLs . This may be also be a blocker.
---<)kaimartin(>---
/------------------------
$ make
(...)
make[4]: Entering directory '/usr/local/src/mxe-geda/geda-gaf/libgeda/src'
/bin/bash ../../libtool --silent --tag=CC --mode=compile i686-pc-mingw32.static-gcc -DHAVE_CONFIG_H -I. -I../..
-DLOCALEDIR=\"/usr/local/share/locale\" -I./../include -I./../include/libgeda -I../.. -Wall -
Id:/usr/include/guile/2.0 -Id:/usr/include -I/usr/local/src/mxe-geda/mxe/usr/i686-pc-
mingw32.static/include/glib-2.0 -I/usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/lib/glib-2.0/include -
mms-bitfields -DPCRE_STATIC -I/usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/gdk-pixbuf-2.0 -
I/usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/glib-2.0 -I/usr/local/src/mxe-geda/mxe/usr/i686-
pc-mingw32.static/lib/glib-2.0/include -mms-bitfields -DPCRE_STATIC -I/usr/local/src/mxe-geda/mxe/usr/i686-pc-
mingw32.static/include/libpng16 -g -O2 -MT libgeda_la-g_basic.lo -MD -MP -MF .deps/libgeda_la-g_basic.Tpo -c -o
libgeda_la-g_basic.lo `test -f 'g_basic.c' || echo './'`g_basic.c
../../missing.h:31:54: error: expected declaration specifiers or '...' before '(' token
# define scm_to_utf8_string(x) scm_to_utf8_stringn ((x), NULL)
^
In file included from /usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/time.h:21:0,
from /usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/glib-2.0/glib/gtypes.h:37,
from /usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/glib-2.0/glib/galloca.h:34,
from /usr/local/src/mxe-geda/mxe/usr/i686-pc-mingw32.static/include/glib-2.0/glib.h:32,
from ./../include/libgeda_priv.h:2,
../../missing.h:31:59: error: expected declaration specifiers or '...' before '(' token
# define scm_to_utf8_string(x) scm_to_utf8_stringn ((x), NULL)
^
../../missing.h:25:58: error: expected declaration specifiers or '...' before '(' token
# define scm_from_utf8_string(x) scm_from_utf8_stringn ((x), -1)
^
../../missing.h:25:63: error: expected declaration specifiers or '...' before '-' token
# define scm_from_utf8_string(x) scm_from_utf8_stringn ((x), -1)
^
Makefile:888: recipe for target 'libgeda_la-g_basic.lo' failed
make[4]: *** [libgeda_la-g_basic.lo] Error 1
make[4]: Leaving directory '/usr/local/src/mxe-geda/geda-gaf/libgeda/src'
Makefile:601: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/usr/local/src/mxe-geda/geda-gaf/libgeda/src'
Makefile:543: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/local/src/mxe-geda/geda-gaf/libgeda'
Makefile:568: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/mxe-geda/geda-gaf'
Makefile:497: recipe for target 'all' failed
make: *** [all] Error 2
\----------------------
--
Kai-Martin Knaak tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik fax: +49-511-762-2211
Welfengarten 1, 30167 Hannover http://www.iqo.uni-hannover.de
GPG key: http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get
--
Jason White
Continue reading on narkive:
Loading...