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

Hey, monks. I hope this isn't off-topic, but has anyone successfully installed wxPerl? It looks like a really nice program, but so far I can only get it installed on Win32. When I try to make the module on Linux, it chokes on the STC.c file in about a million places. I downloaded and "make install"ed wxWindows before doing this, but I still get the errors. I even tried going back to 0.12 to see if an older version would compile - no gravy.

I'd appreciate it if anyone could tell me what I'm doing wrong. I've attached an excerpt of the errors at the bottoms of this post. I suspect it has something to do with the fact that STC.c is including a .cpp file, but I'm not sure.

TIA, Bill

`void XS_Wx__StyledTextCtrl_IndicatorGetStyle(CV*)': STC.c:638: invalid use of undefined type `struct wxStyledTextCtrl' cpp/st_typedef.h:20: forward declaration of `struct wxStyledTextCtrl' STC.c: In function `void XS_Wx__StyledTextCtrl_IndicatorSetForeground( +CV*)': STC.c:654: invalid use of undefined type `struct wxStyledTextCtrl' cpp/st_typedef.h:20: forward declaration of `struct wxStyledTextCtrl' STC.c: In function `void XS_Wx__StyledTextCtrl_SetWhitespaceForeground +(CV*)': STC.c:672: invalid use of undefined type `struct wxStyledTextCtrl' cpp/st_typedef.h:20: forward declaration of `struct wxStyledTextCtrl' STC.c: In function `void XS_Wx__StyledTextCtrl_SetWhitespaceBackground +(CV*)': STC.c:687: invalid use of undefined type `struct wxStyledTextCtrl' cpp/st_typedef.h:20: forward declaration of `struct wxStyledTextCtrl' make[2]: *** Deleting file `STC.o' make[2]: *** [STC.o] Interrupt make[1]: *** [subdirs] In

Replies are listed 'Best First'.
Re: Installing wxPerl
by PodMaster (Abbot) on May 25, 2003 at 06:17 UTC
    Did you read docs/install.txt?
    Try `perl Makefile.PL --help'


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: Installing wxPerl
by arthas (Hermit) on May 25, 2003 at 18:06 UTC
    Be aware of versions: the latest 0.15 only works with wxWindows 2.4, and there may be similar caveats in older ones as well.

    Visit the project's home page for more info: there's even a very good mailing list in which Mattia, the main author of wxPerl, can give you some advice.

    Michele.