Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Compiling Curses in OS X for Perl

Reply
Thread Tools

Compiling Curses in OS X for Perl

 
 
Pacman
Guest
Posts: n/a
 
      09-17-2003


A note to anyone wanting to get Curses to compile under OS X 10.2.6.
I had to make some changes to the standard c-config.h hints file, the
old 'darwin' one does not work due to conflicts between some perl
definitions and curses.h definitions namely:

instr
bool
FIELD

here's the c-config.h file I altered:

/* Hint file for the darwin platform.
*
* If this configuration doesn't work, look at the file "c-none.h"
* for how to set the configuration options.
*/


#include <curses.h>

#ifdef C_PANELSUPPORT
#include <panel.h>
#endif

#ifdef C_MENUSUPPORT
#include <menu.h>
#endif

/* OK this is hackish, but it solves the problem. */
#ifdef C_FORMSUPPORT
#include "/usr/include/form.h"
#endif

/* FIX: OS X longname only takes 0 args now */
#define C_LONGNAME
#define C_LONG0ARGS
#undef C_LONG2ARGS

/* FIX: OS X touchline is now 3 args */
#define C_TOUCHLINE
#define C_TOUCH3ARGS
#undef C_TOUCH4ARGS

/* These both get defined in curses.h and then redefined later in
Perl.h */
#undef instr
#undef bool

P-

--
#############
Imagination is more important than knowledge - A. Einstein
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling perl? perl?? Mark Seger Perl Misc 3 12-01-2006 02:25 AM
Re: Replacing curses (Was: Re: Problem with curses and UTF-8) Jean-Paul Calderone Python 2 02-09-2006 08:29 AM
Curses won't build under Perl 5.8 mailbox@cpacker.org Perl Misc 4 08-24-2005 03:08 PM
switching to extended character set using curses & perl someone92@hotmail.com Perl Misc 4 01-25-2005 06:25 AM
Compiling Perl to exe with Active State Perl Maciej Kozinski Perl 0 11-28-2003 11:48 AM



Advertisments