Welcome, Guest. Please login or register.

Author Topic: GTK+ port to AmigaOS  (Read 5610 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Van_MTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2003
  • Posts: 241
    • Show only replies by Van_M
GTK+ port to AmigaOS
« on: April 04, 2004, 01:19:10 AM »
How hard would be, to port the GTK+ toolkit to AmigaOS? It would make the porting of Linux applications to the AmigaOS, really easy.
BeOS already has an implementation, so I guess, it shouldn't be next to impossible...  
The new Megadeth album rules!
 

Offline x56h34

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 2921
    • Show only replies by x56h34
Re: GTK+ port to AmigaOS
« Reply #1 on: April 04, 2004, 01:30:41 AM »
Sorry to be off-topic, but feel that I should mention that I am a big Predator fan. ;-)
 

Offline CodeSmith

  • Sr. Member
  • ****
  • Join Date: Sep 2002
  • Posts: 499
    • Show only replies by CodeSmith
Re: GTK+ port to AmigaOS
« Reply #2 on: April 04, 2004, 01:34:05 AM »
It's already in progress - look here.

Take a peek at the list of developers, there are a couple of familiar names in there :-)
 

Offline Van_MTopic starter

  • Full Member
  • ***
  • Join Date: Jun 2003
  • Posts: 241
    • Show only replies by Van_M
Re: GTK+ port to AmigaOS
« Reply #3 on: April 04, 2004, 01:40:30 AM »
great! I really wish it's gonna go well. Which popular linux apps are based on GTK+? OpenOffice and Mozilla or I am wrong?
The new Megadeth album rules!
 

Offline bhoggett

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1431
    • Show only replies by bhoggett
    • http://www.midnightmu.com
Re: GTK+ port to AmigaOS
« Reply #4 on: April 04, 2004, 02:26:21 AM »
OpenOffice and Mozilla use GTK+ for the interface, but they're not specifically based on it. Windows Mozilla and OpenOffice ports don't use GTK+.

For examples of regular popular apps on Linux that are actually GTK+ based look no further than The Gimp, xchat and the Anjuta IDE. There are also GTK wrappers for most popular languages, including Python and Perl, which are used extensively to provide front ends to many command line applications.

GTK would also allow for the porting of wxGTK, the GTK port of wxWidgets (formerly known as wxWindows), allowing for truly portable applications. Audacity is one example of such an application.

I wish the team all the best, and hope they get further than the last attempt to port GTK to the Amiga. (yes, it was attempted before)

P.S. I trust the work being done is concentrating on porting GTK2, not the obsolete older version. Most GTK applications have now moved to GTK2, so this is required if current apps are to be ported.
Bill Hoggett
 

Offline evilrich

  • Newbie
  • *
  • Join Date: Nov 2003
  • Posts: 25
    • Show only replies by evilrich
    • http://www.rcdrummond.net
Re: GTK+ port to AmigaOS
« Reply #5 on: April 04, 2004, 05:11:29 AM »
Quote
BeOS already has an implementation

The BeOS version requires X. The native BeOS port was never finsihed, AFAIK.
 

Offline evilrich

  • Newbie
  • *
  • Join Date: Nov 2003
  • Posts: 25
    • Show only replies by evilrich
    • http://www.rcdrummond.net
Re: GTK+ port to AmigaOS
« Reply #6 on: April 04, 2004, 05:12:26 AM »
Quote
OpenOffice and Mozilla use GTK+ for the interface

OpenOffice doesn't.
 

Offline Kronos

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: GTK+ port to AmigaOS
« Reply #7 on: April 04, 2004, 07:06:16 AM »
Quote

evilrich wrote:
Quote
OpenOffice and Mozilla use GTK+ for the interface

OpenOffice doesn't.


I've tried to get that into the heads of this community for the last 2 years .....
no success :-o So expect to have to say thing over an over again  :-P
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline Kronos

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: GTK+ port to AmigaOS
« Reply #8 on: April 04, 2004, 07:54:40 AM »
@bhogget

AFAIK it will only be GTK1.x due to the fact that it only relies on GDK and clib, while
GTK2 has much longer list of demands (and some of them would be really hard to port).
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline Rogue

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 566
    • Show only replies by Rogue
    • http://www.hyperion-entertainment.com
Re: GTK+ port to AmigaOS
« Reply #9 on: April 04, 2004, 09:39:14 AM »
@Kronos
Quote
some of them would be really hard to port


Anything specific in mind? I had a quick glance over the requirements, and there isn't much that would be overly complicated to port...
Look out, I\'ve got a gun
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: GTK+ port to AmigaOS
« Reply #10 on: April 04, 2004, 11:21:58 AM »
Quote
The BeOS version requires X. The native BeOS port was never finsihed, AFAIK.


I think that on AmigaOS we should have a rootless X-Window server (with a window manager more or less integrated with AmigaOS) before GTK because I guess that it may be easier to port GTK and other stuff later and the maintenance of the GTK port (that would require X-Windows) would be easier.

Take it as a constructive criticism and just as an idea to reduce the amount of work required to port GTK... Porting GTK is a brave effort, but a rootless XWindow server like the MacOS X one would help us a lot and may be easier.

Good luck with the project, I hope that it succeeds, but please think about the X-Window server idea... (maybe for the next project? ;-)
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline bhoggett

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1431
    • Show only replies by bhoggett
    • http://www.midnightmu.com
Re: GTK+ port to AmigaOS
« Reply #11 on: April 04, 2004, 11:59:24 AM »
@evilrich

Quote
OpenOffice doesn't.


Mea culpa. You are right of course. I was thinking of AbiWord for some reason. :oops:
Bill Hoggett
 

