WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: menuconfig and ncurses problems  (Read 7683 times)

Offline granaos

  • Newbie
  • *
  • Posts: 8
menuconfig and ncurses problems
« on: September 11, 2010, 02:10:19 PM »
Hello everebody my goal is to compile TC. 

I was having problems at compiling time over tinycore.

Well every time I tried to run "make menuconfig" I get this

...
HOSTCC scripts/kconfig/kxgettext.o
*** Unable to find the ncurses libraries or the
*** requiered header files
*** 'make menuconfig' requires the ncurses libraries.
***
***Install ncurses (ncurses-devel) and try again.
***
make [1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

Before that I have done this

1)   I've Boot from cd (with tinycore-current.iso )
2)   I've downloaded linux-2.6.33.3-patched.tbz2 , config-2.6.33.3-tinycore  and compiletc.tcz(with AppBrowser)
3)   Then on linux-2.6.33.3 (after tar jvxf linux...)  with config-2.6.33.3 as .config in there I ran "make menuconfig".


Thanks


 

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: menuconfig and ncurses problems
« Reply #1 on: September 11, 2010, 02:26:35 PM »
to compile the kernel, you'll need the ncurses, ncurses-dev, perl5 and bash extensions as well as compiletc

Offline granaos

  • Newbie
  • *
  • Posts: 8
Re: menuconfig and ncurses problems
« Reply #2 on: September 11, 2010, 02:50:11 PM »
thanks a lot for your help.

Well I've downloaded:
- compiletc.tcz
- perl5.tcz
- ncurses.tcz
- bash.tcz

And using AppsAudit I can see this:

base-dev.tcz
bash.tcz
binutils.tcz
bison.tcz
cloog.tcz
compile.tcz
diffutils.tcz
file.tcz
findutils.tcz
flex.tcz
gawk.tcz
gcc.tcz
gcc_libs.tcz
gmp.tcz
gperf.tcz
grep.tcz
m4.tcz
make.tcz
mPfr.tcz
ncurses-common.tcz
ncurses.tcz
patch.tcz
perl5.tcz
pkg-config.tcz
ppl.tcz
sed.tcz


Offline granaos

  • Newbie
  • *
  • Posts: 8
Re: menuconfig and ncurses problems
« Reply #3 on: September 11, 2010, 02:54:05 PM »
I forgot

I have downloaded ncurses-dev.tcz too.



Offline granaos

  • Newbie
  • *
  • Posts: 8
Re: menuconfig and ncurses problems
« Reply #4 on: September 14, 2010, 11:49:13 PM »
Hi everybody.....is there anyone who can help me?   I would appreciate.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: menuconfig and ncurses problems
« Reply #5 on: September 15, 2010, 02:44:42 AM »
If you have everything loaded it should work.

You could try:

1. "make mrproper", copy the .config again and then "make menuconfig"
2. "make mrproper", copy the .config again and then "make oldconfig"

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: menuconfig and ncurses problems
« Reply #6 on: September 24, 2010, 09:17:03 AM »
I see the problem now, ncurses was recently moved out of the base to an extension - this means its location moved from /usr to /usr/local and "make menuconfig" only looks in /usr.

To get around this problem, you need to symlink /tmp/tcloop/ncurses-dev/usr/local/include/ncurses -> /usr/include/ncurses and symlink the static libs /tmp/tcloop/ncurses-dev/usr/local/lib/lib*.a -> /usr/lib/lib*.a

This is perhaps easiest done by starting emelfm as root
« Last Edit: September 24, 2010, 11:03:52 AM by Juanito »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: menuconfig and ncurses problems
« Reply #7 on: September 24, 2010, 12:00:35 PM »
Perhaps that ncurses-dev extension should create those symlinks so they are available without manual intervention, since it seems to be a hardcoded file location looked for by the kernel build process.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: menuconfig and ncurses problems
« Reply #8 on: September 24, 2010, 12:47:59 PM »
The other issue with the current ncurses-dev is that the headers are in include/ncurses instead of include/, which also trips some packages.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: menuconfig and ncurses problems
« Reply #9 on: September 24, 2010, 02:54:17 PM »
The other issue with the current ncurses-dev is that the headers are in include/ncurses instead of include/, which also trips some packages.

New package is tested and ready to submit.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: menuconfig and ncurses problems
« Reply #10 on: September 24, 2010, 03:03:52 PM »
Maybe /usr/include should simply be symlinked to /usr/local/include in the initrd.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: menuconfig and ncurses problems
« Reply #11 on: September 25, 2010, 02:07:52 AM »
Updated ncurses-dev.tcz sent for publication.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: menuconfig and ncurses problems
« Reply #12 on: October 30, 2010, 04:00:11 AM »
'Looks like the start-up script should test for the presence of /usr/include and create it if required?
Code: [Select]
$ tce-load -i ncurses-dev
ncurses-common.tcz: OK
ncurses.tcz: OK
ln: /usr/include/etip.h: No such file or directory
ln: /usr/include/cursslk.h: No such file or directory
ln: /usr/include/cursesw.h: No such file or directory
ln: /usr/include/cursesp.h: No such file or directory
ln: /usr/include/cursesm.h: No such file or directory
ln: /usr/include/cursesf.h: No such file or directory
ln: /usr/include/cursesapp.h: No such file or directory
ln: /usr/include/form.h: No such file or directory
ln: /usr/include/menu.h: No such file or directory
ln: /usr/include/eti.h: No such file or directory
ln: /usr/include/panel.h: No such file or directory
ln: /usr/include/nc_tparm.h: No such file or directory
ln: /usr/include/term_entry.h: No such file or directory
ln: /usr/include/tic.h: No such file or directory
ln: /usr/include/ncurses_dll.h: No such file or directory
ln: /usr/include/termcap.h: No such file or directory
ln: /usr/include/unctrl.h: No such file or directory
ln: /usr/include/ncurses.h: No such file or directory
ln: /usr/include/curses.h: No such file or directory
ln: /usr/include/term.h: No such file or directory
ncurses-dev.tcz: OK