delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/04/23/10:05:51

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: geda-user AT delorie DOT com
From: Kai-Martin Knaak <knaak AT iqo DOT uni-hannover DOT de>
Subject: Re: [geda-user] geda-gaf on Windows - help needed
Date: Wed, 23 Apr 2014 16:04:39 +0200
Organization: Institut =?ISO-8859-1?Q?f=FCr?= Quantenoptik
Lines: 265
Message-ID: <lj8h9o$mr5$1@ger.gmane.org>
References: <lilgfh$r6n$1 AT ger DOT gmane DOT org> <20140417030350 DOT 2177 DOT qmail AT stuge DOT se> <lipepf$hap$1 AT ger DOT gmane DOT org> <CAOFvGD5nG7DAavVOuR2N3ZM-R9NHA0-E8ik5X_six4cpcwab7A AT mail DOT gmail DOT com> <lipj55$hf1$1 AT ger DOT gmane DOT org> <CAOFvGD7vOBoEi_55ufnqegLiASxZjjGZUZjo3pJKArFwxxPJng AT mail DOT gmail DOT com> <liror6$3gp$1 AT ger DOT gmane DOT org> <lj1rr2$h48$1 AT ger DOT gmane DOT org> <87a9bftqef DOT fsf AT hotmail DOT com> <lj2hb7$obn$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
X-Complaints-To: usenet AT ger DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: bibo.iqo.uni-hannover.de
User-Agent: KNode/4.11.5
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s3NE53Cn018281
Reply-To: geda-user AT delorie DOT com

Kai-Martin Knaak wrote:

> Enoch wrote:
> 
>> Check https://github.com/mxe/mxe/blob/master/src/gtk2-test.c
>> MXE's GTK2 cross compile works :-)

> I see that you linked to the bleeding edge development version. So I
> will try that.

Here is my current mileage (from good to bad):

* pcb ******************************************************
configure complained about gd-library not supporting gif, png or jpeg: 

/----------------------------
$ configure --host=i686-pc-mingw32.static --disable-gl
(...)
checking for gd.h... yes
checking for gdImageGif... no
configure: error: Your gd installation does not appear to include gif support.
You may need to update your installation of gd or disable
gif export with --disable-gif
\-------------------------------

So I used these options to not configure pixel format output:
 configure --host=i686-pc-mingw32.static \
           --disable-gl  \
           --disable-gif \
           --disable-jpeg \
           --disable-png  \
           --with-exporters=ps gerber \ 

The resulting binary works in wine like is to be expected with these options. Unlike with the minipack build the mode buttons do 
show icons like they should. The binary is a decent amount slower than the openGL enabled version natively running under linux on 
the same machine.


* geda-gaf v1.9.1 ************************************************
I did a generic configure:
$ configure --host=i686-pc-mingw32.static
The build went straight through without errors. 

But the binary fails with wine. It reports an "Unhandled page fault":
/-------------------------------------
$ wine ./gschem.exe 
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
wine: Unhandled page fault on read access to 0x0000000c at address 0x62d487 (thread 0025), starting debugger...
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Unhandled exception: page fault on read access to 0x0000000c in 32-bit code (0x0062d487).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:0062d487 ESP:032dfaa0 EBP:00158000 EFLAGS:00010297(  R- --  I S -A-P-C)
 EAX:00000000 EBX:00000001 ECX:032dfae0 EDX:00000001
 ESI:0000001c EDI:032dfab0
Stack dump:
0x032dfaa0:  0062af20 00000000 00000000 00153040
0x032dfab0:  0015901c 00401280 032dfbf8 0065f5a0
0x032dfac0:  00000000 00000050 032dfbf8 00158000
0x032dfad0:  0015901c 00401280 032dfbf8 0062d5a2
0x032dfae0:  00153040 00000000 00153040 0062a89e
0x032dfaf0:  00153040 00000000 00000000 00000000
Backtrace:
=>0 0x0062d487 in gschem (+0x22d487) (0x00158000)
  1 0x0062d5a2 in gschem (+0x22d5a1) (0x032dfbf8)
  2 0x006538d9 in gschem (+0x2538d8) (0x032dfbf8)
  3 0x0063dc60 in gschem (+0x23dc5f) (0x032dfbf8)
  4 0x00460202 in gschem (+0x60201) (0x032dfbf8)
  5 0x00460227 in gschem (+0x60226) (0x032dfbf8)
  6 0x00406e31 in gschem (+0x6e30) (0x032dfbf8)
  7 0x008c3af5 in gschem (+0x4c3af4) (0x032dfbf8)
  8 0x008e9dc5 in gschem (+0x4e9dc4) (0x032dfc28)
  9 0x008c8cec in gschem (+0x4c8ceb) (0x032dfcb8)
  10 0x008e9d86 in gschem (+0x4e9d85) (0x032dfd08)
  11 0x008e9e33 in gschem (+0x4e9e32) (0x032dfd48)
  12 0x008b9a2b in gschem (+0x4b9a2a) (0x032dfd78)
  13 0x008b99fc in gschem (+0x4b99fb) (0x032dfd98)
  14 0x008c3a83 in gschem (+0x4c3a82) (0x032dfdd8)
  15 0x00b6a9dc in gschem (+0x76a9db) (0x032dfdf8)
  16 0x004010fd in gschem (+0x10fc) (0x032dfe78)
  17 0x7ffdf000 (0x032dfe78)
  18 0x7b85f8a3 in kernel32 (+0x4f8a2) (0x032dfeb8)
  19 0x7bc775f0 (0x032dfed8)
  20 0x7bc7a58d (0x032dffa8)
  21 0x7bc775ce (0x032dffc8)
  22 0x7bc4c63e (0x032dffe8)
