{"id":1701,"date":"2007-06-07T01:51:20","date_gmt":"2007-06-06T16:51:20","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2007\/06\/07\/mingw_cross_compiler_on_macos\/"},"modified":"2007-06-07T01:51:20","modified_gmt":"2007-06-06T16:51:20","slug":"mingw_cross_compiler_on_macos","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2007\/06\/07\/1701\/","title":{"rendered":"MinGW cross compiler on MacOS X"},"content":{"rendered":"<p>\u3044\u307e\u307e\u3067\u3001<a href=\"http:\/\/murasaki.dna.bio.keio.ac.jp\/gmv.html\">GMV<\/a> \u306e Windows \u7528\u306e\u30d0\u30a4\u30ca\u30ea\u3092 build \u3059\u308b\u306b\u306f VMware \u306e\u4e0a\u306e Windows \u3092\u4f7f\u3063\u3066\u305f\u3093\u3060\u3051\u3069\u3001\u3084\u3063\u3071\u308a\u9762\u5012\u306a\u306e\u3067 MacOS \u304b\u3089\u306a\u3093\u3068\u304b\u3057\u305f\u3044\u3001\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u307f\u305f\u3002MacOS X \u30d0\u30a4\u30ca\u30ea\u3068\u3001\u30bd\u30fc\u30b9\u306e snapshot \u306f script \u4e00\u767a\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u305f\u306e\u3067\u3001\u3053\u308c\u3067 Windows \u7248\u3082\u30b3\u30de\u30f3\u30c9\u4e00\u767a\u3060\uff01<br \/>\ninstall prefix \u306f \/Users\/yasu\/mingw<br \/>\n\u5c55\u958b\u3057\u305f\u30a2\u30fc\u30ab\u30a4\u30d6:<br \/>\ncd ~\/mingw<br \/>\ntar xvf ~\/compile\/w32api-3.9.tar<br \/>\ntar xvf ~\/compile\/mingw-runtime-3.12.tar<br \/>\nstdio.h \u3068\u304b\u306f mingw-runtime \u306b\u5165\u3063\u3066\u308b\u3093\u3067\u3059\u306d\u3002<br \/>\n\/usr\/include \u304c\u306a\u3044\u306e\u3067\u3001\u6012\u3089\u308c\u306a\u3044\u3088\u3046\u306b\u30ea\u30f3\u30af\u3002<br \/>\nmkdir usr<br \/>\ncd usr<br \/>\nln -s ..\/include .<br \/>\nbinutils \u4f5c\u308b:<br \/>\n..\/binutils-2.17\/configure &#8211;prefix=\/Users\/yasu\/mingw &#8211;target=i386-pc-mingw32<br \/>\nbinutils \u306e\u5165\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b include \u3063\u3066\u5fc5\u8981? (\u3088\u304f\u308f\u304b\u3089\u3093\u3061\u3093)<br \/>\ncd ~\/mingw\/i386-pc-mingw32<br \/>\nln -s ..\/include .<br \/>\ngcc \u3064\u304f\u308b\u305c\u30fc:<br \/>\nset path = ( ~\/mingw\/bin $path )<br \/>\n..\/gcc-4.0.4\/configure &#8211;with-gcc &#8211;with-gnu-ld &#8211;with-gnu-as &#8211;host=i386-apple-darwin8.9.1 &#8211;target=i386-pc-mingw32 &#8211;prefix=\/Users\/yasu\/mingw &#8211;enable-threads &#8211;disable-nls &#8211;enable-languages=c,c++ &#8211;disable-win32-registry &#8211;disable-shared &#8211;enable-sjis-exceptions  &#8211;with-sysroot=\/Users\/yasu\/mingw<br \/>\n\u3053\u308c\u3060\u3068<br \/>\nchecking main in -lm&#8230; configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.<br \/>\n\u3068\u3044\u308f\u308c\u308b\u3002libm \u304c\u306a\u3044\u3068\u304b\u3001\u305d\u3046\u3044\u3046\u554f\u984c\u3058\u3083\u306a\u304f\u3066\u3001\u305f\u3060\u5358\u306b\u6b63\u3057\u3044 linker \u304c\u547c\u3073\u51fa\u305b\u3066\u3044\u306a\u3044\u3068\u304b\u3001\u305d\u3046\u3044\u3046\u611f\u3058\u3063\u307d\u3044\u3002\u3067\u3001\u7d50\u5c40\u3001&#8211;with-sysroot \u3067\u306f\u306a\u304f\u3066 &#8211;with-{headers,libs,build-time-tools} \u3092\u4f7f\u3063\u305f\u3002<br \/>\n..\/gcc-4.0.4\/configure &#8211;with-gcc &#8211;with-gnu-ld &#8211;with-gnu-as &#8211;host=i386-apple-darwin8.9.1 &#8211;target=i386-pc-mingw32 &#8211;prefix=\/Users\/yasu\/mingw &#8211;enable-threads &#8211;disable-nls &#8211;enable-languages=c,c++ &#8211;disable-win32-registry &#8211;disable-shared &#8211;enable-sjis-exceptions &#8211;with-headers=\/Users\/yasu\/mingw\/include &#8211;with-libs=\/Users\/yasu\/mingw\/lib &#8211;with-build-time-tools=\/Users\/yasu\/mingw\/bin<br \/>\n\u3084\u3063\u305f\u305c\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u307e\u307e\u3067\u3001GMV \u306e Windows \u7528\u306e\u30d0\u30a4\u30ca\u30ea\u3092 build \u3059\u308b\u306b\u306f VMware \u306e\u4e0a\u306e Windows \u3092\u4f7f\u3063\u3066\u305f\u3093\u3060\u3051\u3069\u3001\u3084\u3063\u3071\u308a\u9762\u5012\u306a\u306e\u3067 MacOS \u304b\u3089\u306a\u3093\u3068\u304b\u3057\u305f\u3044\u3001\u3068\u601d\u3063\u3066\u3084\u3063\u3066\u307f\u305f\u3002MacOS X &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2007\/06\/07\/1701\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;MinGW cross compiler on MacOS X&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":[6],"tags":[],"class_list":["post-1701","post","type-post","status-publish","format-standard","hentry","category-unix-"],"_links":{"self":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1701","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=1701"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1701\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}