BeBits Information Developer Central Submit Application Your Account Web Links Contact Us
BeBits
Please support our sponsors!
ncurses
Talkback
 Go back to the ncurses page
 Post a new Talkback comment!
ncurses license
 By dickey - Posted on January 20, 2007 - 18:29:08   (#21227)
 Current version when comment was posted: 5.3
ncurses license is MIT (not GPL).

email me
 By moooooooo - Posted on January 10, 2003 - 07:38:36   (#5262)
 Current version when comment was posted: 5.3
send me an email and i'll see what i can do.
peter

Need helping compiling ncurses programs
 By stephenb - Posted on January 4, 2003 - 10:15:19   (#5143)
 Current version when comment was posted: 5.3
I'm attempting to compile NAIM (an AIM client that uses ncurses, http://site.rpi-acm.org/info/naim/) but it's telling me it can't find the curses library. Running configure seems to work just fine until this point:

checking for wresize in -lncurses... no
checking for wresize in -lcurses... no
configure: error: unable to find a curses library -- FATAL

I notice that I don't have any files by the names of "lncurses" or "lcurses", even after installing the ncurses package found here.

So is getting naim to work a lost cause, or am I doing something wrong?

environment variables
 By moooooooo - Posted on December 25, 2002 - 23:30:24   (#5003)
 Current version when comment was posted: 5.3
you'll need to ensure that you have C_INCLUDE_PATH and LD_LIBRARY_PATH set correctly.

my C_INCLUDE_PATH is:
/boot/develop/headers:/boot/develop/headers/be/bone/:/boot/home/config/include:boot/apps/X11R6.4/include/

note that i have the X11 stuff in there, but you don't necessarily need that unless you are writing X-Windows stuff
LD_LIBRARY_PATH:
.:/boot/develop/lib/x86:/boot/home/config/lib:/boot/apps/X11R6.4/lib

hope that helps
peter

How to build?
 By Yasuo Yamashita - Posted on December 25, 2002 - 06:48:58   (#5002)
 Current version when comment was posted: 5.3
I tried to build ncurses5.3 but build process is aborted by some errors like below.

/boot/home/build/ncurses-5.3/ncurses/curses.priv.h:263: redefinition of `struct ldat'

Need some source code modification?

cool
 By moooooooo - Posted on December 23, 2002 - 21:19:19   (#4985)
 Current version when comment was posted: 5.2
thanks for that.
one thing though...it's better to install stuff like this into the /boot/home/config tree instead of the /boot/beos/system tree. Generally that is for system updates whereas /boot/home/config is loosely equivalent to /usr/local on Unixes/Linuxes/BSDs.

so along with your ./configure --with-shared

you should add on --prefix=/boot/home/config
to the ./configure command.
This will install the libs into /boot/home/config/lib
and you don't have to edit any files.
cheers
peter

How to build libncurses.so
 By nospamx - Posted on December 23, 2002 - 10:49:50   (#4980)
 Current version when comment was posted: 5.2
After asking GNU team, I found the way to create libncurses.so (Shared Library) on BeOS:

1. Download BeOS PE Developer Edition from BeZip.DE
2. Install and search for libtool.pkg, automake.pkg, autoconf.pkg on the distribution. If not found, download the pkg (binaries) from GNU section of BeBits.com. Commands for searching ".pkg" files:
Command: updatedb
<.....wait several minutes...>
Command: locate libtool.pkg
3. Search and download the latest version of ncurses*.tar.gz from ftp.gnu.org or other sources.
Search for Ncurses version 5.3 or later.
4. Untar and install the ncurses tarbal.
Command: tar -zxvf ncurses*.tar.gz
This will put Ncurses source code on a sub-directory ("compile directory").
5. Change to the ncurses "compile directory".
6. Modify ./configure file using text editor.
Search for "/usr/local" and changed it to "/boot/beos/system". Change "exec_prefix=NONE" to "exec_prefix=/boot/beos/system".
7. Run configuration with shared libraries option:
Command: ./configure --with-shared
Command: make
<....... long process.....>
Command: make install
8. For checking wheteher libncurses.so is installed, you can use "locate" command:
Command: updatedb
<......wait several minutes....>
Command: locate libncurses.so
9. For using ordinary PE or MaxEdition, you can put the ncurses "compile directory" on befs partition on hard disk and run "make install" command on PE (ignore skew clock error).

The Ncurses 5.2 and old Libtool contain bugs that prevent the compiler from creating shared version of Libncurses on BeOS. I hope the information will be useful.

they are .a
 By moooooooo - Posted on June 18, 2002 - 00:38:10   (#1862)
 Current version when comment was posted: 5.2
yes they are .a and you statically link to them
peter

Library type
 By lentinj - Posted on May 12, 2002 - 06:45:19   (#1396)
 Current version when comment was posted: 5.2
Surely the libraries in this should be .a, instead of .so? Now admittedly I don't know what the difference is, but I do know that my ncurses programs won't use them. Will I have to be re-compiling, or am I right in thinking .a libraries are bad?

did that work?
 By moooooooo - Posted on May 12, 2002 - 00:40:27   (#1391)
 Current version when comment was posted: 5.2
did it work?
i was wondering if it also may be bbecause the libraries arent shareed libraries?

A better way
 By Kreeblah - Posted on May 11, 2002 - 12:58:55   (#1388)
 Current version when comment was posted: 5.2
I was just talking with mmu_man and he suggested a better way to do it. Instead of modifying the environment variables like that, he suggested just making symlinks to the libraries in /boot/develop/lib/x86/

Um.
 By Kreeblah - Posted on May 11, 2002 - 12:46:45   (#1387)
 Current version when comment was posted: 5.2
Erm, that line should have been:

export BELIBRARIES=$BELIBRARIES:/boot/home/config/lib

Not BEINCLUDES. :^)

-lncurses
 By Kreeblah - Posted on May 11, 2002 - 12:45:45   (#1386)
 Current version when comment was posted: 5.2
I was trying to compile ScummVM, which uses ncurses, and was getting the following error:

/boot/develop/tools/gnupro/bin/ld: cannot open -lncurses: No such file or directory

I tried what moooooooo suggested, but that didn't work. What I wound up doing to get it to work was add the following line to my .profile file (although it should probably be in the UserSetupEnvironment):

export BEINCLUDES=$BEINCLUDES:/boot/home/config/lib

If you need to ask...
 By neiras - Posted on April 30, 2002 - 17:49:40   (#1235)
 Current version when comment was posted: 5.2
...then you probably shouldn't bother. Ncurses is a developers' toolkit for creating GUIs inside of a terminal window. There's absolutely no reason to download it unless you a) want to write a program that will have an ncurses-based GUI; or b) want to run another BeOS program that requires/can use the ncurses toolkit, like PHP.

What is it?
 By Reddog99 - Posted on April 30, 2002 - 13:54:10   (#1233)
 Current version when comment was posted: 5.2
Please explain what this and does in the description. The fact that it's compiled from other unix sources doesn't mean anything to a non-unix person. Tell me why should I download it.

Pat

try this
 By moooooooo - Posted on April 30, 2002 - 10:01:39   (#1230)
 Current version when comment was posted: 5.2
you might need to set a few environment variables up, but i would suggest you have a look at:
./configure --help | less
and see what options you are allowed to specify.
you might be able to specify the location of the library file.

i have my $LD_LIBRARY_PATH set to /boot/home/config/lib
so either set that in your .profile or in your UserSetupEnvironment file by doing:
export LD_LIBRARY_PATH=/boot/home/config/lib
this will eliminate a few issues.
icheers
peter

Compiling apps that run ncurses?
 By StephenBNB - Posted on April 30, 2002 - 09:46:01   (#1228)
 Current version when comment was posted: 5.2
Hi,

I tried to compile an app that uses ncurses (naim, an ncurses AIM client,
http://dev.n.ml.org/naim-0.11.2.tar.gz) but it fails.

When I run ./configure, the it exits saying:

checking for initscr in -lncurses... nochecking for initscr in -lcurses...
noconfigure: warning: unable to find a curses library -- FATAL

Any suggestions?

hehe...easy!
 By moooooooo - Posted on April 30, 2002 - 02:04:00   (#1221)
 Current version when comment was posted: 5.2
yes i was surprised how easy it was to "port" it.
it only took a few minutes to configure and compile and i was up and running the test apps in no time :)

what took the longest was getting everything into the package and testing that :)
cheers
peter

Good to see
 By neiras - Posted on April 29, 2002 - 15:49:33   (#1217)
 Current version when comment was posted: 5.2
This compiles from the official source unmodified.

 
BeGroovy
  Recent Downloads  -  # 635
Total Downloads  -  # 1,151
Total Views  -  # 757
User Ratings  -  N/A
  Misc. Development
Shell Utilities
System Utilities
1.  QEMU - 9.62
2.  ScummVM - 9.50
3.  cpu_fix - 9.42
4.  Jukebox - 9.36
5.  Haiku AGP busm... - 9.35
6.  vim6 - 9.31
7.  Beezer - 9.25
8.  BeeF - 9.25
9.  HandBrake - 9.24
10.  DOSBox - 9.22
1.  Realtek RTL8139... - 299
2.  BeOS 5 Personal... - 215
3.  ATI Rage 128 Pr... - 192
4.  Ati Radeon Grap... - 153
5.  USB Serial driver - 127
6.  Ensoniq AudioPC... - 112
7.  Broadcom 440x 1... - 102
8.  DjVu Viewer - 90
9.  VLC Media Player - 80
10.  Intel Extreme Gr... - 75
You are not logged in.
 Login or create an account...
Hosted by NetConnect

 
Unless otherwise noted, everything is copyright © 1999-2002 Fifth Ace Productions, LLC. All Rights Reserved.
For more legal trivia, take a gander at our
Legal Stuff page and our Privacy Statement.
Fifth Ace Productions