Re: xfree86 4.5 cross compilation
zhanglei <[email protected]>
| Newsgroups | gmane.comp.xfree86.devel |
|---|---|
| Message-ID | <[email protected]> |
Make sure cc command in your $PATH directories !!!
Marco Longhin wrote:
> Hello,
> I'm cross compiling Xfree86 (4.5.0) with TinyX, but I haven't success!!
> Is There anybody that have success with it?
> Could you tell me how do it?
> Do you know any documentation how to use it?
>
> this is my work...
>
> I have modified host.def:
>
> --------------------------------------------------------------
> #define CrossCompiling YES
> #define KDriveXServer YES
> #define KdriveServerExtraDefines -DITSY -DMAXSCREENS=2
> #define TinyXServer YES
> /* #define TouchScreen YES */
> #define ItsyCompilerBug YES
> #undef BuildRandR
> #define BuildRandR YES
> #define BuildXInputLib YES
> #define ProjectRoot /usr/X11R6
> #define Freetype2Dir $(TOP)/extras/freetype2
> #define Freetype2LibDir $(TOP)/exports/lib
> #define BuildXTrueType YES
> #define BuildScreenSaverExt YES
> #define BuildScreenSaverLibrary YES
> #define SharedLibXss YES
> #define ServerXdmcpDefines
> #define XfbdevServer YES
> --------------------------------------------------------------
>
> I have modified cross.def
>
> --------------------------------------------------------------
> #if 1
> #undef i386Architecture
> #define Arm32Architecture
>
> #undef OptimizedCDebugFlags
> #define OptimizedCDebugFlags -O2
> #define ServerCDebugFlags -O2
> #undef StandardDefines
> #define StandardDefines -Dlinux -D__arm__ -D_POSIX_SOURCE \
> -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
> #undef CcCmd
> #define StdIncDir
> /home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/mipsel-linux/sys-include
> #define PreIncDir
> #undef PostIncDir
> #define PostIncDir
> /home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/lib/gcc/mipsel-linux-uclibc/3.4.2/include
> #define CcCmd
> /home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/bin/mipsel-linux-gcc
> #undef CplusplusCmd
> #define HasCplusplus YES
> #define CplusplusCmd
> /home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/bin/mipsel-linux-g++
> #define DoRanlibCmd YES
> #define RanlibCmd
> /home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/bin/mipsel-linux-ranlib
> #undef ExtraLoadFlags
> #define ExtraLoadFlags
> #define FbNoPixelAddrCode
> #undef TermcapLibrary
> #define TermcapLibrary -ltermcap
>
> #undef LdPostLib
> #define LdPostLib
> -L/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/mipsel-linux/lib
>
> #undef ExtensionOSDefines
> #define ExtensionOSDefines
>
> #define ServerXdmcpDefines /**/
>
> #define HostCcCmd cc
> #endif
> #include <cross.rules>
> -------------------------------------------------------------------------------------------------------
>
> In the toolchain I have run the follow script for creating the
> simbolic link:
>
> ---------------------------------------------------------------------------------
> #!/bin/sh
> for i in *; do
> if [ $i != ${i/mipsel-linux-/} ]; then
> ln -s $i ${i/mipsel-linux-/}
> fi
> done
>
> ln -s mipsel-linux-gcc cc
> -----------------------------------------------------------------------
>
> I run the make with:
> ---------------------------------------------------------------------------------------
> make World
> CROSSCOMPILEDIR=/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/bin
> ------------------------------------------------------------------------------
>
> but:
> -------------------------------------------------------------------
> Building XFree86 version 4.5.0 (16 March 2005).
>
> I hope you checked the configuration parameters in ./config/cf
> to see if you need to pass BOOTSTRAPCFLAGS.
>
> Thu Dec 22 12:19:27 CET 2005
>
> cd ./config/imake && make -f Makefile.ini BOOTSTRAPCFLAGS="" CC="cc"
> clean
> make[1]: Entering directory
> `/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/toolchain_build_mipsel/xserver/xc/config/imake'
> rm -f ccimake imake.o imake
> rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a tags TAGS
> make.log \#*
> rm -f -r Makefile.proto Makefile Makefile.dep bootstrap
> rm -f imakemdep_cpp.h
> make[1]: Leaving directory
> `/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/toolchain_build_mipsel/xserver/xc/config/imake'
> make Makefile.boot
> make[1]: Entering directory
> `/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/toolchain_build_mipsel/xserver/xc'
> cd ./config/imake && make -w -f Makefile.ini BOOTSTRAPCFLAGS="" CC="cc"
> make[2]: Entering directory
> `/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/toolchain_build_mipsel/xserver/xc/config/imake'
> making imake with BOOTSTRAPCFLAGS= and
> CROSSCOMPILEFLAGS=-DCROSSCOMPILEDIR="/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/bin"
> in config/imake
> cc -o ccimake
> -DCROSSCOMPILEDIR=\"/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/bin\"
> -O -I../../include -I../../imports/x11/include/X11 ccimake.c
> if [ -n
> "/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/bin"
> ] ; then \
> /home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/build_mipsel/staging_dir/bin/cc
> -E `./ccimake` \
> -DCROSSCOMPILE_CPP imakemdep.h > imakemdep_cpp.h; \
> else touch imakemdep_cpp.h; fi
> cc: No such file or directory
> make[2]: *** [imakemdep_cpp.h] Error 1
> make[2]: Leaving directory
> `/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/toolchain_build_mipsel/xserver/xc/config/imake'
> make[1]: *** [imake.proto] Error 2
> make[1]: Leaving directory
> `/home/lon/svil/main/sigma/smp86xx_toolchain/trunk/src/toolchain_build_mipsel/xserver/xc'
> make: *** [World] Error 2
> -------------------------------------------------------------------------------
>
> What could I do?
>
> If anybody can.... help me!!!
> thankU
>
>
> --
> Marco Longhin - <giaNNi> <plailopo> <MarcoLo>
> -----------------------------------------------------------------------------------------------------------------
> "Noi non cesseremo l'esplorazione e la fine di tutto il nostro
> esplorare, sarà giungere laddove siamo partiti e conoscere quel posto
> per la prima volta."
> T.S. Elliot