From kde-cygwin Tue Sep 26 19:54:40 2006 From: "Chris January" Date: Tue, 26 Sep 2006 19:54:40 +0000 To: kde-cygwin Subject: Re: KOffice 1.5.2 on Cygwin? Message-Id: <2ce9650b0609261254l3ecc3f53v80aabb2c279d2c35 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-cygwin&m=115930050300977 > Hello! > > Probably the easiest solution would be to modify moc.y in the Qt source. > Unfortunately this means to recompile Qt for Cygwin and I have not yet > managed to do this successfully. > > Another solution would be to write a wrapper for moc, which passes all > parameters to the real moc, then finds out what the output file was and > processes it with sed. > > But possibly there is still an easier solution... Ultimately the final executable shouldn't be modifying these slots on Cygwin if they are not modified on other platforms. > > Gary Greene wrote: > > So would I, as that would allow me to run Kontact on Win32 at work..... > > > > Gary Greene > > -- > > Service QA Engineer > > Turbine Software Entertainment, Inc. > > 60 Glacier Dr, Suite 4000 > > Westwood, MA 02090 > > > >> -----Original Message----- > >> From: Manfred Haertel, DB3HM [mailto:Manfred.Haertel@rz-online.de] > >> Sent: Tuesday, September 26, 2006 12:58 PM > >> To: kde-cygwin@kde.org > >> Subject: Re: KOffice 1.5.2 on Cygwin? > >> > >> Hello! > >> > >> Some weeks ago I posted a message concerning self compiled > >> KOffice applications crashing immediately after starting. I > >> append a quote of this message. > >> > >> Exactly the same problem happened when I tried to port a > >> simple KDE programming example I've written from Linux to > >> Cygwin. Fortunately, this application was simple enough to > >> track down the source of the problem. > >> > >> It seems as if this problem happens exactly when you define a > >> slot with parameters! If all slots don't have parameters, > >> everything is fine, if at least one slot has at least one > >> parameter, the application crashes immediately. > >> > >> I even found a workaround, by editing the moc generated cpp > >> files manually. > >> > >> If you define slots with parameters, there are lines in the > >> cpp file similar to the following: > >> > >> static const QUParameter param_slot_0[] = { > >> > >> If you remove just the "const" keyword here, everything is > >> fine again and the application runs perfectly! > >> > >> This is really weird! > >> > >> I do not really understand, where the problem is, probably > >> it's a g++ compiler (or linker?) problem under Cygwin. > >> > >> I also have no good idea yet how to apply the workaround > >> easily to KOffice (adding sed commands to all Makefile's???). > >> > >> If anybody has an idea how to solve the problem or a better > >> workaround, I would be very happy! Thanks in advance! > >> > >> Best regards > >> > >> Manfred > >> > >> Manfred Haertel, DB3HM wrote: > >>> Hello! > >>> > >>> I tried to build KOffice 1.5.2 on Cygwin, just to see if this works. > >>> > >>> To my surprise, the KOffice core and most application built without > >>> any problem. > >>> > >>> The problem is, when I try to start any application, it crashes > >>> immediately with STATUS_ACCESS_VIOLATION. It seems that the crash > >>> happens while referring to KoApplication, so I think it's a problem > >>> with the libraries. > >>> > >>> Do I have to add some flags to the linker on Cygwin? > >>> > >>> Thanks for any suggestions. > >>> > >>> Best regards > >>> > >> > >> -- > >> Manfred Härtel, DB3HM mailto:Manfred.Haertel@rz-online.de > >> http://rz-home.de/mhaertel > >> _______________________________________________ > >> kde-cygwin mailing list > >> kde-cygwin@kde.org > >> https://mail.kde.org/mailman/listinfo/kde-cygwin > >> > >> > >> ------------------------------------------------------------------------ > >> > >> _______________________________________________ > >> kde-cygwin mailing list > >> kde-cygwin@kde.org > >> https://mail.kde.org/mailman/listinfo/kde-cygwin > > > -- > Manfred Härtel, DB3HM mailto:Manfred.Haertel@rz-online.de > http://rz-home.de/mhaertel > _______________________________________________ > kde-cygwin mailing list > kde-cygwin@kde.org > https://mail.kde.org/mailman/listinfo/kde-cygwin > _______________________________________________ kde-cygwin mailing list kde-cygwin@kde.org https://mail.kde.org/mailman/listinfo/kde-cygwin