A Problem About Cross Compiling

Bora Sahin bora.sahin at ttnet.net.tr
Thu May 5 15:19:51 PDT 2005


Hello,

I tried to crosscompile Xorg-6.8.2 but I ran into a problem, although it seemed to me a minor
one and ignored it. But still I want to be sure to do the right thing. The problem stemmed from
xkbcomp/cross compiling rules. The err message is below.

making all in programs/xkbcomp/cross...
make[5]: Entering directory `/opt/eldk/sysapps/xc-build/programs/xkbcomp/cross'
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o xkbcomp.o xkbcomp.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o xkbscan.o xkbscan.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o expr.o expr.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o vmod.o vmod.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o indicators.o indicators.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o misc.o misc.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o alias.o alias.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o keymap.o keymap.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o keycodes.o keycodes.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o keytypes.o keytypes.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o compat.o compat.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o action.o action.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o symbols.o symbols.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o geometry.o geometry.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o xkbpath.o xkbpath.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o listing.o listing.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o xkbparse.o xkbparse.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o parseutils.o parseutils.c
cc -I../../.. -I../../../exports/include -I.. -I../../../include/extensions      -c -o utils.o utils.c
rm -f xkbcomp

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?

Ps-1: My host system Cel 466, target system is an embedded PowerPC -> IBM 405EP.
Ps-2: My host linux system is Debian Sarge.

-- 
Bora SAHIN



More information about the xorg mailing list