{"id":2234,"date":"2009-01-02T19:07:37","date_gmt":"2009-01-02T10:07:37","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2009\/01\/02\/gtk-2146_win32_cross_build_env\/"},"modified":"2009-01-02T19:07:37","modified_gmt":"2009-01-02T10:07:37","slug":"gtk-2146_win32_cross_build_env","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2009\/01\/02\/2234\/","title":{"rendered":"GTK+-2.14.6 \/ Win32 cross build environment on MacOS X"},"content":{"rendered":"<p>I also have to have GTK\/Windows building environment&#8230; I have an old one on my MacBook, but I decided to make a new environment on my MacBook (with Leopard \/ Core2Duo processor) from scratch.<br \/>\n[ Prepare ]<br \/>\nHere&#8217;s what I&#8217;ve downloaded.<br \/>\n&#8211; MinGW runtime (mingwrt-3.15.1-mingw32.tar.gz)<br \/>\n&#8211; MinGW Win32 API (w32api-3.13-mingw32-dev.tar.gz)<br \/>\n&#8211; Win32 developer&#8217;s all-in-one bundle from <a href=\"http:\/\/www.gtk.org\/download-windows.html\">GTK Website here<\/a>.<br \/>\n&#8211; binutils-2.19.tar.bz2, gcc-core-4.2.4.tar.bz2, gcc-g++-4.2.4.tar.bz2<br \/>\n[ Unpack basic packages ]<br \/>\n% cd mingw<br \/>\n% tar xzf archives\/mingwrt-3.15.1-mingw32.tar.gz<br \/>\n% tar xzf archives\/w32api-3.13-mingw32-dev.tar.gz<br \/>\n[ Unpack GTK ]<br \/>\n% mkdir GTK<br \/>\n% cd GTK<br \/>\n% unzip ..\/archives\/gtk+-bundle_2.14.6-20081216_win32.zip<br \/>\nFix pkg-config .pc files for my directory configuration:<br \/>\n% cd GTK\/lib\/pkgconfig<br \/>\n% foreach i ( *.pc )<br \/>\nforeach? sed -e &#8220;\/^prefix\/c\\\\<br \/>\nprefix=\/Users\/yasu\/mingw\/GTK&#8221; -i \\~ $i<br \/>\nforeach? end<br \/>\n[ build binutils ]<br \/>\nI did this at outside my mingw root.<br \/>\n% mkdir build-binutils-2.19<br \/>\n% cd build-binutils-2.19\/<br \/>\n% ..\/binutils-2.19\/configure &#8211;prefix=\/Users\/yasu\/mingw &#8211;target=i386-pc-mingw32<br \/>\n% make &#038;&#038; make install<br \/>\n[ build gcc + g++ ]<br \/>\n% mkdir build-gcc-4.2.4<br \/>\n% cd build-gcc-4.2.4<br \/>\n% ..\/gcc-4.2.4\/configure &#8211;program-prefix=i386-pc-mingw32- &#8211;program-suffix=-4.2.4 &#8211;with-gcc &#8211;with-gnu-ld &#8211;with-gnu-as &#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% make &#038;&#038; make install<br \/>\nThis may require automake, autoconf and bison. I have them build with <a href=\"http:\/\/www.macports.org\/\">MacPorts<\/a>.<br \/>\nI hope all these stuff work, but I&#8217;m not tested yet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I also have to have GTK\/Windows building environment&#8230; I have an old one on my MacBook, but I decided to  &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2009\/01\/02\/2234\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;GTK+-2.14.6 \/ Win32 cross build environment 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":[9,6],"tags":[],"class_list":["post-2234","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\/2234","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=2234"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2234\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}