Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Gonstruct: gtk2.20.1 and gtkglextmm 1.2.0 (https://forums.graalonline.com/forums/showthread.php?t=134259959)

napo_p2p 07-26-2010 08:25 PM

Gonstruct: gtk2.20.1 and gtkglextmm 1.2.0
 
I was trying to create a MacPort for gonstruct, but I hit a road bump. It looks like there is an incompatibility between gtk2.20.1 and gtkglextmm (on Macs, at least).

With gtk2.20, gonstruct crashes when loading/opening a level with the following error:
NPC Code:
Symbol not found: _GTK_WIDGET_NO_WINDOW



However, when I downgrade gtk to 2.18, the error goes away, and gonstruct works just fine.

I just want to determine if this issue is Mac-related, or widespread... Is anyone running (or tried running) gonstruct with gtk 2.20.1?

cbk1994 07-27-2010 05:10 AM

Do share the port of Gonstruct :).

napo_p2p 07-27-2010 05:41 AM

Yeah, I plan on submitting the port to MacPorts when I'm finished (along with premake4, which I had to also port along the way...). When that's done, building/installing gonstruct with MacPorts should be as easy as:
NPC Code:
sudo port install gonstruct


It'll take a while though since the dependencies take forever to build (blame boost! :P).

Anyways, it looks like there is already a MacPort ticket filed for the gtk2/gtkglext incompatibly issue, so hopefully that gets resolved sometime soon (it probably will, since it's a pretty serious issue). I should have the port ready shortly after that's fixed.

EDIT: Looks like Debian fixed the issue in their version of gtkglext, and I've submitted the patch to the maintainer of gtkglext for MacPorts. Hopefully, the maintainer gets around to updating the port sometime soon... otherwise I'll give it a shot.

Fry 07-27-2010 09:41 AM

Mh, gonstruct doesn't use gtkglext. There's two different OpenGL extensions for GTK, gtkglarea (also just called libgtkgl in some distributions) and gtkglext. Gonstruct just uses gtkglarea 2.0, which hasn't been updated in ages, but there have been problems with gtkglext on Windows, so I ended up using gtkglarea. I don't remember whether gtkglarea was in the MacPorts repository, but I think it was. I'll check later.

napo_p2p 07-27-2010 10:09 AM

Both gtkglarea and gtkglarea2 are in the MacPorts tree:
NPC Code:
$ port list | grep gtkglarea
gtkglarea @1.2.3 x11/gtkglarea
gtkglarea2 @1.99.0 x11/gtkglarea2



But, I went with gtkglext because that's what was listed in the README (gtkglextmm) :p. Should I be using gtkglarea?

Anyways, I went ahead and patched the port for gtkglext and got gonstruct working with gtk2.20.1. Hopefully that will get committed soon... but in the meantime I can finish up the gonstruct port :).

EDIT: Aww snap, I went to the old source that was linked off the home page, and not the latest version! It does, indeed, list gtkglarea instead of gtkglext! Oh well, at least I made a few random people happy with the gtkglext patch :p.

Fry 07-27-2010 12:35 PM

Good point though, you want gtkglarea2 not the normal gtkglarea, going to add that to the README.


All times are GMT +2. The time now is 07:03 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.