Technological Wanderings - gtk2 http://www.technologicalwanderings.co.uk/taxonomy/term/104 en GTK2 on MacPorts http://www.technologicalwanderings.co.uk/node/52 <div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Keywords:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/taxonomy/term/101">macports</a></div><div class="field-item odd"><a href="/taxonomy/term/102">darwinports</a></div><div class="field-item even"><a href="/taxonomy/term/103">dia</a></div><div class="field-item odd"><a href="/taxonomy/term/104">gtk2</a></div></div></div><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>Are you trying to install GTK2 on a Mac from MacPorts, such as for Dia?</p> <p>The build dependencies are broken as of December 2008. You need to install xorg-libXrandr first.</p> <p>sudo /opt/local/bin/port install xorg-libXrandr</p> <p>The error you'll be seeing will be along these lines:</p> <p><code>gdkevents-x11.c: In function 'gdk_event_translate':<br /> gdkevents-x11.c:2110: error: 'RRNotify' undeclared (first use in this function)<br /> gdkevents-x11.c:2110: error: (Each undeclared identifier is reported only once<br /> gdkevents-x11.c:2110: error: for each function it appears in.)<br /> gdkevents-x11.c:2112: error: 'XRRNotifyEvent' undeclared (first use in this function)<br /> gdkevents-x11.c:2112: error: 'notify' undeclared (first use in this function)<br /> gdkevents-x11.c:2112: error: syntax error before ')' token<br /> gdkevents-x11.c: In function 'gdk_x11_screen_get_window_manager_name':<br /> gdkevents-x11.c:2721: warning: dereferencing type-punned pointer will break strict-aliasing rules<br /> gdkevents-x11.c: In function 'gdk_x11_screen_supports_net_wm_hint':<br /> gdkevents-x11.c:2821: warning: dereferencing type-punned pointer will break strict-aliasing rules<br /> make[4]: *** [gdkevents-x11.lo] Error 1<br /> make[3]: *** [all-recursive] Error 1<br /> make[2]: *** [all] Error 2<br /> make[1]: *** [all-recursive] Error 1<br /> make: *** [all] Error 2</code></p> <p>Error: The following dependencies failed to build: gtk2 libart_lgpl libxslt popt<br /> Error: Status 1 encountered during processing.<br /></p> </div></div></div> Fri, 12 Dec 2008 10:05:31 +0000 techuser 52 at http://www.technologicalwanderings.co.uk http://www.technologicalwanderings.co.uk/node/52#comments