Offline bhoggett

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1431
    • Show only replies by bhoggett
    • http://www.midnightmu.com
Re: GTK+ port to AmigaOS
« Reply #12 on: April 04, 2004, 12:15:12 PM »
@Kronos

Quote
AFAIK it will only be GTK1.x


That would be utterly pointless and a waste of time and resources. Hardly any of the major apps still use GTK1.x, unless you count Gimp 1.2 which is still the staple release on most Linux distros. VICE, the Gentoo file manager and ActiveState Komodo are the other apps that spring to mind which still use GTK1.

However, Gimp2 is well on the way and will probably arrive before GTK on AmigaOS, and that uses GTK2. VICE is like Mozilla in that it uses GTK but is not dependent on it (the Windows port of VICE uses a native interface). Gentoo is hardly a killer app given AmigaOS has the inspiration for it. ActiveState Komodo is commercial and probably wouldn't be ported anyway. There is no point in porting GTK1.

I'm also thinking this would be an AmigaOS4 only project judging by the list of developers, so the incentive to port actual applications will be that much less gicen the reduced audience, not to mention the reduced developer base.
Bill Hoggett
 

  • Guest
Re: GTK+ port to AmigaOS
« Reply #13 on: April 04, 2004, 12:20:04 PM »
Hello,

I just subscribed here on Amiga.org only to throw in some sentences into this Thread.

I've been following this post since yesterday and also saw similar posts showing up even on other sites. I think that we should ask ourselves first for what we actually need GTK+ ? As we saw in the first post the person asked for GTK+ but don't had a particular idea what apps use GTK+ only. He named Mozilla and Open Office here as bad examples, since Mozilla uses XUL for Widgets stuff but uses GTK+ for some lowlevel stuff and Open Office is mainly SFC but Ximian took it and start GNOME'ifiying it. They are basicly changing some visible aspects over to GNOME and changed the filehandling to GNOME-VFS - I call it totally breaking a working application. I say this because I know that most of the work these people do are mostly done half. They take good applications, change it over to whatever they think but do it only half. That is while they change some visible aspects over to GNOME the rest stays in the old code it's a mismatch of old and new stuff and probably remains so for the upcoming years.

I do come from the GTK+/GNOME world and spent the past 5 years with them (that is I know the majority of the core developers working on GTK+ and even GNOME (to extend it) and I use to write own stuff using GTK+ and fix around in the GNOME world etc.

We should really ask ourselves if it's worth the trouble with GTK+ and what exact benefits it will give us or if there are native apps we can use. Right now I only have a few in my mind. The GIMP, XChat, GAIM maybe the one or other app as well. Most other apps available using GTK+ are usually also using GNOME libraries these days and porting all that stuff over to Amiga (be it AmigaOS, MorphOS or AROS) is more than a pain in my opinion.

If we get GTK+ ported then what ? A million apps that can easily be compiled ? I don't think so, since many of these programms usually depend on again other libraries and other libraries depend again on others.

Application <-> Library dependency
Library <-> Library dependency

Satisfying all these dependencies will be a hard work to do.

Porting GTK+ itself shouldn't be a big problem (theoretically) and you don't even need X11 for it or any XServer solutions.

GTK+ architecture is divided in the widgets library and the GDK backend. One of these GDK backends is for X11, one for Win32, one for DirectFB and in my understanding it could be easy to write an AmigaOS backend for GDK and the rest should more or less compile.

The current dependency of GTK+ 2.4 is as follows:

PKG-Config (probably optional or removable), Glib, Atk+, Fontconfig, Freetype2, Pango, GTK+

Although a bunch of GTK+ only applications already are written in a way where the Toolkit is just optional. That is you can easily switch between true Windows MFC or GTK+ or QNX Photon etc. And it should be no problem (only work is required) to write an MUI or Reaction frontend for it as well.

So it's questionable whether it makes sense porting the entire GTK+ widgetset including all its dependencies over to Amiga only for a few apps. It would be better to port these apps directly instead.

If someone had in mind to get stuff like Evolution running (only one example) since it is a GTK+ app then I must disappoint you since Evolution is not a GTK+ app it's more or less a GNOME app which requires around a good dozen other libraries to be ported (libraries that depend on other libraries as well). Honestly it would be easier to use Linux in this case.

We should also look at the philosophical aspects here (I know Mr. Frieden already replied to me that there isn't room for this). I for my own think that Open Source and Free Software does give us a good push getting new software to our systems and this imo is a nice thing. But we should clearly differ between core stuff such as compilers, debuggers etc. and GUI stuff. There are no benefits turning the entire Desktop experience from once AmigaOS look and feel over to a GNOME or GTK+ look and feel.

You should also think about that. A lot of people simply dislike or don't agree (anymore) in the way how GTK+ or GNOME apps use to work and they are searching for alternatives with it's own philosophical spirit. Not to mention that there isn't anything special around GTK+ either.

We should clearly concentrate writing either own software solutions or port the good bits from Open Source and the Free Software world over to our systems but then we should do it in a way that makes the app fit entirely into the Desktop look and feel experience. We already have to many toolkits on Amiga and we should seriously concentrate on MUI or Reaction these days. No need for another toolkit.

Sorry if I as only one sound contra GTK+ here but I am a signed person here. It's not just GTK+ itself it's also the entire community of these people that I dealt with the past 5 years. It was clearly enough.

greetings,

oGALAXYo
 

  • Guest
Re: GTK+ port to AmigaOS
« Reply #14 on: April 04, 2004, 12:21:56 PM »
Quote
Mea culpa. You are right of course. I was thinking of AbiWord for some reason. :oops:


AbiWord has different toolkit backends. The engine is split away from the GUI. Write a wrapper for MUI or Reaction and done.

greetings,

oGALAXYo