[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] ncurses library integration



Hi,

I'm trying to use ncurses (v5.6) with Petalinux 0.3-rc1. I have followed instruction from previous messages (Mostafa ali) and i succeed to generate the library an compile examples but when i try to execute provided test programs the program stops with "cannot open terminfo /usr/share/terminfo/v/vt100 (errno=22)" . I have checked the terminfo files in /usr/share/terminfo/v for vt100 configuration and that's OK. I have investigated the problem and i found that the open function return "illegal parameter" in the following code (read_entry.c):

   if (_nc_access(filename, R_OK) < 0
   || (fd = open(filename, O_RDONLY | O_BINARY)) < 0) {
   T(("cannot open terminfo %s (errno=%d)", filename, errno));

Then i have tried to use the same code in standalone code compiled with Petalinux makefile and the "open" function return fd=3 as expected.

My main question is does anybody have succeded to run ncurses test programs in Petalinux? secondary why "open(" function doesn't have the same behaviour with ncurses library. For the moment i have no idea how to make the things working better.

Thanks

Stéphane CAYLA








___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/