{"id":2681,"date":"2015-03-13T14:18:52","date_gmt":"2015-03-13T05:18:52","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/13\/gtk-mac-bundler_howto_1\/"},"modified":"2015-03-13T14:18:52","modified_gmt":"2015-03-13T05:18:52","slug":"gtk-mac-bundler_howto_1","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/13\/2681\/","title":{"rendered":"GTK-mac-bundler HOWTO (\u30d3\u30eb\u30c9\u7de8)"},"content":{"rendered":"<p>gtk-mac-bundler \u306e\u672c\u4f53\u3082\u3068\u3063\u3066\u304d\u3066\u3001\u9069\u5f53\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5c55\u958b\u3057\u3066 make install \u3057\u307e\u3059\u3002<br \/>\n[code:plain]<br \/>\n$ tar xf gtk-mac-bundler-0.7.3.tar.xz<br \/>\n$ cd gtk-mac-bundler-0.7.3<br \/>\n$ make install<br \/>\n[\/code]<br \/>\n\u3053\u308c\u3067 gtk-mac-bundler \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u5148\u306f ~\/.local\/ \u4ee5\u4e0b\u3067\u3001jhbuild \u3067 gtk \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5148\u3068\u540c\u3058\u3067\u3059\u3002\u307e\u305f\u3001\u5c55\u958b\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u4ee5\u4e0b\u306e examples\/ \u306b\u306f gtk-mac-bundler \u3092\u5b9f\u884c\u3059\u308b\u3068\u304d\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30f3\u30d7\u30eb\u304c\u3044\u308d\u3044\u308d\u3042\u308a\u307e\u3059\u3002<br \/>\npkg-config \u304c\u53c2\u7167\u3059\u308b GTK \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u9069\u5207\u306b\u9078\u629e\u3059\u308b\u305f\u3081\u306b\u306f\u3001PKG_CONFIG_PATH \u3068\u304b\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u3046\u3044\u3046\u306e\u306f\u307e\u3068\u3081\u3066 jhbuild \u306b\u59d4\u306d\u307e\u3059\u3002<br \/>\n[code:plain]<br \/>\n$ jhbuild shell<br \/>\n[\/code]<br \/>\n\u3053\u308c\u3067\u8d77\u52d5\u3059\u308b\u30b7\u30a7\u30eb\u306f\u74b0\u5883\u8a2d\u5b9a\u304c\u3061\u3083\u3093\u3068\u3067\u304d\u3066\u3044\u308b\u3060\u3051\u3067\u666e\u901a\u306e bash \u306a\u306e\u3067\u3001\u3053\u306e\u306a\u304b\u3067\u666e\u901a\u306b\u81ea\u5206\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 build \u3057\u3066\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d0\u30f3\u30c9\u30eb\u3092\u4f5c\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n&#8211; .bundle \u30d5\u30a1\u30a4\u30eb (gtk-mac-bundle \u306e\u8a2d\u5b9a)<br \/>\n&#8211; Info.plist (OS X \u7528)<br \/>\n&#8211; \u8d77\u52d5\u7528\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<br \/>\n&#8211; \u30a2\u30a4\u30b3\u30f3\u30d5\u30a1\u30a4\u30eb<br \/>\n[.bundle \u30d5\u30a1\u30a4\u30eb]<br \/>\ngtk-demo \u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d0\u30f3\u30c9\u30eb\u306b\u3059\u308b\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u304c examples\/gtk-demo.bundle \u3068\u3057\u3066\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u4e2d\u5473\u306f XML \u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u6700\u4f4e\u9650\u5909\u66f4\u304c\u5fc5\u8981\u306a\u306e\u306f\u3001<br \/>\n&#8211; launcher-script (\u8d77\u52d5\u7528\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8)<br \/>\n&#8211; plist (Info.plist \u3068\u3057\u3066\u4f7f\u3046\u30d5\u30a1\u30a4\u30eb)<br \/>\n&#8211; main-binary (\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u672c\u4f53)<br \/>\n\u306e3\u3064\u3067\u3059\u3002\u30a2\u30a4\u30b3\u30f3\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u5834\u5408\u306b\u306f\u3001\u3053\u308c\u3082\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u307e\u305f\u3001pango \u306b\u95a2\u9023\u3059\u308b\u30d0\u30a4\u30ca\u30ea\u304c\u4e0d\u8db3\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u307e\u307e\u3060\u3068\u30dd\u30fc\u30bf\u30d3\u30ea\u30c6\u30a3\u306e\u306a\u3044 (\u4ed6\u306eMac\u3067\u52d5\u304b\u306a\u3044) \u30d0\u30f3\u30c9\u30eb\u304c\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u3067\u3001pango-querymodules \u3084 pango \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u542b\u3081\u308b\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<br \/>\n[code:xml]<br \/>\n<binary><br \/>\n${prefix}\/bin\/pango-querymodules<br \/>\n${prefix}\/lib\/pango\/1.8.0\/modules\/*.so<br \/>\n<\/binary><br \/>\n[\/code]<br \/>\n[Info.plist]<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3084 Copyright \u306e\u60c5\u5831\u306a\u3069\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002examples\/Info.plist \u3092\u305f\u305f\u304d\u53f0\u306b\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u66f8\u304d\u307e\u3059\u3002<br \/>\n[\u8d77\u52d5\u7528\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8]<br \/>\n\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066 examples\/launcher.sh \u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u57fa\u672c\u7684\u306b\u306f\u3053\u308c\u3067\u5909\u66f4\u306e\u5fc5\u8981\u306f\u306a\u3044\u3001\u306f\u305a\u306a\u306e\u3067\u3059\u304c\u3001\u3084\u306f\u308a pango \u306b\u95a2\u9023\u3059\u308b\u90e8\u5206\u3092\u4fee\u6b63\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u3001\u4ed6\u306e Mac \u306b\u6301\u3063\u3066\u884c\u3063\u305f\u3068\u304d\u306b\u30d5\u30a9\u30f3\u30c8\u304c\u5168\u90e8\u25a1\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u4fee\u6b63\u304c\u5fc5\u8981\u306a\u306e\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u308f\u308a\u3068\u6700\u521d\u306e\u307b\u3046\u3068\u3001\u4e00\u756a\u6700\u5f8c\u306e2\u30ab\u6240\u3067\u3059\u3002\u3053\u308c\u3067\u3001\u8d77\u52d5\u306e\u305f\u3073\u306b pango \u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u30d1\u30b9\u3092\u6b63\u3057\u304f\u751f\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n[code:plain]<br \/>\nexport PANGO_RC_FILE=&#8221;$bundle_etc\/pango\/pangorc&#8221;<br \/>\n+export PANGO_LIBDIR=&#8221;$bundle_lib&#8221;<br \/>\n+export PANGO_SYSCONFDIR=&#8221;$bundle_etc&#8221;<br \/>\n[\/code]<br \/>\n[code:plain]<br \/>\n+mkdir -p &#8220;$bundle\/pango\/1.8.0&#8221;<br \/>\n+ln -sf ..\/..\/ &#8220;$bundle\/pango\/1.8.0\/modules&#8221;<br \/>\n+<br \/>\n+&#8221;$bundle_bin\/pango-querymodules&#8221; > &#8220;$bundle_etc\/pango\/pango.modules&#8221;<br \/>\n+<br \/>\n+export PANGO_LIBDIR=&#8221;&#8221;<br \/>\n+<br \/>\n$EXEC &#8220;$bundle_contents\/MacOS\/$name-bin&#8221; &#8220;$@&#8221; $EXTRA_ARGS<br \/>\n[\/code]<br \/>\n\u3053\u308c\u3067\u6e96\u5099\u306f\u7d42\u308f\u308a\u3067\u3059\u3002<br \/>\n[code:plain]<br \/>\n$ gtk-mac-bundler hogehoge.bundle<br \/>\n[\/code]<br \/>\n\u3068\u3059\u308c\u3070\u3001~\/Desktop \u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d0\u30f3\u30c9\u30eb\u304c\u4f5c\u3089\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>gtk-mac-bundler \u306e\u672c\u4f53\u3082\u3068\u3063\u3066\u304d\u3066\u3001\u9069\u5f53\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5c55\u958b\u3057\u3066 make install \u3057\u307e\u3059\u3002 [code:plain] $ tar xf gtk-mac-bundler-0.7.3.tar.xz  &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/13\/2681\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;GTK-mac-bundler HOWTO (\u30d3\u30eb\u30c9\u7de8)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[9,6],"tags":[],"class_list":["post-2681","post","type-post","status-publish","format-standard","hentry","category-mac","category-unix-"],"_links":{"self":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2681"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2681\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}