Réf. : Re: X11 unusable because too slow
frederic.bron at alcan.com
frederic.bron at alcan.com
Tue Oct 31 07:20:46 PST 2006
>> - from a Unix machine (OSF1 V5.1 alpha Tru64) I build with g++ 3.4.4 a =
>> unix version (wxX11)
> This is probably a quite slow machine, isn't it?
It is a multiprocessor (32) 64 bits machine 5-6 year old. Equivalent to =
Pentium 3 1 GHz rougthly.
>> My program creates all controls dynamically because the full layout is =
>> described in an input file given by the user
> Just curious, have you considered using XRC?
No because the controls represent what is in the user files. And the =
program is supposed to simplify the creation of a text file. Then the =
files are not fixed for ever but change each time the user runs the =
program.
>> - On cygwin and unix (wxX11):
>> 1. the program is extremely slow (what takes less than 0.5 s on =
windows =
>> takes 30 s on cygwin and even more on unix),
>> 2. wxChoice controls on a wxScrolledWindow become full gray (text is =
>> hidden and control does not work anymore) when the window is scrolled
>
> wxX11 is officially in beta stage, the "production quality" Unix port is
>wxGTK. wxX11 under Cygwin is not even in beta, it's really a totally
>experimental version which is not much tested nor attracts a lot of
>development interest for the understandable reasons (namely that it's
>totally useless in practice and I have no idea why would anyone use it).
I agree the cygwin version is not usefull. It just easier for me than =
logging on the unix computer but it is absolutely not usefull!
> I'm a bit surprised to hear that wxX11 is so slow for you under Unix,
>there could be some OSF1-specific problem here but I am not sure if there
>is really a bug here, you'd need to test wxX11 under Linux to confirm =
this.
>As for (2) it does look like a bug in wxX11 but, again, testing under =
Linux
>(or another of more common Unix systems) would be nice.
I will try to find a linux machine. I would be very much pleased to work =
with linux as I did during my PhD but I work now for a multi-national firm =
and you guess that Windows is the standard there...
>> I have tried wxMotif but the layout becomes a real mess
> wxMotif does have problems and is not used much nowadays neither. There
>are important projects still using it though, but it doesn't support all
>the latest wxWidgets features (often because Motif itself doesn't). The
>layout should work in it however, you might want to run the sizer sample
>for example.
OK, I will forget this solution
>> I and I have not =
>> been able to compile GTK on my unix machine because I get the following =
>> message when executing the configure script for glib 2.12.4:
>> configure: error:
>> *** You must have either have gettext support in your C library, or use =
>> the
>> *** GNU gettext library. (
http://www.gnu.org/software/gettext/gettext.html
>> =
>> However, I have installed gettext properly!
>
> But glib configure probably doesn't find it. Anyhow, this is not really =
a
>wxWidgets problem but a GTK+ one, I'm sure you could find help on =
gtk-users
>mailing list -- it should be possible to build GTK+ on OSF1, I did it
>myself some (admittedly long) time ago.
I will try again.
>> Then I am a bit disappointed because I spent quite a lot of time =
writting =
>> my application thinking it would be portable and finally, I get only a =
>> Windows version.
> This is a bad strategy for cross-platform development, it's much better =
to
> test the program continuously than finishing it first on only one =
platform
> and then porting it to the other. Of course, in theory what you did =
should
> work too (and maybe it does with wxGTK) but in practice you could have =
bugs
> in your code which were hidden under wxMSW for some reason but could =
show
> up on other ports.
I fact I have always developed the program building both versions but at =
the beginning, with few controls, the speed difference was not so =
critical.
>> I must do something wrong, could you help?
> I think the main thing you do wrong is to not use wxGTK. There might be
>others, but the 3 main wx ports are wxMSW, wxGTK and wxMac. The others =
may
>work too and people do use them but they're not as well maintained as the =
3
>main ones.
My next task is then to success installing GTK.
Many thanks for so quick answer.
F. Bron
Avis :
Ce message et toute pi=E8ce jointe sont la propri=E9t=E9 d'Alcan et sont =
destin=E9s seulement aux personnes ou =E0 l'entit=E9 =E0 qui le message est =
adress=E9. Si vous avez re=E7u ce message par erreur, veuillez le d=E9truir=
e et =
en aviser l'exp=E9diteur par courriel. Si vous n'=EAtes pas le destinataire=
du =
message, vous n'=EAtes pas autoris=E9 =E0 utiliser, =E0 copier ou =E0 divul=
guer le =
contenu du message ou ses pi=E8ces jointes en tout ou en partie. =
Notice:
This message and any attachments are the property of Alcan and are =
intended solely for the named recipients or entity to whom this message is =
addressed. If you have received this message in error please inform the =
sender via e-mail and destroy the message. If you are not the intended =
recipient you are not allowed to use, copy or disclose the contents or =
attachments in whole or in part. =
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20061031/283=
65579/attachment.htm
More information about the wx-users
mailing list