Tiny Core Base > CorePlus
Applications requiring ncurses
t18:
So, there are a bunch of files containing the instruction:
--- Code: ---#include <curses.h>
--- End code ---
that I replaced with
--- Code: ---#include <cursesw.h>
--- End code ---
but unsuccessfully:
--- Code: ---fatal error: cursesw.h: no such file or directory
--- End code ---
These are my settings:
--- Code: ---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
--- End code ---
Where am I mistaken?
patrikg:
I think only "n".
#include <ncurses.h>
t18:
--- Quote from: patrikg on May 14, 2025, 04:22:59 AM ---I think only "n".
#include <ncurses.h>
--- End quote ---
ok, added "n" but:
--- Code: ---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
--- End code ---
UPDATE: none among "curses.h" "ncurses.h" "ncursesw.h" works.
Juanito:
You need something like #include <ncursesw/ncurses.h>
t18:
--- Quote from: Juanito on May 14, 2025, 08:11:55 AM ---You need something like #include <ncursesw/ncurses.h>
--- End quote ---
STRONG HELP! I'M SO GRATEFUL! MUCHAS GRACIAS!
It works! :)
Navigation
[0] Message Index
[*] Previous page
Go to full version