0x0062d487: movl	0xc(%eax),%edx
Modules:
Module	Address			Debug info	Name (25 modules)
PE	  400000- 30dc000	Dwarf           gschem
PE	7b810000-7b9ad000	Export          kernel32
PE	7bc10000-7bc14000	Deferred        ntdll
PE	7dd40000-7dd44000	Deferred        uxtheme
PE	7dfa0000-7dfa9000	Deferred        msacm32
PE	7dfd0000-7e047000	Deferred        winmm
PE	7e090000-7e093000	Deferred        usp10
PE	7e0d0000-7e0d4000	Deferred        rpcrt4
PE	7e160000-7e168000	Deferred        ole32
PE	7e280000-7e283000	Deferred        msimg32
PE	7e2b0000-7e2b4000	Deferred        msvcrt
PE	7e340000-7e344000	Deferred        imm32
PE	7e360000-7e364000	Deferred        iphlpapi
PE	7e390000-7e393000	Deferred        netapi32
PE	7e3e0000-7e3e4000	Deferred        ws2_32
PE	7e410000-7e414000	Deferred        dnsapi
PE	7e430000-7e439000	Deferred        winspool
PE	7e470000-7e478000	Deferred        shlwapi
PE	7e4f0000-7e64d000	Deferred        shell32
PE	7e720000-7e7b8000	Deferred        comdlg32
PE	7e800000-7e804000	Deferred        version
PE	7e820000-7e827000	Deferred        gdi32
PE	7e950000-7e98b000	Deferred        user32
PE	7eaa0000-7eacf000	Deferred        comctl32
PE	7eba0000-7eba4000	Deferred        advapi32
Threads:
process  tid      prio (all id:s are in hex)
00000008 gschem.exe
	00000009    0
0000000e services.exe
	0000001f    0
	0000001e    0
	00000019    0
	00000018    0
	00000016    0
	00000014    0
	00000010    0
	0000000f    0
00000012 winedevice.exe
	0000001d    0
	0000001a    0
	00000017    0
	00000013    0
0000001b plugplay.exe
	00000021    0
	00000020    0
	0000001c    0
00000022 explorer.exe
	00000026    0
	00000023    0
00000024 (D) Z:\home\kmk\geda\Windows-Version\geda-gaf-1.9.1\gschem\src\.libs\gschem.exe
	00000025    0 <==
\-----------------------------------

gattrib shows fails in the same way.


* gerbv **********************************************************

Generic configure went through without warnings.
make fails at the first compile with "error: unknown type name 'uid_t'":

/----------------------------------
$ make
make  all-recursive
make[1]: Entering directory `/home/kmk/geda/Windows-Version/gerbv-2.6.0'
Making all in src
make[2]: Entering directory `/home/kmk/geda/Windows-Version/gerbv-2.6.0/src'
/bin/bash ../libtool --tag=CC   --mode=compile i686-pc-mingw32.static-gcc -DHAVE_CONFIG_H -I. -I..   -mms-bitfields -mwindows -
DPREFIXDIR=\"/usr/local\" -DBINDIR=\"/usr/local/bin\" -DBACKEND_DIR='"/usr/local/share/gerbv/scheme/"' -DSCMSUBDIR='"scheme"' -mms-
bitfields -mwindows -Wall  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -
I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -
I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -
I/usr/include/libdrm -I/usr/include/harfbuzz   -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm   -MT amacro.lo 
-MD -MP -MF .deps/amacro.Tpo -c -o amacro.lo amacro.c
libtool: compile:  i686-pc-mingw32.static-gcc -DHAVE_CONFIG_H -I. -I.. -mms-bitfields -mwindows -DPREFIXDIR=\"/usr/local\" -
DBINDIR=\"/usr/local/bin\" -DBACKEND_DIR=\"/usr/local/share/gerbv/scheme/\" -DSCMSUBDIR=\"scheme\" -mms-bitfields -mwindows -Wall -
pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -
I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/libdrm -
I/usr/include/harfbuzz -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -
I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -MT amacro.lo -MD -MP -MF 
.deps/amacro.Tpo -c amacro.c  -DDLL_EXPORT -DPIC -o .libs/amacro.o
In file included from /usr/include/glib-2.0/gio/gio.h:46:0,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from gerbv.h:70,
                 from amacro.c:33:
/usr/include/glib-2.0/gio/gcredentials.h:75:1: error: unknown type name 'uid_t'
 uid_t            g_credentials_get_unix_user      (GCredentials    *credentials,
 ^
/usr/include/glib-2.0/gio/gcredentials.h:79:52: error: unknown type name 'uid_t'
                                                    uid_t           uid,
                                                    ^
make[2]: *** [amacro.lo] Error 1
make[2]: Leaving directory `/home/kmk/geda/Windows-Version/gerbv-2.6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kmk/geda/Windows-Version/gerbv-2.6.0'
make: *** [all] Error 2
\---------------------------------------------------

Looking into credentials.h it seems that the type uid_t is expected to be 
included in unistd.h or in sys/types.h . They don't explicitly contain the 
string "uid_h". But I didn't check recursively in included header files.

A quick google search for the error messages turned up a few cases. But I 
wasn't able to derive a cure from them. I noticed, that quite a number of 
projects seem to "checking for uid_t in sys/types.h". Maybe, this is such 
a check is missing in the configure script of gerbv. It eludes me, where
the type uid_t is defined on my debian host, which it surely is. 
Can anyone with more insight than me chime in?



Summary of my mxe attempt so far:
  pcb.exe --> works
  gschem --> instant segfault
  gerbv --> fails to compile

---<)kaimartin(>---
-- 
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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019