[asterisk-dev] Re: can't link to libncurses in 'other' locations

snowcrash+asterisk-dev schneecrash+asterisk-dev at gmail.com
Sat Jan 6 13:52:01 MST 2007


looking thru the code, i believe this is a result of the locations
search for the include files.

in the default distro,

/usr/include  > ls -al *curses*
  -rw-r--r-- 1 root wheel 70873 2006-09-11 19:23 curses.h
  lrwxr-xr-x 1 root wheel     8 2006-11-01 07:20 ncurses.h -> curses.h
  -rw-r--r-- 1 root wheel  1559 2006-09-11 19:23 ncurses_dll.h

but for an ncurses install target of,

 --prefix=/usr/local

the install is in,

/usr/local/include  > ls *curses*
ncurses:
  curses.h     cursesp.h  etip.h     ncurses_dll.h  unctrl.h
  cursesapp.h  cursesw.h  form.h     panel.h
  cursesf.h    cursslk.h  menu.h     term.h
  cursesm.h    eti.h      ncurses.h  termcap.h

ncursesw:
  curses.h     cursesp.h  etip.h     ncurses_dll.h  unctrl.h
  cursesapp.h  cursesw.h  form.h     panel.h
  cursesf.h    cursslk.h  menu.h     term.h
  cursesm.h    eti.h      ncurses.h  termcap.h

i _could_ symlink

  /usr/local/include/ncurses/ncurses.h -> /usr/local/include/ncurses.h

and, i guess, that might resolve the issue.

BUT, that's messy as it complicates the ability for other apps to
distinguish between,

    ncurses
    ncursesw

install dirs.

the preference, i'd suggest, is to add the search path
"ncurses/ncurses.h" to asterisk ...

thanks.


More information about the asterisk-dev mailing list