Opened 16 years ago

Closed 15 years ago

#16758 closed enhancement (fixed)

gtk2hs variant for compiling with the no_x11 variant of gtk2

Reported by: CaptSolo Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: gtk2hs

Description

This is a feature request for a no_x11 variant of gtk2hs port.

There have been reports on mailing lists that people have built gtk2hs from source with the Mac OS X native version of gtk2. This ver of GTK+ is also present in MacPorts as a no_x11 variant of gtk2, however gtk2hs fails to configure if you try to install it after this variant of GTK+.

I'll post come comments below on what I tried.

Attachments (1)

gtk2hs-no_x11-patch (981 bytes) - added by CaptSolo 16 years ago.
A patch to compile this port with "gtk2 +no_x11"

Download all attachments as: .zip

Change History (8)

Changed 16 years ago by CaptSolo

Attachment: gtk2hs-no_x11-patch added

A patch to compile this port with "gtk2 +no_x11"

comment:1 Changed 16 years ago by CaptSolo

The first problem is dependency on gtkglext port. It depends on pangox which does not get build in no_x11 variant. There were also reports that gtkglext depends on X11 OpenGL implementation and that it would not work with no_x11 variant w/o rewriting for Apple APIs.

I got gtk2hs to compile by disabling some extensions: --disable-svg and --disable-opengl (patch attached).

The patch is attached just as an example of what I did. You may want to test of the port works properly after these modifications. And, if it works, a no_x11 variant would need to be added to gtk2hs.

comment:2 Changed 16 years ago by CaptSolo

When trying to compile an application (Fenfire) to use the resulting gtk2hs port I get the following error message:

Fenfire/GtkFixes.hs:38:0:
    Bad interface file: /opt/local/lib/gtk2hs/imports/gtk/Graphics/UI/Gtk.hi
        Something is amiss; requested module  gtk-0.9.12.1:Graphics.UI.Gtk differs from name found in the interface file gtk-0.9.13:Graphics.UI.Gtk

Could someone help me fix this? I don't see where it gets an idea that gtk-0.9.12.1 is requested.

comment:3 Changed 16 years ago by mf2k (Frank Schima)

Cc: gwright@… removed
Owner: changed from macports-tickets@… to gwright@…
Port: gtk2hs added

comment:4 Changed 16 years ago by mf2k (Frank Schima)

Milestone: Port BugsPort Enhancements

comment:5 Changed 16 years ago by gwright@…

Status: newassigned

comment:6 Changed 16 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

comment:7 Changed 15 years ago by blb@…

Resolution: fixed
Status: assignedclosed

gwright took care of this in r48907 and r49371.

Note: See TracTickets for help on using tickets.