Re: [Perldl] PDL image to SDL::Surface

[email protected] ("Sisyphus") Tue, 25 Sep 2012 08:36:06 +1000
Newsgroups perl.sdl.devel
Message-ID <094FC093E3AD45108E595B831E3ED104@desktop2>
----- Original Message ----- 
From: "Chris Marshall" <[email protected]>
To: "Kartik Thakore" <[email protected]>
Cc: "Tobias Leich" <[email protected]>; "sdl-devel" <[email protected]>
Sent: Tuesday, September 25, 2012 2:46 AM
Subject: Re: [Perldl] PDL image to SDL::Surface


> Hi Kartik-
>
> I don't have a working SDL module install that I could
> check things out on.

Hi guys,

Chris, 'cpan -fi SDL' should install SDL-2.54 on your SPP. (You need force 
because a couple of the SDL tests fail.)
During the 'perl build.pl' stage of Alien::SDL you'll be prompted to select 
which library package to install. I took option 1 because it was 
"RECOMMENDED", though option 2 is probably more recent.

I've run the demo at https://gist.github.com/3772701 but that just produces:

C:\_32\pscrpt\pdl>perl pdl2surface.pl
No available video device at C:/_32/strawberry516/perl/site/lib/SDLx/App.pm 
line 123, <DATA> line 206.
SDLx::App::new('SDLx::App', 'title', 'PDL and SDL aplication', 'width', 640, 
'height', 640, 'eoq', 1, ...) called at pdl2surface.pl line 12

And same error for
 https://github.com/PerlGameDev/SDL_Manual/blob/master/code_listings/pdl.pl

I don't know what needs to be done in order that a "video device" becomes 
available. (I'm probably not the sharpest tool in the shed to be using for 
this ;-)

Cheers,
Rob