Re: Build test failing, not finding SDL modules in it's INC

[email protected] (falsedan)
Newsgroups perl.sdl.devel
Message-ID <[email protected]>
Hi Koaps,

Looks like the bootstrap file for SFont is being put into
blib/arch/auto/src/SDL/SFont/, when it should be in
blib/arch/auto/SDL/SFont/

run './Build clean', then edit Build.PL to change 'src' to 'lib' on
the following lines:
37c37
< 			to    => 'src/SDL_perl.xs',
---
> 			to    => 'lib/SDL_perl.xs',
45c45
< 			to   => 'src/SDL/OpenGL.xs',
---
> 			to   => 'lib/SDL/OpenGL.xs',
52c52
< 			to   =>	'src/SDL/SFont.xs',
---
> 			to   =>	'lib/SDL/SFont.xs',

and add an extra argument after 'my $build   = SDL::Build->new('
135a136
> 	include_dirs         => [ 'src', 'src/SDL', ],

then run 'perl Build.PL; ./Build; perm t/apppm.t' and let us know if
the test passes.

Hope this helps! It has been ages since I've examined SDL_perl's build file.

falsedan


2009/4/2 Koaps <[email protected]>:
>
> Hi,
>
> I'm trying to do the Build test stage of making the SDL_Perl module on my Ubuntu 8.04 Hardy.
>
> I get the following fail, and similar ones for other missing modules:
>
> root@S:~/SDL/SDL_Perl-2.1.3# ./Build test
> t/apppm..............1/2
> #   Failed test 'use SDL::App;'
> #   at t/apppm.t line 19.
> #     Tried to use 'SDL::App'.
> #     Error:  Can't locate loadable object for module SDL::SFont in @INC (@INC contains: blib/lib blib/arch /root/SDL/SDL_Perl-2.1.3/blib/lib /root/SDL/SDL_Perl-2.1.3/blib/arch make/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at blib/lib/SDL/Surface.pm line 12
> # Compilation failed in require at blib/lib/SDL/Surface.pm line 12.
> # BEGIN failed--compilation aborted at blib/lib/SDL/Surface.pm line 12.
> # Compilation failed in require at blib/lib/SDL/App.pm line 12.
> # BEGIN failed--compilation aborted at blib/lib/SDL/App.pm line 12.
> # Compilation failed in require at (eval 3) line 2.
> # BEGIN failed--compilation aborted at (eval 3) line 2.
>
> Because I haven't installed SDL_Perl yet I don't expect to find it in most the locations it's looking, but the two it should find stuff in:
>
>        /root/SDL/SDL_Perl-2.1.3/blib/lib
>        /root/SDL/SDL_Perl-2.1.3/blib/arch
>
> It does not find the modules.
>
> Here's the dir listings for the two paths above:
>
> root@Spanky:~/SDL/SDL_Perl-2.1.3/blib/lib# ls -l
> total 24
> drwxr-xr-x 5 root root  4096 2009-04-02 10:57 SDL
> -r--r--r-- 1 root root   134 2009-04-02 10:57 SDL_perl.pm
> -r--r--r-- 1 root root 14144 2009-04-02 10:57 SDL.pm
>
>
> root@Spanky:~/SDL/SDL_Perl-2.1.3/blib/lib/SDL# ls -l
> total 128
> -r--r--r-- 1 root root  7757 2009-04-02 10:57 App.pm
> -r--r--r-- 1 root root  2989 2009-04-02 10:57 Cdrom.pm
> -r--r--r-- 1 root root  3294 2009-04-02 10:57 Color.pm
> -r--r--r-- 1 root root  3098 2009-04-02 10:57 Config.pm
> -r--r--r-- 1 root root  9917 2009-04-02 10:57 Constants.pm
> -r--r--r-- 1 root root  2073 2009-04-02 10:57 Cursor.pm
> -r--r--r-- 1 root root  4903 2009-04-02 10:57 Event.pm
> -r--r--r-- 1 root root   922 2009-04-02 10:57 Font.pm
> -r--r--r-- 1 root root  7250 2009-04-02 10:57 Mixer.pm
> -r--r--r-- 1 root root  2170 2009-04-02 10:57 MPEG.pm
> -r--r--r-- 1 root root   736 2009-04-02 10:57 Music.pm
> drwxr-xr-x 2 root root  4096 2009-04-02 10:57 OpenGL
> -r--r--r-- 1 root root  2146 2009-04-02 10:57 OpenGL.pm
> -r--r--r-- 1 root root  2294 2009-04-02 10:57 Palette.pm
> -r--r--r-- 1 root root  1621 2009-04-02 10:57 Rect.pm
> -r--r--r-- 1 root root   487 2009-04-02 10:57 SFont.pm
> -r--r--r-- 1 root root   909 2009-04-02 10:57 Sound.pm
> -r--r--r-- 1 root root 12384 2009-04-02 10:57 Surface.pm
> -r--r--r-- 1 root root  1894 2009-04-02 10:57 Timer.pm
> drwxr-xr-x 2 root root  4096 2009-04-02 10:57 Tool
> -r--r--r-- 1 root root  3367 2009-04-02 10:57 TTFont.pm
> drwxr-xr-x 2 root root  4096 2009-04-02 10:57 Tutorial
> -r--r--r-- 1 root root  3224 2009-04-02 10:57 Tutorial.pm
> -r--r--r-- 1 root root  3699 2009-04-02 10:57 Video.pm
>
>
> root@Spanky:~/SDL/SDL_Perl-2.1.3/blib/arch# ls -l auto/src/SDL/SFont/SFont.so
> -rwxr-xr-x 1 root root 18304 2009-04-02 10:57 auto/src/SDL/SFont/SFont.so
>
>
> Seems to me it should find something.
>
> Any help would be great,
> -thanks Chris.
>
>
>
>
>



-- 

Voyages of Othere and Wulfstan, in summary: WE DID NOT KNOW WHAT WAS
NORTH SO WE WENT NORTH AND THERE WERE SEALS. HOLY SHIT SEALS! ALSO
FINNS AND THEY PAID TRIBUTE TO THE BEORMAS. ALSO WHALES.

  -- Adilegian, http://forums.selectbutton.net/viewtopic.php?p=132776#132776
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.