Updated
[sdlgit/SDL-Site.git] / pages / blog-0024.html-inc
index 24e9bd3..84a740f 100644 (file)
@@ -1,32 +1,35 @@
 <div class="blog">
 <h1 id="NAME">
-Updates and Design Decisions
+Migrating Sol's Tutorial of SDL to SDL_Perl
 </h1>
 <div class="CONTENT">
-<div align="right"><i><br />
-Storm clouds loom,<br />
-Thunder cracks,<br />
-Lightning blinds,<br />
-Farmers rejoice.<br />
-</i></div><br />
-<b>Some quick updates:</b><br />
-After someone bugged me to update the Ohloh site for <a href="https://www.ohloh.net/p/sdlpl/">SDL perl</a>, I finally got around to doing it. <br />
+<div style="text-align: right;"><i>If I have seen further it is only by standing on the shoulders of giants. --Newton</i><br />
+</div><br />
+<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SwBpohYidDI/AAAAAAAAAB4/51y9QJh5osI/s1600-h/solsch2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_NnqjAQEn1Xo/SwBpohYidDI/AAAAAAAAAB4/51y9QJh5osI/s320/solsch2.png" /></a><br />
+</div><br />
+<h1><a href="http://sol.gfxile.net/gp/index.html">Sol's Tutorials</a> </h1><br />
+<p>When I was struggling with SDL C a while ago, someone recommended <a href="http://sol.gfxile.net/gp/index.html">Sol's Tutorial</a> to me. It had not only help me understand video in SDL, but I believe my code has improved using Sol's code style. I would like to pass these along to fellow SDL_Perl users too. So here is the <a href="http://github.com/kthakore/SDL_perl/blob/redesign/examples/sols/ch02.pl">Ch 02</a> code of Sol's Tutorial in SDL_Perl. It will be getting more and more Perly as our team hacks on it.  There is more to come!<br />
+</p><br />
+<p>To use this code you need the new Redesigned SDL_Perl Library </p><br />
+<h1>Getting SDL Dependencies </h1><br />
+Only If you are on Linux (debian/ubuntu) you need the following dependencies:<br />
 <br />
+<pre>$ sudo apt-get install libsdl-net1.2-dev libsdl-mixer1.2-dev libsmpeg-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev </pre><br />
+On Windows we recommend using <a href="http://strawberryperl.com/">Strawberry Perl</a>. It comes with SDL-1.2.13 header files and libs included.<br />
 <br />
-<b>Some good news:</b><br />
-v2.2.2.11 seems to be doing a good job considering it has been started to be picked up <a href="http://ftp.debian.org/pool/main/s/sdlperl/">Debian</a>, Mandriva and other packager maintainers. The <a href="http://search.cpan.org/dist/SDL_Perl/">stats</a> are currently at <span style="font-size: x-small;">[PASS(11) FAIL(6) NA(1) UNKNOWN(35)]</span>.<br />
+Both Windows and Linux needs to install Alien::SDL<br />
 <br />
-<b>Some OK news:</b><br />
-As you can see we have some fails occurring in the smoke tests. This is occurring due to the <a href="http://cpansearch.perl.org/src/KTHAKORE/SDL_Perl-v2.2.2.11/t/mixerpm.t">test</a> on Mixer.pm. Mixer.pm depends on a <a href="http://www.nntp.perl.org/group/perl.cpan.testers/2009/09/msg5250346.html">sound card being available</a> to the user running the test. This can be fixed by adjusting the test to check for sound cards before it runs but I am at a lost on how to do that.<br />
-In regards to the unknowns occurring it is due to the *nixes and macs not having SDL libs installed. The will be fixed when Alien::SDL downloads and compiles sources.<br />
+<pre>$ cpan Alien::SDL</pre>** Add sudo to this for Linux<br />
 <br />
-<b>Some not-so-great news:</b><br />
-Currently the XS code simplification work requires redesign and there are several different ways of redesigning. This may break backwards compatibility, hopefully we can work around this. Soon we will present the two arguments for the designs in the <a href="mailto:sdl-devel@perl.org">mailing list</a>. <br />
+<h1>Getting Bleeding SDL </h1><br />
+The bleeding SDL is on github.  Click download on this <a href="http://github.com/kthakore/SDL_perl/tree/redesign"> site </a>.<br />
 <br />
+Extract it and cd into the folder run <br />
+<pre>$ cpan . </pre>** The dot is needed <br />
+** in Linux you may need to do sudo<br />
 <br />
-Until next time here is&nbsp; a hint of something coming soon (credits go to garu):<br />
-<div class="separator" style="clear: both; text-align: center;"><a href="http://imgur.com/B0a1y.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="150" src="http://imgur.com/B0a1y.png" width="200" /></a></div><i><br />
-</i><br />
-<i>--yapgh</i><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-1014994097230880621?l=yapgh.blogspot.com' alt='' /></div>
-<p><a href="http://feedads.g.doubleclick.net/~a/BOYIwZZrq5SERTW7aLq2P2E7dVM/0/da"><img src="http://feedads.g.doubleclick.net/~a/BOYIwZZrq5SERTW7aLq2P2E7dVM/0/di" border="0" ismap="true"></img></a><br/>
-<a href="http://feedads.g.doubleclick.net/~a/BOYIwZZrq5SERTW7aLq2P2E7dVM/1/da"><img src="http://feedads.g.doubleclick.net/~a/BOYIwZZrq5SERTW7aLq2P2E7dVM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/YetAnotherPerlGameHackeryapgh/~4/Z0WxNnkomzg" height="1" width="1"/></div></div>
\ No newline at end of file
+Then you can run this script by doing<br />
+<br />
+<pre>$ perl examples/sols/ch02.pl </pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3102167581424744259-3277380868908060119?l=yapgh.blogspot.com' alt='' /></div>
+<p><a href="http://feedads.g.doubleclick.net/~a/bxmknqf-sayqUSokbyBxn8sn0KU/0/da"><img src="http://feedads.g.doubleclick.net/~a/bxmknqf-sayqUSokbyBxn8sn0KU/0/di" border="0" ismap="true"></img></a><br/>
+<a href="http://feedads.g.doubleclick.net/~a/bxmknqf-sayqUSokbyBxn8sn0KU/1/da"><img src="http://feedads.g.doubleclick.net/~a/bxmknqf-sayqUSokbyBxn8sn0KU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/YetAnotherPerlGameHackeryapgh/~4/P3w_zMpGuB8" height="1" width="1"/></div></div>
\ No newline at end of file