WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Applications requiring ncurses  (Read 3333 times)

Offline t18

  • Full Member
  • ***
  • Posts: 123
Re: Applications requiring ncurses
« Reply #15 on: May 14, 2025, 03:19:16 AM »
So, there are a bunch of files containing the instruction:

Code: [Select]
#include <curses.h>
that I replaced with

Code: [Select]
#include <cursesw.h>
but unsuccessfully:

Code: [Select]
fatal error: cursesw.h: no such file or directory
These are my settings:

Code: [Select]
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
CPPFLAGS="-I/usr/local/include/ncursesw" LIBS="-lncursesw" CC="gcc -march=i486 -mtune=i686 -Os -pipe -fomit-frame-pointer"
CXX="g++ -march=i486 -mtune=i686 -Os -pipe -fomit-frame-pointer"

make

Where am I mistaken?


Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 766
Re: Applications requiring ncurses
« Reply #16 on: May 14, 2025, 04:22:59 AM »
I think only "n".

#include <ncurses.h>
« Last Edit: May 14, 2025, 04:24:59 AM by patrikg »

Offline t18

  • Full Member
  • ***
  • Posts: 123
Re: Applications requiring ncurses
« Reply #17 on: May 14, 2025, 07:05:01 AM »
I think only "n".

#include <ncurses.h>

ok, added "n" but:

Code: [Select]
mv 123.tmp.o 123.o
objcopy -I coff-i386 -O coff-i386 --wildcard --localize-symbols=localize.lst --g                                                                                       0x6e530,function,local orig/dl_init.o dl_init.o
cc -freg-struct-return -W -Wall -m32 -O2 -fno-stack-protector -I. -D_FILE_OFFSET                                                                                       -o main.o main.c
cc -freg-struct-return -W -Wall -m32 -O2 -fno-stack-protector -I. -D_FILE_OFFSET                                                                                       -o wrappers.o wrappers.c
wrappers.c: In function '__unix_uname':
wrappers.c:317:5: warning: 'strncpy' output may be truncated copying 8 bytes fro
  317 |     strncpy(unixname->version, name.release, 8);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -freg-struct-return -W -Wall -m32 -O2 -fno-stack-protector -I. -D_FILE_OFFSET                                                                                       -o patch.o patch.c
patch.c:5:10: fatal error: ncursesw.h: No such file or directory
    5 | #include <ncursesw.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: patch.o] Error 1


UPDATE: none among "curses.h" "ncurses.h" "ncursesw.h" works.
« Last Edit: May 14, 2025, 07:17:40 AM by t18 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15223
Re: Applications requiring ncurses
« Reply #18 on: May 14, 2025, 08:11:55 AM »
You need something like #include <ncursesw/ncurses.h>
« Last Edit: May 14, 2025, 11:16:23 AM by Juanito »

Offline t18

  • Full Member
  • ***
  • Posts: 123
Re: Applications requiring ncurses
« Reply #19 on: May 14, 2025, 03:01:13 PM »
You need something like #include <ncursesw/ncurses.h>

STRONG HELP! I'M SO GRATEFUL! MUCHAS GRACIAS!

It works!  :)