[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Readline and ncurses for RTEMS
- Date: Tue, 05 Oct 1999 10:02:16 -0500
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: Readline and ncurses for RTEMS
I apologize. I thought I had started making this available more
publicly. There are instructions in the FAQ as well.
This is what I collected from Ralf over the course of a number of
Ralf Corsepius wrote:
> Eric Norum wrote:
> > I've managed to get the ncurses, form, menu, panel and readline
> > libraries running on RTEMS. For several reasons I wasn't able to use
> > autoconf to configure the libraries.
> FYI: Some months ago I had developed a patch to RTEMS which finally enables
> RTEMS to be used with autoconfizcated packages (Joel, I am talking about
> the dummy main patch).
> This enabled me to write a set of shell scripts to build ncurses, readline,
> zlib and tcl cleanly with autoconf.
> Due to personal work-load and various other reasons this patch did not make
> it into the RTEMS yet ...
> ... I'll try to dig out my sources
> > One of the biggest problems I had
> > with installing the libraries was the way that RTEMS lays out include
> > files.
> Where did you have problems? One problem I know about, is the installation
> location of the network header files, which cause autoconf tests checking
> for presence of networking headers to fail. AFAIK, Joel has fixed this
> recently, but it is not included in the last official snapshot
> > It would be much nicer if the include directory were at the same
> > level as the lib directory, instead of being inside the lib directory.
> I don't see what is wrong with this. The layout RTEMS uses is the same as
> gcc uses for searching its tool headers files.
> Ie. applying autoconf configure scripts on an installion of RTEMS requires
> to append -B.../lib/ to either CC, CFLAGS, CPPFLAGS etc.
> E.g. CC="<target_alias>-gcc -B..../lib/" configure --host=<target_alias>
> --build=<host_alias> --target=<target_alias>
> is supposed to work (It doesn't at the moment due to a problem with RTEMS
> libraries, but the patch mentioned above fixes this problem)
> > All of the GNU install scripts expect lib and include to be at the same
> > level.
> No. They expect include files on the include search patch.
> Workarounds are
> 1. install rtems to the same directory the compiler is installed
> 2. Append -B.../lib/
> > The ncurses script to build the fallback.c source file (which contains
> > compiled-in terminal information) produces a source file which can't be
> > compiled. I had to hand-edit the generated source to make it work.
> Hmm, I can't remember having problems with this, but may-be I have missed
> something here or my RTEMS patch fixed this problem
> > I had to make several patches to the RTEMS termios support to make these
> > packages work. I think that Joel has put most or all of the patches
> > into the CVS tree.
> Hmm, I can't recall having had to change anything in termios to get ncurses
> compiled - However, I did not test ncurses at runtime :-)
> I can recall having met non implemented networking services and
> pid-gid-access related functions, which IIRC correctly were merged into the
> snapshot after some iterations between Joel and me.
> > The install procedure is a little tricky because of the autoconf
> > problems. I don't have much time to work on this, though, so I hope
> > that one of you autoconf experts will take over. I think the
> > lib/include problem has to be dealt with first.
> I am willing to have a look into this, after Joel will release the next
> > The results of my work are at:
> > ftp://skatter.usask.ca/pub/eric/RTEMS/
> > There are still some rough spots with timed-input......
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 42499 bytes
Desc: not available
Url : http://rtems.rtems.org/pipermail/rtems-users/attachments/19991005/bdce4b3d/attachment.obj