Hi all,
so after one week i finally made to compile the X11R6.7.0 packages and installed to my linux system on CF card.
here is my config/cf/host.def file (comments excluded):
Code:
#define HasFreetype2 NO
#define HasFontconfig NO
#define HasExpat NO
#define HasLibpng NO
#define HasZlib NO
#define InstallFontconfigLibrary NO
#define XnestServer NO
#define XVirtualFramebufferServer NO
#define XprtServer NO
#define BuildXprintClients NO
#define XF86CardDrivers savage
#define XInputDrivers NO
this would compile the necessary extras packages needed like zlib, etc. but then i got problem with that GNU linker (ld) of my cross compiler doesnot support the ncurses library and no reference for ncurses.h.
Basically i installed the crosstool cross compiler (i386, gcc 3.4.4, binutils 2.15, glibc 2.3.2).
so i found out the solution:
- create a directory with symlinks to the cross compile binaries without prefix (eg: gcc links to the crosstool i686-unknown-linux-gnu-gcc, etc.)
- download and extract without installing (command:
rpm2cpio <RPM_PACK> | cpio -id) rpm package of ncurses and ncurses devel (i use the 5.2-28.i386 version) which contain the libncurses library and ncurses.h
- make a symlink form the cross compiler lib/ directory with the name libncurses.so to the libncurses.so got from rpm package
- compile the whole package:
Code:
make CROSSCOMPILEDIR=<DIR_CONTAIN_SYMLINK_TO_CROSSTOOL_BIN> C_INCLUDE_PATH=<PATH_TO_DIR_CONTAIN_NCURSES.H_FROM RPM_PACKAGE> World
besides that, i had an error when compiling the xc/programs/Xserver/hw/xfree86/fbdevhw/fbdevhw.c file.
i found a patch on the internet somewhere and patch the file. it will excludes the "asm/page.h" file during compilation.
after a long time, it finished without error, then install to CF card:
Code:
make install DESTDIR=<CF_CARD_MOUNT_DIR>
then i copied the fonts from my host target /usr/X11R6/lib/X11/fonts. the size of whole things is around 45 MB.anyway i am using 512MB CF for the project
sorry to make such a long thread. but i hope this will be usefull for someone later.
i still have some error during the runtime. and i ask this in another thread.
regards,