WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: compile nload failed, no curses library  (Read 1464 times)

Offline lovelypp

  • Jr. Member
  • **
  • Posts: 51
compile nload failed, no curses library
« on: April 02, 2023, 06:44:10 PM »
I want to compile nload (http://www.roland-riegel.de/nload/) but when configure, it says:
configure: error: ncurses library or development files not found. ncurses is required for nload.

there is only ncursesw in the tcz library.  I don't know whether curses and cuesesw is compatible and how to resolve this problem.

thanks!

aus9

  • Guest
Re: compile nload failed, no curses library
« Reply #1 on: April 02, 2023, 06:52:25 PM »
ncursesw-dev has a header for ncurses.h

the info file for ncursesw-dev mentions this is the correct package to compile against from now on.

Juanito has posted about the change and I found this post that sums it up
http://forum.tinycorelinux.net/index.php/topic,22708.msg142147.html#msg142147
« Last Edit: April 02, 2023, 06:56:22 PM by aus9 »

Offline lovelypp

  • Jr. Member
  • **
  • Posts: 51
Re: compile nload failed, no curses library
« Reply #2 on: April 03, 2023, 12:38:05 AM »
I create link from ncursesw to ncurses, but still can not configure

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: compile nload failed, no curses library
« Reply #3 on: April 03, 2023, 01:40:02 AM »
You need to check how the configure script is checking for ncurses and modify it accordingly.

Usually it looks in the wrong place for the headers, which can be corrected using $CFLAGS.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: compile nload failed, no curses library
« Reply #4 on: April 03, 2023, 03:03:06 AM »
This works:
Code: [Select]
sudo ln -s /tmp/tcloop/ncursesw-dev/usr/local/include/ncursesw/* /usr/include
Make the following edits to the configure script:

4973 LIBS="-lncursesw  $LIBS"
5008 LIBS="-lncursesw $LIBS"
5018 LIBS="-lformw  $LIBS"
5053 LIBS="-lformw $LIBS"

Then:
Code: [Select]
CFLAGS="-I/usr/local/include/ncursesw" CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti"  ./configure --prefix=/usr/local --localstatedir=/var
find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
make
sudo make install