{"id":462,"date":"2012-10-11T14:38:28","date_gmt":"2012-10-11T05:38:28","guid":{"rendered":"http:\/\/blog.belliny.net\/?p=462"},"modified":"2012-10-11T14:38:28","modified_gmt":"2012-10-11T05:38:28","slug":"dylib-on-mac-and-install_name_tool","status":"publish","type":"post","link":"https:\/\/www.belliny.net\/?p=462","title":{"rendered":"dylib on Mac and install_name_tool"},"content":{"rendered":"<p>dylib\uc744 \uc4f0\ub294 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4\uc5c8\uc744 \ub54c, \ucc38\uc870\ud558\ub294 lib path\uac00 \uc808\ub300 \uacbd\ub85c\ub85c \ub4e4\uc5b4\uac00 \uc560\uba39\ub294 \uacbd\uc6b0\uac00 \uc788\uc744\ub54c&#8230;<\/p>\n<p>install_name_tool -change {old path} {new path} {binary name}<\/p>\n<p>\ud558\uba74 library \ucc38\uc870 \uacbd\ub85c\ub97c \uc218\uc815\ud560 \uc218 \uc788\uc74c&#8230;<\/p>\n<pre>belliny-on-air:tcmalloctest1 belliny$ otool -L test\ntest:\n \/usr\/local\/lib\/libtcmalloc.4.dylib (compatibility version 6.0.0, current version 6.0.0)\n \/usr\/lib\/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)<\/pre>\n<pre>belliny-on-air:tcmalloctest1 belliny$ otool -L test\ntest:\n @executable_path\/lib\/libtcmalloc.4.dylib (compatibility version 6.0.0, current version 6.0.0)\n \/usr\/lib\/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)<\/pre>\n<p>&nbsp;<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/4677044\/how-to-use-dylib-in-mac-os-x-c<\/p>\n<p>http:\/\/ynniv.com\/blog\/2006\/02\/deploying-app-that-use-dylibs-on-mac.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>dylib\uc744 \uc4f0\ub294 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4\uc5c8\uc744 \ub54c, \ucc38\uc870\ud558\ub294 lib path\uac00 \uc808\ub300 \uacbd\ub85c\ub85c \ub4e4\uc5b4\uac00 \uc560\uba39\ub294 \uacbd\uc6b0\uac00 \uc788\uc744\ub54c&#8230; install_name_tool -change {old path} {new path} {binary name} \ud558\uba74 library \ucc38\uc870 \uacbd\ub85c\ub97c \uc218\uc815\ud560 \uc218 \uc788\uc74c&#8230; belliny-on-air:tcmalloctest1 belliny$ otool -L test test: \/usr\/local\/lib\/libtcmalloc.4.dylib (compatibility version 6.0.0, current version 6.0.0) \/usr\/lib\/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) belliny-on-air:tcmalloctest1 belliny$ otool -L test test: &hellip; <a href=\"https:\/\/www.belliny.net\/?p=462\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;dylib on Mac and install_name_tool&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-dev"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=462"}],"version-history":[{"count":0,"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts\/462\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}