X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0024.html-inc;h=84a740ff4f425ede40b97567d59b2b37c0970fbf;hb=a05e5d4499fb58198e463162d0385e8a156e1f03;hp=3ac3dc1eb721287ce662d03b2b0099706ebb7531;hpb=6e0d970b5047980a17d230b86d5c27c49213d18c;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0024.html-inc b/pages/blog-0024.html-inc index 3ac3dc1..84a740f 100644 --- a/pages/blog-0024.html-inc +++ b/pages/blog-0024.html-inc @@ -1,6 +1,35 @@

-SDL perl is coming to Strawberry!! +Migrating Sol's Tutorial of SDL to SDL_Perl

-
I am a part of all that I have met. --Alfred Tennyson
 
I hope I am not jumping the gun but it looks good.  This is all thanks to kmx!!

Here is an obligatory pic since my last post on this matter. (That is one of the test script you can run for test/ in the distrobution).



You can follow the history here.

It has been tested on winXP 32/64 bit strawberry so far. Here is how you can get it.

  1. Go here to get the code 
  2. Click download, choose .tar.gz
  3. Save the resultant kthakore....tar.gz somewhere
  4. Get this and extract it on C:/strawberry/
  5. Last do pip kthakore......tar.gz (I find this so amazing!!)
  6. Play with C:/strawberry/cpan/build/SDL/test/*.pl 
Enjoy
--yapgh
\ No newline at end of file +
If I have seen further it is only by standing on the shoulders of giants. --Newton
+

+

+

+

Sol's Tutorials


+

When I was struggling with SDL C a while ago, someone recommended Sol's Tutorial 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 Ch 02 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!
+


+

To use this code you need the new Redesigned SDL_Perl Library


+

Getting SDL Dependencies


+Only If you are on Linux (debian/ubuntu) you need the following dependencies:
+
+
$ 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 

+On Windows we recommend using Strawberry Perl. It comes with SDL-1.2.13 header files and libs included.
+
+Both Windows and Linux needs to install Alien::SDL
+
+
$ cpan Alien::SDL
** Add sudo to this for Linux
+
+

Getting Bleeding SDL


+The bleeding SDL is on github. Click download on this site .
+
+Extract it and cd into the folder run
+
$ cpan . 
** The dot is needed
+** in Linux you may need to do sudo
+
+Then you can run this script by doing
+
+
$ perl examples/sols/ch02.pl 
+


+

\ No newline at end of file