I'm trying to cross compile X for RISC OS. I've done this before
with 4.1.0, and suitable makefile hacking, so in principle at least,
this should be possible. I'm using bleeding edge CVS, as this seems to
have the most functionality wrt cross compiling - I'd probably use 4.2.0
otherwise.
Note that although that RISC OS is an ARM platform, the similarities
with ARM Linux are quite small. Having said that, the system it is
being compiled on _is_ ARM Linux, although the issues are likely to be
identical on x86 Linux.
Having written my riscos.cf file, I build with:
make World CROSSCOMPILEDIR=/home/riscos/cross/bin/
(this is a GCC cross compiler)
The first problem I see is this:
cc -c -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c
imake.c: In function `define_os_defaults':
imake.c:1503: `glibc_major' undeclared (first use in this function)
imake.c:1503: (Each undeclared identifier is reported only once
imake.c:1503: for each function it appears in.)
imake.c:1505: `glibc_minor' undeclared (first use in this function)
And having looked at imakemdep.h, this indeed isn't declared when cross
compiling. I've commented those out in imake.c:
./config/imake/imake -I./config/cf -s ./config/makedepend/Makefile.proto -f
./config/makedepend/Imakefile -DTOPD
IR=../.. -DCURDIR=./config/makedepend
cpp: In file included from Imakefile.c:13:
config/cf/Imake.tmpl:1933:25: macro `Concat3' used with just one arg
config/cf/Imake.tmpl:1934: ,TopLevelProject,.rules: No such file or directory
cpp: In file included from Imakefile.c:13:
config/cf/Imake.tmpl:1946:24: macro `Concat3' used with just one arg
config/cf/Imake.tmpl:1947: ,TopLevelProject,.tmpl: No such file or directory
cpp: In file included from config/cf/Imake.tmpl:1974,
from Imakefile.c:13:
config/makedepend/Imakefile:53:37: unterminated string or character constant
config/makedepend/Imakefile:21: possible real start of unterminated constant
./config/imake/imake: Exit code 1.
The first error is from this line:
# define ProjectRulesFile Concat3(<,TopLevelProject,.rules>)
Is cpp getting confused over the chevrons? Seems so. What's going on?
Please CC me any replies - many thanks, Peter
--
------------------------------------------------------------------------
Peter Naulls - [EMAIL PROTECTED]
Homepage - http://www.chocky.org/
RISC OS Projects Initiative - http://initiative.chocky.org/
RISC OS C Programming - http://www.riscos.info/
------------------------------------------------------------------------
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert