Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

cygwin, perl, sdl and problems with cpan

by parasew (Beadle)
on Jan 06, 2003 at 02:30 UTC ( [id://224516]=perlquestion: print w/replies, xml ) Need Help??

parasew has asked for the wisdom of the Perl Monks concerning the following question:

there were already some threads on perlmonks about cygwin, but actually i still have problems using perl (5.8) and especially SDL, PDL on a windowsXP machine. i am planning to develop SDL and perl-tk applications which will run on a linux machine later.
this issue was discussed on the cygwin mailinglist before.
actually cpan doesn't make any trouble, it just looks like SDL,PDL and some other libraries make troubles. installing the modules by hand (perl Makefile.pl && make && make install) works for some, but not for the main modules, i want to install...

SDL_perl
syntax error at Makefile.win32 line 33, near ");"
PDL
cpoly.c:12:20: values.h: No such file or directory cpoly.c: In function `mcon': cpoly.c:753: `MINDOUBLE' undeclared (first use in this function) cpoly.c:753: (Each undeclared identifier is reported only once cpoly.c:753: for each function it appears in.) cpoly.c:754: `MAXDOUBLE' undeclared (first use in this function) make[2]: *** [cpoly.o] Fehler 1 make[2]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/perl-cygwi +n-modules/ __additional/PDL-2.3.4/Basic/Math« make[1]: *** [subdirs] Fehler 2 make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/perl-cygwi +n-modules/ __additional/PDL-2.3.4/Basic« make: *** [subdirs] Fehler 2
anyone here has this modules running on cygwin?

Replies are listed 'Best First'.
Re: cygwin, perl, sdl and problems with cpan
by PodMaster (Abbot) on Jan 06, 2003 at 03:03 UTC
    cygwin is not windows. I don't know what the docs say, but Makefile.win32 should not apply to cygwin.

    Now, actually looking at and realizing that it's perl code, it's missing a ) at line 33 right before );.

    You should submit a patch for the makefile, as it's code that doesn't compile.

    update: Further examination of Makefile.win32 reveals

    
    #
    # Windows configuration detection
    #  ( Cywin for unsupported, currently only VC++ 6 )
    #
    
    
    update: Looking at ftp://sdlperl.org/SDL_perl/win32/readme.win32.txt I gotta say i'm rather disgusted.


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: cygwin, perl, sdl and problems with cpan
by emcb (Beadle) on Jan 06, 2003 at 06:42 UTC

    I've managed to get past the error's with these patches. I've created a new file Makefile.cygwin based upon Makefile.netbsd. As long as you have everything else you need you should be able to build the SDL:: module.

    < Makefile.PL.diff >

    --- Makefile.PL 2003-01-06 06:25:03.000000000 +0000 +++ Makefile.PL.new 2003-01-06 06:24:45.000000000 +0000 @@ -9,4 +9,5 @@ win => "Makefile.win32", freebsd => "Makefile.freebsd", + cygwin => "Makefile.cygwin", );

    < Makefile.cygwin.diff >

    --- Makefile.netbsd 2003-01-06 06:13:44.000000000 +0000 +++ Makefile.cygwin 2003-01-06 06:18:47.000000000 +0000 @@ -1,3 +1,3 @@ -#!/usr/bin/env perl +#!/usr/bin/perl -w use strict; @@ -24,7 +24,7 @@ $sdl_libs =~ s/-Wl,-rpath,(\/usr\/pkg)*\ @dirs=( - '/usr/pkg/include', - '/usr/pkg/include/SDL', - '/usr/pkg/include/smpeg', + '/usr/include', + '/usr/include/SDL', + '/usr/include/smpeg', '/usr/X11R6/include', '/usr/X11R6/include/GL', @@ -88,4 +88,5 @@ if ( $ext{GLU}{exists} ) { my %options = ( + 'PERL' => '/usr/bin/perl', 'NAME' => 'SDL_perl', 'VERSION_FROM' => 'SDL.pm',

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://224516]
Approved by pfaut
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found