Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: granaos on September 11, 2010, 02:10:19 PM

Title: menuconfig and ncurses problems
Post by: granaos 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


 
Title: Re: menuconfig and ncurses problems
Post by: Juanito 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
Title: Re: menuconfig and ncurses problems
Post by: granaos 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

Title: Re: menuconfig and ncurses problems
Post by: granaos on September 11, 2010, 02:54:05 PM
I forgot

I have downloaded ncurses-dev.tcz too.


Title: Re: menuconfig and ncurses problems
Post by: granaos on September 14, 2010, 11:49:13 PM
Hi everybody.....is there anyone who can help me?   I would appreciate.
Title: Re: menuconfig and ncurses problems
Post by: Juanito 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"
Title: Re: menuconfig and ncurses problems
Post by: Juanito 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
Title: Re: menuconfig and ncurses problems
Post by: Jason W 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.
Title: Re: menuconfig and ncurses problems
Post by: curaga 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.
Title: Re: menuconfig and ncurses problems
Post by: bmarkus 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.
Title: Re: menuconfig and ncurses problems
Post by: gerald_clark on September 24, 2010, 03:03:52 PM
Maybe /usr/include should simply be symlinked to /usr/local/include in the initrd.
Title: Re: menuconfig and ncurses problems
Post by: bmarkus on September 25, 2010, 02:07:52 AM
Updated ncurses-dev.tcz sent for publication.
Title: Re: menuconfig and ncurses problems
Post by: Juanito 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