{"id":519,"date":"2013-07-07T18:29:13","date_gmt":"2013-07-07T09:29:13","guid":{"rendered":"https:\/\/fugutabetai.com\/blog\/2013\/07\/07\/lets-try-to-build-gemrb-for-android-on-mac-osx\/"},"modified":"2013-07-07T18:29:13","modified_gmt":"2013-07-07T09:29:13","slug":"lets-try-to-build-gemrb-for-android-on-mac-osx","status":"publish","type":"post","link":"https:\/\/fugutabetai.com\/blog\/2013\/07\/07\/lets-try-to-build-gemrb-for-android-on-mac-osx\/","title":{"rendered":"Let&#8217;s try to build gemrb for android on Mac OSX"},"content":{"rendered":"<p>I&#8217;ve been playing Baldur&#8217;s Gate with <a href=\"http:\/\/www.gemrb.org\/wiki\/doku.php?id=start\">GemRB<\/a> lately.  <\/p>\n<p>I have found it to be pretty unstable on my Kindle Fire HD 8.9&#8243;, so I want to try to run it under a debugger and see where it crashes.  My first step is to try to get the code locally and build it.<\/p>\n<p>I&#8217;ll need <a href=\"http:\/\/code.google.com\/p\/git-osx-installer\/\">GIT<\/a> for that and heard that the Git OSX Installer is a reasonable way to get GIT for Mac. So I&#8217;ve installed that.  <\/p>\n<p>I had to set up a <a href=\"http:\/\/github.com\/\">Github<\/a> account (as FuguTabetai) and add SSH keys to that.  Once I did that though, I was able to clone the repository (on my personal MacBook, ~\/Documents\/workspace):<\/p>\n<p>$ git clone git@github.com:gemrb\/gemrb.git<\/p>\n<p>So now I have the code locally.  The question is, now what to do with it.  Let me take a look around. The android subdir has a great README setting out what I need to build.  That includes the android-sdk (already installed due to playing around with that a few weeks ago) but I&#8217;ll need to get android-ndk, mercurial (apparently) as well.  Including stuff from the gemrb, I will probably also need to get cmake, make, g++, and a bunch of libraries: Zlib, Python 2.3, SDL 1.2, OpenAL, SDL_Mixer, libpng, FreeType, iconv, libVLC 2.0+.<\/p>\n<p>Wow, this might take a while to get going.  I have used fink in the past, but it looks like right now that is hosed.  I think it would be nice to install MacPorts, but that needs the command line tools for developers to be installed.  I can only find downloads for that for Mountain Lion or Lion.  I&#8217;m on Snow Leopard.  I found that <a href=\"http:\/\/www.moncefbelyamani.com\/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac\/\">I can download Xcode 4.2 for Snow Leopard<\/a> and that includes the command line tools.  So I&#8217;ll do that.  I think I&#8217;ll need to upgrade to a newer OSX version at some point soon though.  <\/p>\n<p>I&#8217;m trying to do this so I can install MacPorts, and from there the other libraries that I need to build gemrb.  I think this is going to take a while &#8211; I have to at least wait for the 1.8GB Xcode download to finish over the hotel internet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been playing Baldur&#8217;s Gate with GemRB lately. I have found it to be pretty unstable on my Kindle Fire HD 8.9&#8243;, so I want to try to run it under a debugger and see where it crashes. My first step is to try to get the code locally and build it. I&#8217;ll need GIT [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts\/519"}],"collection":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/comments?post=519"}],"version-history":[{"count":0,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts\/519\/revisions"}],"wp:attachment":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/media?parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/categories?post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/tags?post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}