I am a new user to linux. I am using kubuntu.
I have installed Orocos 1.4.1 rtt and ocl.
I am trying to do the first examples: http://www.orocos.org/stable/examples/rtt/rtt-examples-1.4.0.tar.gz
I try to run simpletask. So I run: make
and returns this message.
g++ -o simpletask simpletask.o `PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config orocos-ocl-gnulinux orocos-rtt-gnulinux --libs`
/usr/bin/ld: cannot find -l-lncurses
collect2: ld returned 1 exit status
make: *** [simpletask] Error 1
I have runned: ls /lib/*curses*
/lib/libncurses.so.4 /lib/libncurses.so.4.2 /lib/libncurses.so.5 /lib/libncurses.so.5.6 /lib/libncursesw.so.5 /lib/libncursesw.so.5.6
Does someone know how to fix it?
Thanks in advance
Linkg problem with lncurses
On Wed, 17 Sep 2008, iker [..] ... wrote:
> I am a new user to linux. I am using kubuntu.
> I have installed Orocos 1.4.1 rtt and ocl.
>
> I am trying to do the first examples:
> http://www.orocos.org/stable/examples/rtt/rtt-examples-1.4.0.tar.gz
> I try to run simpletask. So I run: make and returns this message.
>
> g++ -o simpletask simpletask.o `PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
> pkg-config orocos-ocl-gnulinux orocos-rtt-gnulinux --libs`
> /usr/bin/ld: cannot find -l-lncurses
> collect2: ld returned 1 exit status
> make: *** [simpletask] Error 1
>
> I have runned: ls /lib/*curses*
> /lib/libncurses.so.4 /lib/libncurses.so.4.2 /lib/libncurses.so.5
> /lib/libncurses.so.5.6 /lib/libncursesw.so.5 /lib/libncursesw.so.5.6
>
> Does someone know how to fix it?
IIRC this was a bug in ocl 1.4.1
Probably your /usr/local/lib/pkgconfig/orocos-ocl-gnulinux.pc file contains a line "Libs:" where there is "-l-lncurses"
Replacing that by "-lncurses" should fix your problem.
hth,
Klaas