Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is GTK 3.x a real cross-platform solution?

I have tasted both Qt 4.x/5.x and GTKmm 3.x and I really like GTKmm over Qt.

Now I have just discovered that GTKmm 3.x doesn't offer a Windows porting, they also do not offer a Mac porting, basically I can't find nothing but libraries/sources/binaries for Linux. Apparently the Windows support ( I'm not sure about the situation for the Mac OS stuff ) was dropped in the 2.x era and it's still not-existing today.

I have planned to use GTK 3.x for specific reasons, especially for some new features introduced by the 3.x branch, so using GTK 2.x is an option off the table.

Now I ask: there is something new for the Windows and/or Mac support for GTK 3.x ? There is something ? even experimental projects ?

like image 364
user1824407 Avatar asked Dec 29 '12 08:12

user1824407


4 Answers

2018-12-18 Update:

GTK+ 3 on Windows has been supported through MSYS2 for years.

Old answer:

GTK for Windows is currently provided "as-is". What it means, basically, is that there are no GTK maintainer that use Windows, and those using Linux have enough work maintaining the Linux builds.

This means that any contribution for GTK 3 on Windows is welcome, some people are using it, but that's not ready for the masses because nobody steps up to do the work, which won't be done by magic overnight. So it's usable, but don't expect reactive maintenance.

As for the build, there's a french dude providing an (unofficial) GTK 3 installer for Windows.

like image 32
liberforce Avatar answered Sep 24 '22 01:09

liberforce


GTK on Mac has worked well for a long time and continues to work into the 3.x series:

https://live.gnome.org/GTK%2B/OSX/Building

You can also install GTK 3.x using MacPorts, but I don't know how well that works.

like image 36
ptomato Avatar answered Sep 25 '22 01:09

ptomato


No it isn't - at least when you want to be on the safe side for the future. The MacOSX and GTK ports are less then perfect and completely voluntarily which means by a program of this complexity and size they are not not active developed. And nobody cares that old features are implemented before new are added.

Almost 2 years since GTK3 released and there is still no official Windows binary distribution. And on one of the GNOME conferences there was an open discussion if GTK4 should be made Linux only. Well i guess they mean Linux/BSD - but Wayland is pure Linux at the moment and BSD do have a lack of developer for Desktop stuff.

This should be enough to scare any person with a serious program which requires real world investment away.

Also i strongly belive that cross platform GUI toolkits are a thing from the past. Abstract the GUI of your app and develop for every platform. With the success of the AppStores you will be forced more and more to use the native platform style. Your app will already be rejected by Apples AppStore if it looks to different. Windows is now enforcing WinRT. Be prepared that this will just be more important in the future.

So the way to go is WxWidgets which uses native widget sets. Skip GTK

like image 85
Lothar Avatar answered Sep 26 '22 01:09

Lothar


As of right now, no.

Like Frédéric Hamidi said, see Where can I download precompiled GTK+ 3 binaries or windows installer? for more info.

like image 20
Christian Smith Avatar answered Sep 26 '22 01:09

Christian Smith