<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA1 <br>
&nbsp;<br>
Angus Leeming schrieb:<br>
<br>
<span style="white-space: pre;">&gt; Ralf Habacker wrote:<br>
&gt; <br>
&gt;&gt; On Friday 22 April 2005 13:32, Angus Leeming wrote:<br>
&gt;&gt; <br>
&gt;&gt;&gt; Angus Leeming wrote:<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt;&gt; On cygwin I'm using the following switch, which
may help to<br>
&gt;&gt;&gt;&gt;&gt; prevet seg faults. It requires a relink of the
qt-3.dll <br>
&gt;&gt;&gt;&gt;&gt; QMAKE_LFLAGS = <br>
&gt;&gt;&gt;&gt;&gt;
-Wl,--script,$(QTDIR)/mkspecs/cygwin-g++/i386pe.x-no-rdata<br>
&gt;&gt;&gt;&gt; <br>
&gt;&gt;&gt;&gt; Now that is very, very interesting. I'll try it out.
(Am I<br>
&gt;&gt;&gt;&gt; correct to say that only the dll needs to be
re-linked?<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; Hi, Ralf.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; I have some good news and some bad news to report.<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; a cross-compiled LyX/Win 1.3.x runs beautifully on
Windows, but<br>
&gt;&gt;&gt; only when I use a natively compiled qt3.dll. If I try
and use<br>
&gt;&gt;&gt; the cross-compiled qt3.dll, then I get the dreaded popup
"The<br>
&gt;&gt;&gt; application failed to initialise itself correctly".<br>
&gt;&gt; <br>
&gt;&gt;&gt; This is true both with a qt3.dll using the 'standard'
linker<br>
&gt;&gt;&gt; options<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; QMAKE_LFLAGS = -Wl,-enable-stdcall-fixup <br>
&gt;&gt;&gt; -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; and when I add your script:<br>
&gt;&gt;&gt; <br>
&gt;&gt;&gt; QMAKE_LFLAGS = <br>
&gt;&gt;&gt;
-Wl,--script,$(QTDIR)/mkspecs/cygwin-g++/i386pe.x-no-rdata <br>
&gt;&gt;&gt; -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import <br>
&gt;&gt;&gt; -Wl,-enable-runtime-pseudo-reloc<br>
&gt; <br>
&gt; <br>
&gt; I see from your other reply that this would not have worked
anyway,<br>
&gt; because I did not use the script when linking lyx.exe.<br>
&gt;</span><br>
I just tried to relink the cross compiled qt3dll and the qt tools<br>
(designer/assistant/linguist) with the above mentioned QMAKE_LFLAGS<br>
and got they running under windows without any problems. (The<br>
x-no-rdata file is very important)<br>
If you can build at least linguist or assistant and it will run under<br>
windows with the cross compiled qt3.dll and you got any seg faults,<br>
the qt dll will probably not the problem.<br>
<br>
<span style="white-space: pre;">&gt;&gt; It is interesting that the
problem is really the dll and not in<br>
&gt;&gt; the exe. Seems that there is a seg fault in the dll startup
code.<br>
&gt;&gt; Very difficult to catch, because it is not clear from which
part<br>
&gt;&gt; this comes. It may be a mingw provided static lib or the
mingw<br>
&gt;&gt; runtime library. (Do have used the mingw runtime dll from the<br>
&gt;&gt; cross compile package ?)<br>
&gt; <br>
&gt; <br>
&gt; No, everything else is native Windows. Only lyx.exe and qt3.dll<br>
&gt; were produced by cross compilation.<br>
&gt; <br>
&gt;&gt; If you have time you can try to profile the application with<br>
&gt;&gt; depends <a class="moz-txt-link-freetext" href="http://www.dependencywalker.com/">http://www.dependencywalker.com/</a>. It may give some
hints<br>
&gt;&gt; about where the seg fault happens.<br>
<br>
&gt; I currently think Windows is evil and would like to jump on its<br>
&gt; grave :) Give me a day or so to gather some energy.<br>
&gt;</span><br>
Okay. Thanks for you contribution.<br>
Ralf<br>
<br>
-----BEGIN PGP SIGNATURE----- <br>
Version: GnuPG v1.4.1 (MingW32) <br>
Comment: Using GnuPG with Thunderbird - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a> <br>
&nbsp;<br>
iD8DBQFCaSeHGkrI36lV8gURAozfAKCKu9SXHA0wj81Q3Elh9+xQW3N/PwCeNujB <br>
Hoy2RG1cVvToH1wC6uQMm8U= <br>
=MAkC <br>
-----END PGP SIGNATURE----- <br>
<br>
</body>
</html>