A Problem About Cross Compiling

Alexander Gottwald Alexander.Gottwald at s1999.tu-chemnitz.de
Fri May 6 06:32:14 PDT 2005


Bora Sahin wrote:

> cc -I../../../exports/include -o xkbcomp  xkbcomp.o xkbscan.o expr.o vmod.o indicators.o misc.o \
> alias.o keymap.o keycodes.o keytypes.o compat.o action.o symbols.o geometry.o \
> xkbpath.o listing.o xkbparse.o parseutils.o utils.o  -L/usr/X11R6/lib -lxkbfile -lX11
> /usr/bin/ld: cannot find -lxkbfile
> collect2: ld returned 1 exit status
>
> As it seems, it is trying to use the host toolchain and libs, not the crosscompiled ones. (My host
> system doesnt contain libxkbfile). After seeing that err msg I looked at Imakefile of it.
>
> XCOMM Assumes local libraries installed in /usr/X11R6/lib
> LOCAL_LIBRARIES = -L/usr/X11R6/lib $(XKBFILELIB) $(XONLYLIB)
>
> ROOT_DEFINES = -DDFLT_XKB_CONFIG_ROOT=\"$(LIBDIR)/xkb\"
>
> INCLUDES = -I.. -I$(EXTINCSRC)
>
> This clearly states that it will use "-L/usr/X11R6/lib $(XKBFILELIB) $(XONLYLIB)". I am wondering is
> this part of compiling to be done on the host system? or it should be fixed?

It is quite useful to
#define UseInstalledOnCrossCompile YES
if you're crosscompiling. This will use the tools from the system instead of
compiling special versions.

bye
        ago
NP: SITD - Wegweiser
-- 
 Alexander.Gottwald at s1999.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723



More information about the xorg mailing list