Adding packages to ltib fails

Discussion created by Rooney on Nov 28, 2011
Latest reply on Nov 29, 2011 by Rooney



I'm having problems adding packes to ltib using scbuild.

For the sake of completeness, I don't use the VM provided by Freescale, I'm using my own one, so that I can reproduce any step to setup my own development machine.

The operation system is Ubuntu Lucid 10.04, as the installation fails using Debian Squeeze and Ubuntu 11.10.


I could successfully install ltib using the bsp L2.6.35_11.09.01.

Generating the filesystem was successfully as well after installing the required packages on the host system.

sudo aptitude -y install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev 
sudo aptitude -y install libdbus-glib-1-dev liborbit2-dev intltool
sudo aptitude -y install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool libncurses5-dev
sudo aptitude -y install uuid-dev liblzo2-dev
sudo aptitude -y install tcl dpkg




If I want to add the vim editor to my file system the scbuild process fails and the following output is shown:

Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
make[1]: Entering directory `/home/spiderman/Development/ltib/rpm/BUILD/vim62/src'
creating auto/pathdef.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -g -O2        -o objects/pathdef.o auto/pathdef.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -g -O2        version.c -o objects/version.o
  gcc   -L/usr/local/lib     -o vim objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o  objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o objects/memfile.o objects/memline.o objects/menu.o objects/message.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/syntax.o  objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o        objects/netbeans.o  objects/version.o       -lnsl  -lncurses      
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[1]: *** [vim] Error 1
make[1]: Leaving directory `/home/spiderman/Development/ltib/rpm/BUILD/vim62/src'
make: *** [first] Error 2
error: Bad exit status from /home/spiderman/Development/ltib/tmp/rpm-tmp.2118 (%build)

RPM build errors:
    Bad exit status from /home/spiderman/Development/ltib/tmp/rpm-tmp.2118 (%build)
Build time for vim: 2 seconds

Failed building vim

f_scbuild() returned an error, exiting


Why is the system complaining about ncurses? libncurses5-dev and ncurses-dev are installed. Above all, ltib is working correctly if I build the complete system using ./ltib


What I did:

./ltib –p vim –m prep   ---> succeeds

./ltib –p vim –m scbuild   ---> fails, see mentioned error above



Does anybody know what could be the problem?