nanogui: Thread: Linking Microwin when cross-compile


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Linking Microwin when cross-compile
From: tan yongzai ####@####.####
Date: 27 Jul 2006 16:45:48 +0100
Message-Id: <20060727154544.22581.qmail@web33102.mail.mud.yahoo.com>

Hi,

  I tried to troubleshoot my earlier cross-compilation problems and stuck at the follow error. Really hope that someone can give me some pointer to advance forward. Many Thanks.


Linking mdemo ...
/opt/crosstool/gcc-2.95.3-glibc-2.2.5/arm-unknown-linux-gnu/bin/arm-unknown-linu
x-gnu-gcc  -Wall -Wpointer-arith -O3 -ggdb -mstructure-size-boundary=8 -I. -I/ho
me/zai/embedded_linux/microwin/src/include -I. -I/usr/X11R6/include  -Wall -Wpointer-arith -O3 -ggdb -mstructure-size-boundary=8  -I. -I/home/zai/embedded_linux
/microwin/src/include -I. -I/usr/X11R6/include  -Wall -Wpointer-arith -O3 -ggdb 
-mstructure-size-boundary=8  -I. -I/home/zai/embedded_linux/microwin/src/include
 -I. -I/usr/X11R6/include /home/zai/embedded_linux/microwin/src/obj/demos/mwin/m
demo.o -o /home/zai/embedded_linux/microwin/src/bin/mdemo -lmwin -lmwimages -lm 
  -L/usr/X11R6/lib -lX11 -L/home/zai/embedded_linux/microwin/src/lib 
/opt/crosstool/gcc-2.95.3-glibc-2.2.5/arm-unknown-linux-gnu/arm-unknown-linux-gn
u/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[2]: *** [/home/zai/embedded_linux/microwin/src/bin/mdemo] Error 1
make[2]: Leaving directory `/home/zai/embedded_linux/microwin/src/demos/mwin'
make[1]: *** [subdir-/home/zai/embedded_linux/microwin/src/demos/mwin] Error 2
make[1]: Leaving directory `/home/zai/embedded_linux/microwin/src/demos'
make: [all] Error 2 (ignored)


 		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
Subject: Re: Linking Microwin when cross-compile
From: "Aaron J. Grier" ####@####.####
Date: 27 Jul 2006 17:38:58 +0100
Message-Id: <20060727163847.GF18581@mordor.unix.fryenet>

On Thu, Jul 27, 2006 at 08:45:44AM -0700, tan yongzai wrote:
> I tried to troubleshoot my earlier cross-compilation problems and
> stuck at the follow error. Really hope that someone can give me some
> pointer to advance forward. Many Thanks.

[...]
> /opt/crosstool/gcc-2.95.3-glibc-2.2.5/arm-unknown-linux-gnu/arm-unknown-linux-gnu/bin/ld: cannot find -lX11
> collect2: ld returned 1 exit status

where is the cross-compiled libX11.a for your ARM target?

-- 
  Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  ####@####.####
Subject: Re: [nanogui] Re: Linking Microwin when cross-compile
From: "Aaron J. Grier" ####@####.####
Date: 31 Jul 2006 18:22:33 +0100
Message-Id: <20060731172213.GL18581@mordor.unix.fryenet>

On Sat, Jul 29, 2006 at 05:39:57AM -0700, tan yongzai wrote:
> "Aaron J. Grier" ####@####.#### wrote:
> > On Thu, Jul 27, 2006 at 08:45:44AM -0700, tan yongzai wrote:
> > > I tried to troubleshoot my earlier cross-compilation problems and
> > > stuck at the follow error. Really hope that someone can give me
> > > some pointer to advance forward. Many Thanks.
> > [...]
> > > /opt/crosstool/gcc-2.95.3-glibc-2.2.5/arm-unknown-linux-gnu/arm-unknown-linux-gnu/bin/ld: cannot find -lX11
> > > collect2: ld returned 1 exit status
> > 
> > where is the cross-compiled libX11.a for your ARM target?
>
> I only found the  libX11.a in the C:\cygwin\usr\X11R6\lib directory.
> How do I generate the cross-compiled libX11.a for the ARM target?

the same way you generate the rest of userland for your ARM target.  is
there libX11.a on your ARM target?

-- 
  Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  ####@####.####
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.