{"id":159,"date":"2010-02-19T15:07:42","date_gmt":"2010-02-19T14:07:42","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/?p=159"},"modified":"2010-02-19T15:10:25","modified_gmt":"2010-02-19T14:10:25","slug":"gtk-framework-for-mac-os-x-as-well-as-cairo-pango","status":"publish","type":"post","link":"https:\/\/www.miscdebris.net\/blog\/2010\/02\/19\/gtk-framework-for-mac-os-x-as-well-as-cairo-pango\/","title":{"rendered":"GTK-Framework for Mac OS X (as well as cairo, pango, &#8230;.)"},"content":{"rendered":"<p>There is no official <a href=\"http:\/\/www.gtk.org\/\" target=\"_blank\">GTK<\/a> framework for Mac OS X available. <a href=\"http:\/\/gtk-osx.sourceforge.net\/\" target=\"_blank\">They<\/a> are working hard on it, but in the moment you are forced to compile the framework on your own, though the <a href=\"http:\/\/sourceforge.net\/apps\/trac\/gtk-osx\/wiki\/Build\" target=\"_blank\">instructions<\/a> don&#8217;t look that complicated. You could also use <a href=\"http:\/\/www.macports.org\/\" target=\"_blank\">macports<\/a> or <a href=\"http:\/\/www.finkproject.org\/\" target=\"_blank\">fink<\/a>, but when I use them I always encounter some problems, if a package doesn&#8217;t compile. I found an easy and fast solution to install the GTK framework for Mac OS X (using X11) and you also get cairo, pango and other libraries of the GTK project.<!--more--> Actually it&#8217;s done in two simple steps:<\/p>\n<ol>\n<li>Download the <a href=\"http:\/\/r.research.att.com\/libs\/GTK_2.18.5-X11.pkg\" target=\"_blank\">GTK_2.18.5-X11.pkg<\/a> package from <a href=\"http:\/\/r.research.att.com\/\" target=\"_blank\">http:\/\/r.research.att.com\/<\/a> and install it<\/li>\n<li>Add to your .profile file in the home directory:<\/li>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexport PATH=\/Library\/Frameworks\/GTK+.framework\/Resources\/bin:$PATH\r\n<\/pre>\n<\/ol>\n<p>Start Terminal.app and pkg-config is available, which is needed for configure or cmake. That&#8217;s it. I actually needed only the cairo and pango library to test the cairo drivers of <a href=\"http:\/\/plplot.sf.net\" target=\"_blank\">PLplot<\/a> on Mac OS X and so far this works without problems. Next I&#8217;ll try to compile <a href=\"http:\/\/www.gnuplot.info\" target=\"_blank\">Gnuplot<\/a> and and see if this works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is no official GTK framework for Mac OS X available. They are working hard on it, but in the moment you are forced to compile the framework on your own, though the instructions don&#8217;t look that complicated. You could also use macports or fink, but when I use them I always encounter some problems, &hellip; <a href=\"https:\/\/www.miscdebris.net\/blog\/2010\/02\/19\/gtk-framework-for-mac-os-x-as-well-as-cairo-pango\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">GTK-Framework for Mac OS X (as well as cairo, pango, &#8230;.)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[10],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-macosx"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-2z","_links":{"self":[{"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/159"}],"collection":[{"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":4,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/159\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}