Success! ( was RE: qt3-win: cannot compile with mingw)

YOUNES Abdelrazak (M3SYSTEM) abdelrazak.younes.m3system at eurocontrol.int
Fri Dec 23 08:56:28 CET 2005


Christian Ehrlicher a écrit :
> YOUNES Abdelrazak (M3SYSTEM) schrieb:
>
>> YES!
>>
>> Thanks Christian, it compiled OK when I removed MSYS from my path. I
guess
>> this is because I don't have the MSYS DTK installed. The devel components
>> are installed by hand in the MINGW directory.
>>
>> Side note: I understand that Qt3 is not top priority for you but could I
>> suggest that you update your web site because because the info there is
very
>> hard to find. A note about MSYS sh.exe would be good also.
> I'm just a developer and not good in creating websites. Some time ago
> somebody else wanted to create a better website but this never happend.
> Maybe I should write a small readme and put it into cvs.

Yes, that would be very usefull for eventual wanabe developer.
Here is some hints that you might find useful in your README:

1) Qt failed to compile with VC++ 6.0. You need Mingw or bcc32?? or VC++
 > 7.1 ??

2) remove any directory from the path that may contain a sh.exe : it
could be Cygwin OR Msys (ex: C:\msys\bin). Problem is that Qt might need
other programs than gcc and binutils. So a list of those if any would be
good.
2) warning: building a shared with Mingw needs a lot of Memory (>400
Megs RAM + lots of VM).
3) warning: building a static lib could lead to non functional
executables, as Michael Hertz said:

Abdel wrote:

 > I completely agree and I first try the static version but all the
demo and examples crashed, including the Qtdesigner. I'll try to find
sometime to compile in debug mode and see what's happening.

Ah. I forgot to mention: Ignore this!

There is a bug in qtwin/src/kernel/qapplication_win.cpp which doesn't
show up if you run LyX but makes all qtwin examples fail. If you change
qCreateCommandLine to

void qCreateCommandLine( QStringList &cmd_lst, int &argc,
QMemArray<pchar> &argv )
{
    argc = 0;
    /* set size of argv ( + 1 because of \0 for last element ) */
    argv.resize( argc + 1 );
    argv[ 0 ] = NULL;
}

the problem vanishes (which drops all cmd line args, of course, but I
don't care about them... but maybe the qtwin guy does (Christian???))

Hope that helps,
Abdel.

>
>
> Christian
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> kde-cygwin mailing list
> kde-cygwin at kde.org
> https://mail.kde.org/mailman/listinfo/kde-cygwin
<https://mail.kde.org/mailman/listinfo/kde-cygwin> 



____

This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL unless it is confirmed by appropriately signed hard copy.

Any views expressed in this message are those of the sender.



More information about the kde-cygwin mailing list