X.org cross development

Leo Hendrawan leo.hendrawan at gmail.com
Mon Nov 20 12:40:31 PST 2006


Hi all,

I am new to linux actually, but now im doing cross development project to
make small linux system on Compact Flash card. I am using OpenSuse 10.1 with
Intel processor as my hostm and my target system is also x86 processor and
will boot from the CF card.

I am finished with the basic system, now im starting with the X windows
system. I have some questions that i couldnt find the answer after googling.

I am using the X11R6.7.0. and I am planning to do:
- make the shadow directory build using lndir command
- configure the host.def file
- build the X windows: make CROSSCOMPILEDIR=<PATH_TO_CROSS_COMPILER> World
- install to the CF card (supposed it is mounted on /mnt/cf): make install
DESTDIR=/mnt/cf
can i do this?

now im trying to make the first step, but i have problems.
- it appeared that some links headers files were missing (like "zlib.h" for
"lbx_zlib.h", "ft2build.h" was missing for "fcfreetype.h"). I managed these
errors by adding C_INCLUDE_PATH to the directories containing the header
files inside the packages while doing "make World"

- then it appeared that my linker (ld) cross compiler missing some library,
there were errors like: (cannot find -lfreetype, cannot find -lexpat, cannot
find -lz). I googled it find some tips that i should make my symbolic links
on my library directory of the cross compiler to the library of my X windows
system host (/usr/X11R6/lib) with the library libfreetype.so, libz.so,
libexpat.so.

- But then the later steps brings me to new error like the library is
unsupported:
/home/leo/thesis/projects/Test_111506/tools/xbin//`echo gcc -m32|sed
"s%.*/%%"` -o bdftopcf -O2 -fno-strength-reduce -fno-strict-aliasing -ansi
-pedantic -Wall -Wpointer-arith -Wundef     -L../../exports/lib
bdftopcf.o-lXfont -lfntstubs -lfreetype   -lz -lm
-Wl,-rpath-link,../../exports/lib
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/3.4.4/../../../../i686-unknown-linux-gnu/bin/ld:
warning: libfreetype.so.6, needed by
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/3.4.4/../../../../i686-unknown-linux-gnu/lib/libfreetype.so,
not found (try using -rpath or -rpath-link)
../../exports/lib/libXfont.so: undefined reference to `FT_New_Size'
../../exports/lib/libXfont.so: undefined reference to `FT_Set_Transform'
../../exports/lib/libXfont.so: undefined reference to `FT_Set_Char_Size'
../../exports/lib/libXfont.so: undefined reference to `FT_Select_Charmap'
../../exports/lib/libXfont.so: undefined reference to `FT_Set_Pixel_Sizes'
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/3.4.4/../../../../i686-unknown-linux-gnu/lib/libfreetype.so:
undefined reference to `LoadFont'
../../exports/lib/libXfont.so: undefined reference to `FT_Load_Glyph'
../../exports/lib/libXfont.so: undefined reference to `FT_Get_Sfnt_Table'
../../exports/lib/libXfont.so: undefined reference to `FT_Get_PS_Font_Info'
../../exports/lib/libXfont.so: undefined reference to `FT_Outline_Get_BBox'
../../exports/lib/libXfont.so: undefined reference to `FT_Vector_Transform'
../../exports/lib/libXfont.so: undefined reference to `FT_Activate_Size'
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/3.4.4/../../../../i686-unknown-linux-gnu/lib/libz.so:
undefined reference to `__vsnprintf_chk at GLIBC_2.3.4'
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/3.4.4/../../../../i686-unknown-linux-gnu/lib/libfreetype.so:
undefined reference to `FT_Stream_Seek'
../../exports/lib/libXfont.so: undefined reference to `FT_Get_Name_Index'
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/3.4.4/../../../../i686-unknown-linux-gnu/lib/libfreetype.so:
undefined reference to `FT_Stream_Pos'
../../exports/lib/libXfont.so: undefined reference to
`FT_Get_X11_Font_Format'
../../exports/lib/libXfont.so: undefined reference to `FT_Init_FreeType'
../../exports/lib/libXfont.so: undefined reference to `FT_Set_Charmap'
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/3.4.4/../../../../i686-unknown-linux-gnu/lib/libz.so:
undefined reference to `__sprintf_chk at GLIBC_2.3.4'
../../exports/lib/libXfont.so: undefined reference to `FT_Get_Sfnt_Name'
../../exports/lib/libXfont.so: undefined reference to
`FT_Get_BDF_Charset_ID'
../../exports/lib/libXfont.so: undefined reference to `FT_New_Face'
/opt/crosstool/gcc-3.4.4-glibc-2.3.2/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/3.4.4/../../../../i686-unknown-linux-gnu/lib/libz.so:
undefined reference to `__fprintf_chk at GLIBC_2.3.4'
../../exports/lib/libXfont.so: undefined reference to `FT_Get_Char_Index'
../../exports/lib/libXfont.so: undefined reference to
`FT_Get_Postscript_Name'
../../exports/lib/libXfont.so: undefined reference to `FT_Done_Face'
../../exports/lib/libXfont.so: undefined reference to `FT_MulFix'
../../exports/lib/libXfont.so: undefined reference to `FT_Render_Glyph'
../../exports/lib/libXfont.so: undefined reference to
`FT_Has_PS_Glyph_Names'
../../exports/lib/libXfont.so: undefined reference to `FT_Done_Size'
../../exports/lib/libXfont.so: undefined reference to
`FT_Get_Sfnt_Name_Count'
collect2: ld returned 1 exit status
make[3]: *** [bdftopcf] Error 1
make[3]: Leaving directory
`/home/leo/thesis/projects/Test_111506/X/build/programs/bdftopcf'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/leo/thesis/projects/Test_111506/X/build/programs'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/leo/thesis/projects/Test_111506/X/build'
make: *** [all] Error 2


can anyone give me a suggestion? i tried also to find something about cross
development x windows system, but couldnt find. does anyone have a
suggestion of a good reference about cross development?
big thanks for helping the newcomer :)

best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20061120/2c70c3db/attachment.html>


More information about the xorg mailing list