Re: Reg cross compilation issue

Axel Beckert <[email protected]>
Newsgroups gmane.comp.gnu.screen.devel,gmane.comp.gnu.screen.user
Organization DeuxChevaux.org -- The Citr oën 2CV Database
Message-ID <[email protected]>
Hi,

On Tue, Oct 27, 2015 at 08:33:32PM +0530, $rik@nth  wrote:
> I am trying to cross compile the screen for arm and getting stuck
> while linking the ncurses libraries.
[...]
> /usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/bin/ld:
> cannot find -lncurses
[...]
> I have cross checked the lib path and able to retrieve the installed libs
> /lib/x86_64-linux-gnu/libncurses.so.5
> /lib/x86_64-linux-gnu/libncurses.so.5.9
> /lib/x86_64-linux-gnu/libncursesw.so.5
> /lib/x86_64-linux-gnu/libncursesw.so.5.9
> /lib32/libncurses.so.5
> /lib32/libncurses.so.5.9
> /lib32/libncursesw.so.5
> /lib32/libncursesw.so.5.9

That's the problem. You need those libraries for arm, too, to
cross-compile screen for arm. Those ncurses libraries for x86 or
x86_64 are only needed if you would compile it for your local system.

I don't know on which distribution you are, but 
https://wiki.debian.org/CrossCompiling also has some distribution
independent information. Maybe this already helps.

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | [email protected]  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.