{"id":2680,"date":"2015-03-13T14:11:12","date_gmt":"2015-03-13T05:11:12","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/13\/gtk-mac-bundler_howto\/"},"modified":"2015-03-13T14:11:12","modified_gmt":"2015-03-13T05:11:12","slug":"gtk-mac-bundler_howto","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/13\/2680\/","title":{"rendered":"GTK-mac-bundler HOWTO (\u74b0\u5883\u69cb\u7bc9\u7de8)"},"content":{"rendered":"<p>\u3072\u3055\u3073\u3055\u306b <a href=\"http:\/\/murasaki.dna.bio.keio.ac.jp\/gmv.html\">GMV<\/a> \u3092 Mac \u7248\u30d0\u30a4\u30ca\u30ea\u914d\u5e03\u7528\u306b\u30d3\u30eb\u30c9\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3067\u3001\u4ee5\u524d\u306f GTK+ \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5225\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u3089\u3046\u69cb\u6210\u306b\u3057\u3066\u3044\u305f\u306e\u3060\u3051\u308c\u3069\u3001\u3053\u308c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u306e\u74b0\u5883\u3092\u6c5a\u3057\u3066\u3057\u307e\u3046\u611f\u3058\u304c\u3057\u3066\u5927\u5909\u7533\u3057\u8a33\u306a\u3044\u306e\u3067\u3001\u3061\u3083\u3093\u3068 Application bundle \u306b\u3057\u305f\u3044\u306a\u30fc\u3001\u3068\u601d\u3044\u307e\u3057\u3066\u3002<br \/>\nGMV \u3092 intensive \u306b\u958b\u767a\u3057\u3066\u3044\u305f\u9803\u306f\u3001\u307e\u3060 GTK+-Quartz \u306f\u3042\u3061\u3053\u3061\u602a\u3057\u3044\u3068\u3053\u308d\u3082\u3042\u3063\u305f (Gimp \u306e\u914d\u5e03\u3082 X11 \u7248\u3067\u3057\u305f) \u3093\u3067\u3059\u304c\u3001\u3044\u307e\u306f\u304b\u306a\u308a\u5b89\u5b9a\u3057\u3066\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3057\u3001\u3057\u304b\u3082 <a href=\"https:\/\/wiki.gnome.org\/Projects\/GTK%2B\/OSX\/Bundling\">gtk-mac-bundler<\/a> \u306a\u3093\u3066\u3044\u3046\u30c4\u30fc\u30eb\u307e\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u306f\u4f7f\u3046\u3057\u304b\u306a\u3044\u3002<br \/>\n\u307e\u305a\u3001MacOS X 10.8 + Xcode \u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3002\u6700\u8fd1\u306f MacOS X \u3082\u4eee\u60f3\u30de\u30b7\u30f3\u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u672c\u5f53\u306b\u4fbf\u5229\u3002\u8077\u5834\u3067\u306f VMware Fusion \u3067\u3059\u304c\u3001\u81ea\u5b85\u3067\u306f VirtualBox \u3067\u3084\u3063\u3066\u307e\u3059\u3002\u3069\u3063\u3061\u3082\u3061\u3083\u3093\u3068\u52d5\u304d\u307e\u3059\u3002VirtualBox \u3060\u3068\u3001MacOS \u7528\u306e Guest Additions \u304c\u306a\u3044\u306e\u3067 GUI \u3067\u4f7f\u3046\u306b\u306f\u82e5\u5e72\u4e0d\u4fbf (host \u304b\u3089\u306e copy &#038; paste \u3068\u304b\u304c\u3067\u304d\u306a\u3044) \u3067\u3059\u304c\u3001Xcode \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u307e\u3067\u3084\u3063\u3061\u3083\u3048\u3070\u3042\u3068\u306f ssh \u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u4f5c\u696d\u3067\u304d\u308b\u3053\u3068\u304c\u5927\u534a\u3067\u3059\u3057\u3001\u3042\u3093\u307e\u308a\u554f\u984c\u306a\u3044\u611f\u3058\u3002<br \/>\nGNOME.org \u306e <a href=\"https:\/\/wiki.gnome.org\/Projects\/GTK%2B\/OSX\/Building#Building_Other_Programs\">GTK+-OSX<\/a> \u306e\u30da\u30fc\u30b8\u304b\u3089\u3001gtk-osx-build-setup.sh \u3068\u3044\u3046\u306e\u3092\u3068\u3063\u3066\u304d\u3066\u30b9\u30bf\u30fc\u30c8\u3067\u3059\u3002\u306a\u304a\u3001\u4e00\u9023\u306e\u30c4\u30fc\u30eb\u306f jhbuild \u3068\u3044\u3046\u4ed5\u639b\u3051\u3092\u5229\u7528\u3057\u3066\u304a\u308a\u3001gtk-osx-build-setp \u306f\u3053\u308c\u3092 ~\/.local\/bin \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n[code:plain]<br \/>\n$ sh .\/gtk-osx-build-setup.sh<br \/>\n$ export PATH=~\/.local\/bin:$PATH<br \/>\n$ jhbuild bootstrap<br \/>\n[\/code]<br \/>\n\u3053\u308c\u3067\u3068\u3063\u304b\u304b\u308a\u306e\u90e8\u5206\u304c\u3042\u3063\u3051\u306a\u304f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\n\u3053\u3053\u304b\u3089\u5148\u306f bootstrap \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30c4\u30fc\u30eb\u7fa4\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u3001~\/gtk\/inst\/bin \u306b\u3082 PATH \u3092\u901a\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3044\u308d\u3044\u308d\u306e\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a\u304c\u9762\u5012\u306a\u306e\u3067\u3001<br \/>\n[code:plain]<br \/>\n$ jhbuild shell<br \/>\n[\/code]<br \/>\n\u3068\u3057\u3066\u3001\u69cb\u7bc9\u74b0\u5883\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3053\u3053\u3067\u306f MACOSX_DEPLOYMENT_TARGET \u3068\u3044\u3046\u74b0\u5883\u5909\u6570\u304c\u306a\u305c\u304b 10.7 \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u3042\u3068\u3067 GTK \u306e build \u304c\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u3001<br \/>\n[code:plain]<br \/>\n$ export MACOSX_DEPLOYMENT_TARGET=10.8<br \/>\n[\/code]<br \/>\n\u3068\u3057\u3066\u304a\u3044\u3066\u3001\u4e00\u901a\u308a\u306e\u30c4\u30fc\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002Python \u306f build \u3057\u3066\u304a\u304b\u306a\u3044\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u6a19\u6e96\u306e\u3067\u306f meta-gtk-osx-core \u306e build \u3067\u30a8\u30e9\u30fc\u304c\u3067\u308b\u6c17\u304c\u3057\u307e\u3059\u3002<br \/>\n[code:plain]<br \/>\n% jhbuild build python<br \/>\n% jhbuild build meta-gtk-osx-bootstrap<br \/>\n% jhbuild build meta-gtk-osx-core<br \/>\n[\/code]<br \/>\n(\u7d9a\u304f)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3072\u3055\u3073\u3055\u306b GMV \u3092 Mac \u7248\u30d0\u30a4\u30ca\u30ea\u914d\u5e03\u7528\u306b\u30d3\u30eb\u30c9\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3067\u3001\u4ee5\u524d\u306f GTK+ \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5225\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u3089\u3046\u69cb\u6210\u306b\u3057\u3066\u3044\u305f\u306e\u3060\u3051\u308c\u3069\u3001\u3053\u308c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u306e\u74b0\u5883\u3092\u6c5a\u3057\u3066\u3057\u307e\u3046\u611f\u3058\u304c\u3057\u3066\u5927\u5909\u7533 &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2015\/03\/13\/2680\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;GTK-mac-bundler HOWTO (\u74b0\u5883\u69cb\u7bc9\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-2680","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\/2680","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=2680"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2680\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}