{"id":55,"date":"2010-02-02T09:22:29","date_gmt":"2010-02-02T13:22:29","guid":{"rendered":"http:\/\/www.joshmatthews.net\/blog\/?p=55"},"modified":"2010-02-02T09:22:29","modified_gmt":"2010-02-02T13:22:29","slug":"cross-compiling-with-mingw-on-fedora","status":"publish","type":"post","link":"https:\/\/www.joshmatthews.net\/blog\/2010\/02\/cross-compiling-with-mingw-on-fedora\/","title":{"rendered":"Cross-compiling with MinGW on Fedora"},"content":{"rendered":"<p>My goodness, I&#8217;m impressed.  Having <a href=\"http:\/\/www.digitalmzx.net\/forums\/index.php?showtopic=14776&#038;hl=\">released<\/a> the first iteration of my robotic debugger, I was informed that the fork()\/exec() combo isn&#8217;t portable to Windows.  Nobody volunteered any patches immediately, so I decided to read up on cross-compiling since I really dislike having to reboot into my other partition.  Turns out that the entire MinGW stack has been packaged up for Fedora, meaning that all I had to do in the end was:<br \/>\n<code># yum install mingw32-gcc mingw32-gcc-c++ mingw32-libpng mingw32-SDL<br \/>\n$ mingw32-make -j2<\/code><\/p>\n<p>It wasn&#8217;t quite that easy &#8211; since Megazeux uses a non-standard configure script, I had to correct a few faulty assumptions.  I never figured out the correct way to use <\/p>\n<pre>\/usr\/i686-pc-mingw32\/sys-root\/mingw\/bin\/sdl-config<\/pre>\n<p> instead of the default one, so that got hardcoded somewhere.  Also, Megazeux relies on libogg and libvorbis, which haven&#8217;t been pushed to the fedora repository yet (packaging limbo ahoy!), but I was able to grab some rpms that the mingw32 packager helpfully left lying around.  All in all, a very successful and satisfying experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My goodness, I&#8217;m impressed. Having released the first iteration of my robotic debugger, I was informed that the fork()\/exec() combo isn&#8217;t portable to Windows. Nobody volunteered any patches immediately, so I decided to read up on cross-compiling since I really &hellip; <a href=\"https:\/\/www.joshmatthews.net\/blog\/2010\/02\/cross-compiling-with-mingw-on-fedora\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,18,23,22],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-code","category-fedora","category-megazeux","category-projects"],"_links":{"self":[{"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":1,"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshmatthews.net\/blog\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}