Schrift
[thread]5455[/thread]

Probleme bei SDL-Installation: "Environment variable INCLUDE is empty"



<< >> 1 Eintrag, 1 Seite
pktm
 2005-03-10 21:14
#49188 #49188
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
Hallo!

Wenn ich bei mir Perl-SDL installieren möchte erhalte ich folgende Meldung:
Quote
Environment variable INCLUDE is empty


Das Build.PL - File zum Modul sieht so aus:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/Perl/bin/perl

# copyright (c) 2003 chromatic
# copyright (c) 2004 David J. Goehrig

use strict;
use warnings;
use lib 'build_lib';

use SDL::Build;

# need the platform-specific module to find include paths correctly
# see build/lib/SDL/Build/*pm
my $arch = SDL::Build->get_arch( $^O );
my $subsystems = $arch->subsystems();
my $libraries = $arch->libraries();

# see which subsystems to build -- do we have headers for them?
my $build_systems = $arch->find_subsystems( $subsystems, $libraries );

# now write SDL::Config
$arch->write_sdl_config( $build_systems );

# and fetch all of the information needed to compile
my $defines = $arch->build_defines( $libraries, $build_systems );
my $includes = $arch->build_includes( $libraries, $build_systems );
my $links = $arch->build_links( $libraries, $build_systems );

# mangle the compilable files into a format Module::Build can understand
my %xs = map { $subsystems->{$_}{file}{from} => $subsystems->{$_}{file}{to} }
keys %$subsystems;

my $build = $arch->new(
dist_name => 'SDL_Perl',
dist_author => 'David J. Goehrig <DGOEHRIG@cpan.org>',
dist_version_from => 'lib/SDL.pm',
license => 'lgpl',
build_requires =>
{
'Test::Simple' => '0.47',
},
build_recommends =>
{
'Pod::ToDemo' => '0.20',
},
xs_files => \%xs,
);

# and here's where the real (and ugly) magic works... see SDL::Build
$build->set_flags(
$subsystems,
$build_systems,
$defines,
$includes,
$links,
);

# now we're ready to go!
$build->create_build_script();


Was kann ich tun?
mfg pktm
http://www.intergastro-service.de (mein erstes CMS :) )
<< >> 1 Eintrag, 1 Seite



View all threads created 2005-03-10 21:14.