Re: Cross-platform apps



I agree on all the advice you are given here ...
My experience is that it is not piece of cake, but it can be done.
Test often and plan compatibility since the very beginning.
Then, i would recommend you take a look at other projects which are
cross-platform and you borrow from there ... for example, i am
involved with MiniSIP (www.minisip.org), which is builds on linux,
win32 and wince. The approach is to isolate OS dependent calls in
compatibility layers (in minisips case, libmutil and libmnetutil), so
you have a stable API which compiles the appropriate code depending on
the platform.

Good luck!

Cesc

On 4/26/06, Jose Hevia <jose francisco hevia gmail com> wrote:
2006/4/26, Tor Lillqvist <tml iki fi>:
Ross Clement writes:
 > How much difficulty am I likely to have when I get around to porting it?

 > a) None!
 > b) No more than a little
 > c) A considerable amount of work
 > d) The project from hell
 > e) Impossible

f) Any of the above

I agree with Tor here.

It all depends on what else your app does, and whether you steer clear
of known issues in GTK and GLib that are known to be problematic or
differ in the different backends.

It really is best to build and test on all platforms every now and
then, and not start porting only after everything is written and the
design set in stone.

It's generally know that when designing something, you need to take
into account "everything" important you could incorporate in early
design decisions. This way a fault-deviation could be easily and fast
corrected, and don't generate cascade faults that  just will take so
much effort (money,time,people) to correct, they won't be corrected.

Look at how many people are stick on Microsoft products just because
they decided to create its product without thinking in
portability,because porting to UNIX was too expensive(Unix was very
expensive).

So you will have:
a-b) If you use Posix compatible code and multiplattforms standars.
c)If Windows doesn't include by default something you want to use.
d)If something you can't control and you need from Microsoft just don't work.
e)If your project-program competes with Microsoft ones.

    Jose Hevia
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]