[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] Guys any help can i get here?
From: |
harshavardhanreddy mandeepala |
Subject: |
[Ltib] Guys any help can i get here? |
Date: |
Fri, 25 Aug 2006 23:52:07 +0530 |
Hi guys,
I am struggling to cross compile my XFree86-4.5 to ARM plat form.
But with no success from past 7 day.
Kindly help in this regard.
I am sending what i did till now.
following is my host.def file
/* 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
#define BuildFonts YES
#define ServerToInstall XFree86
#define
HasZlib
NO
Following is my cross.def file
/* $XFree86: xc/config/cf/cross.def,v 1.3 2002/04/
04 14:05:33 eich Exp $ */
/*
* This file contains redefinitions of some symbols to enable
* cross compilation: e.g. paths for include files and paths to
* compiler images. It will have to be edited to reflect these
* given your local configuration.
*/
/* #if 0 */
#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
PREFIX=/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-
2/arm-none-linux-gnueabi
#define StdIncDir ${PREFIX}/arm-none-linux-gnueabi/sys-include
#define PreIncDir
#undef PostIncDir
#define PostIncDir ${PREFIX}/lib/gcc/arm-none-linux-gnueabi/4.1.1/include
#define CcCmd arm-none-linux-gnueabi-gcc
#undef CplusplusCmd
#define HasCplusplus YES
#define CplusplusCmd arm-none-linux-gnueabi-g++
#define RanlibCmd arm-none-linux-gnueabi-ranlib
#undef ExtraLoadFlags
#define ExtraLoadFlags
#define FbNoPixelAddrCode
#undef TermcapLibrary
#define TermcapLibrary -ltermcap
#undef LdPostLib
#define LdPostLib -L${PREFIX}/arm-none-linux-gnueabi/lib
#undef ExtensionOSDefines
#define ExtensionOSDefines
#define ServerXdmcpDefines /**/
#define HostCcCmd cc
#endif
#include <cross.rules>
Then i did
make World CROSSCOMPILEDIR=/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-none-linux-gnueabi/bin
Then i got the following error message
make[4]: Leaving directory `/home/harsha/XFREE86/build/lib/xkbui'
making all in lib/lbxutil...
make[4]: Entering directory `/home/harsha/XFREE86/build/lib/lbxutil'
making all in lib/lbxutil/lbx_zlib...
make[5]: Entering directory `/home/harsha/XFREE86/build/lib/lbxutil/lbx_zlib'
rm -f lbx_zlib.o
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/arm-
none-linux-gnueabi/bin/`echo arm-none-linux-gnueabi-gcc|sed "s%.*/%%"` -c -O2
-fsigned-char -I../../../exports/include/X11 -I../../../include/extensions -I.
./../../programs/Xserver/include
-I../../../include/extensions -I../
../zlib -I../../.. -I../../../exports/include -Dlinux
-D__arm__
-D_POSIX_SOU
RCE
-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
-DFUNCP
ROTO=15 -DNARROWPROTO lbx_zlib.c
In file included from lbx_zlib.h:55,
from lbx_zlib.c:67:
/home/harsha/XFREE86/xc/extras/zlib/zlib.h:897: error: two or more data
types
i
n declaration specifiers
In file included from ../../../programs/Xserver/include/misc.h:152,
from ../../../programs/Xserver/include/os.h:99,
from lbx_zlib.c:68:
/opt/freescale/usr/local/gcc-4.1.1-glibc-2.4-nptl-2/arm-none-linux-gnueabi/lib/
gcc/arm-none-linux-gnueabi/4.1.1/../../../../arm-none-linux-gnueabi/sys-include
/stdlib.h:471: error: expected ':', ',', ';', '}' or '__attribute__'
before
'.'
token
make[5]: *** [lbx_zlib.o] Error 1
make[5]: Leaving directory `/home/harsha/XFREE86/build/lib/lbxutil/lbx_zlib'
make[4]: *** [lbx_zlib] Error 2
make[4]: Leaving directory `/home/harsha/XFREE86/build/lib/lbxutil'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/harsha/XFREE86/build/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/harsha/XFREE86/build'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/home/harsha/XFREE86/build'
make: *** [World] Error 2
I tryed many possible ways.
If any body helps me where i am wrong it will be good.
I am struggling for past 7 days to Xcompile XFree86.
If any body has already XCompiled kindly send the steps how you did.
Any help is appreceiatable.
Thanks in advance.
Regards,
Harsha
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ltib] Guys any help can i get here?,
harshavardhanreddy mandeepala <=