From: Michael G. <mg...@te...> - 2005-07-20 04:26:27
|
> I've build a cross-compiler with the notes from the wiki here: > http://www.mingw.org/MinGWiki/index.php/build%20a%20Win32%20x-compiler%20= for%20Linux That's exactly what I'm doing myself. > I compiled QT on windows, using mingw's win32 compiler (fresh install,=20 > using candidate packages), and I cross-compiled an application that=20 > links to the generated qt library. Again that's exactly what me and a couple of other developers in my company are doing regularly. > Now I see strange errors such as: > /opt/qt-3.3.4-win32/lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0= x148):=20 > undefined reference to `___gxx_personality_sj0' > /opt/qt-3.3.4-win32/lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0= x161):=20 > undefined reference to `__Unwind_SjLj_Register' > /opt/qt-3.3.4-win32/lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0= x24f):=20 > undefined reference to `__Unwind_SjLj_Unregister' > /opt/qt-3.3.4-win32/lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0= x295):=20 > undefined reference to `__Unwind_SjLj_Resume' Never seen them. Some guesses: Have you enabled any "non-default" options when building Qt ? Which are your (c++) options when crosscompiling the application ? > I guess its got something to do with Michael Gerdau's attempts to use=20 > DW2 EH instead of the slower (but reliable) SJLJ EH... Shouldn't DW2 EH work with the recent toolchain ? > What exactly does this script attempt to build? A Linux based crosscompiler for Win32, i.e. you run under Linux and by means of this crosscompiler you generate *.dll/*.exe that run under Linux. My company does this for a few years now with basically the procedure outlined in the provided script. > Is it compatible with the win32 mingw? I thought it is... Actually I was able to create the win32 version of mingw under linux using a slightly modified version of "this script". > I've attempted to do everything from scratch so I don't screw anything=20 > up, but obviously something is still not right. Is it the linux=20 > crosscompiler i built? Ideas? You could try to tweak the configure switches of the compiler in the script. Mail me privately and I'm happy to help sorting that out. Best, Michael =2D-=20 Vote against SPAM - see http://www.politik-digital.de/spam/ Michael Gerdau email: mg...@te... GPG-keys available on request or at public keyserver |