Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > problems with'ing ncurses support
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 30th August 07:58
randomm
External User
 
Posts: 1
Default problems with'ing ncurses support



X-No-Archive: Yes

Hello all,

I've just built ncurses 5.5 to try to use it with GNAT 3.15p on Linux.
The build went fine and it looks to me as though all the Ada files went
in the proper directories.

I'm trying to compile the rain.adb sample program from inside Emacs as
follows:

-------------------------------------------------------------------------------------------------------------------------------------
cd /home/adauser/ncurses-5.5/Ada95/samples/
cd /home/adauser/ncurses-5.5/Ada95/samples/ && gnatmake -o
/home/adauser/ncurses-5.5/Ada95/samples/rain rain -g -cargs -gnatqflo
-O -bargs -largs
gcc -c -g -gnatqflo -O rain.adb

GNAT 3.15p (20020523) Copyright 1992-2002 Free Software Foundation,
Inc.

Compiling: rain.adb (source file time stamp: 2003-10-25 15:39:18)
-------------------------------------------------------------------------------------------------------------------------------------

then a little further on:

-------------------------------------------------------------------------------------------------------------------------------------
45. with Terminal_Interface.Curses; use Terminal_Interface.Curses;
1 2


-------------------------------------------------------------------------------------------------------------------------------------

But when I look in the directory where all the Ada system includes are,
I see that the terminal_interface-curses body and spec files are
present but I don't see a spec or body for terminal_interface.

I'm missing something but as I'm new to Ada and GNAT (and a host of
other things as well) I don't know what it is. Can anyone shed any
light on this?

Thanks,
Rand
  Reply With Quote


 


2 3rd September 14:42
jeffrey creem
External User
 
Posts: 1
Default problems with'ing ncurses support



Maybe I am missing something but how is gnatmake supposed to find the
ncurses source code. Seems like a missing -I.

What directory does ncurses install the .ads files into?
  Reply With Quote
3 7th September 21:13
randomm
External User
 
Posts: 1
Default problems with'ing ncurses support


X-No-Archive: Yes

I thought I found where the Ada system body and spec files were and had
the ncurses build install in the same directories.


I don't know what the defaults are. I used the ./config parameters to
specify the rts-native/adalib and adainclude directories in which I
found things like text_io.ali and text_io.adb and text_io.ads for
example.

But these files don't appear to be used after all. I renamed
text_io.ads to footext_io.ads and a test program that had with and use
clauses for Ada.text_io compiled and executed normally. So now I also
don't understand where it's finding the system files to compile with in
addition to my original problem.

Thanks,
Rand
  Reply With Quote
4 12th September 09:21
randomm
External User
 
Posts: 1
Default problems with'ing ncurses support


X-No-Archive: Yes

Actually, those were the right libraries. I don't know why it wasn't
working. (I was indeed able to break the compilation by renaming
a-textio.ali in the rts directory.)

After some thought, I decided to put ncurses in its own two libraries
and set separate include and linker paths and it seems ok. The only
thing here is that compiling a program that withs curses support seems
to create copies of the curses .ali and .o modules in the source
directory, which seems objectionable since they already exist in the
adalib.

Cheers,
Rand
  Reply With Quote
5 12th September 09:22
simon wright
External User
 
Posts: 1
Default problems with'ing ncurses support


randomm@mindless.com writes:


Try write-protecting the .ali in the Ada library, I think that's what
tells GNAT not to recompile.
  Reply With Quote
6 17th September 22:25
randomm
External User
 
Posts: 1
Default problems with'ing ncurses support


X-No-Archive: Yes


Hi Simon,

Thanks, I read that also but it doesn't seem to apply here as I've
created the ncurses directories and chowned everything to root with R/O
permissions for world. But I may have outsmarted myself with something
else. I need to retrace my steps and check something in the next day
or two and if I can resolve it, I'll post again.

Meanwhile should any other ideas pop up please let me know.

Cheers,

Rand
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666