{"author_name":"noffle","cat":"LD #22","comments":[],"epoch":1324348320,"likes":0,"metadata":{"p_key":"60221","p_author":"noffle","p_authorkey":"7577","p_urlkey":"95974","p_title":"Porting woes.","p_cat":"LD #22","p_event":"LD22","p_time":"1324348320","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"7577","us_name":"noffle","us_username":"noffle","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>It&#8217;s done!! If you are running Linux, go <a href=\"http:\/\/www.ludumdare.com\/compo\/ludum-dare-22\/?action=rate&amp;uid=7577\">ahead and play<\/a>. As for the other platforms..<\/p>\n <p>Two and a half hours after the jam has ended, and I&#8217;m still trying to get my game working on the three Big Ones. Ungh &#8212; it&#8217;s painful. I&#8217;m using C++ with Allegro and Chipmunk.<\/p>\n <p><strong>Linux:<\/strong>\u00a0Done. Not too bad. I didn&#8217;t have a statically linked copy of Allegro, so I&#8217;m including the Allegro shared lib, hackishly setting \u00a0LD_LIBRARY_PATH, and relying on users to run a &#8220;run_game.sh&#8221; script that sets the env var and runs the game. Does anyone know how to nicely distribute a game that relies on a shared lib?<\/p>\n <p><strong>OS X:<\/strong>\u00a0More or less done. Figuring out how to package things into a .app was painful. THEN figuring out how to put the .app inside of a .dmg was even more &#8220;fun&#8221; (<a href=\"https:\/\/github.com\/andreyvit\/yoursway-create-dmg\">thanks though<\/a>, guys). The other fun news is that Allegro relies on QuickDraw, an older OS X API for doing software rendering. It was deprecated (but functional) in Snow Leopard, but trying to run it on a Lion machine reveals that support was dropped entirely. So, on Lion machines, the game will toss a bus error when run in fullscreen. *grumblegrumble* Fine then. Since I can&#8217;t even catch the failure gracefully, Mac users will have to settle for a windowed version.<\/p>\n <p><strong>Windows:<\/strong>\u00a0About to start on it, but I suspect it will be more of the same awful. I didn&#8217;t see any nice binaries for Chipmunk lying around, so I suspect I&#8217;ll need to compile that myself using some arcane MinGW IDE like Dev-C++ or Code::Blocks.<\/p>\n <p>Next year I&#8217;m either going to use Java, or invest some time making a set of scripts to automate at least some of these cross-platform chores.<\/p>\n <p>&nbsp;<\/p>\n <p>&nbsp;<\/p>","time":"December 19th, 2011 9:32 pm","title":"Porting woes."}