Hi all,<br><br>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.
<br> <br>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.<br><br>I am using the X11R6.7.0. and I am planning to do:<br>- make the shadow directory build using lndir command
<br>- configure the
host.def file<br>- build the X windows: make CROSSCOMPILEDIR=<PATH_TO_CROSS_COMPILER> World<br>- install to the CF card (supposed it is mounted on /mnt/cf): make install DESTDIR=/mnt/cf<br>can i do this?<br><br>now im trying to make the first step, but i have problems.
<br>- 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"
<br><br>- 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.<br><br>- But then the later steps brings me to new error like the library is unsupported:<br>/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<br>/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)
<br>../../exports/lib/libXfont.so: undefined reference to `FT_New_Size'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Set_Transform'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Set_Char_Size'
<br>../../exports/lib/libXfont.so: undefined reference to `FT_Select_Charmap'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Set_Pixel_Sizes'<br>/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'
<br>../../exports/lib/libXfont.so: undefined reference to `FT_Load_Glyph'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_Sfnt_Table'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_PS_Font_Info'
<br>../../exports/lib/libXfont.so: undefined reference to `FT_Outline_Get_BBox'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Vector_Transform'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Activate_Size'
<br>/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@GLIBC_2.3.4'<br>/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'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_Name_Index'
<br>/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'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_X11_Font_Format'
<br>../../exports/lib/libXfont.so: undefined reference to `FT_Init_FreeType'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Set_Charmap'<br>/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@GLIBC_2.3.4'
<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_Sfnt_Name'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_BDF_Charset_ID'<br>../../exports/lib/libXfont.so: undefined reference to `FT_New_Face'
<br>/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@GLIBC_2.3.4'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_Char_Index'
<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_Postscript_Name'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Done_Face'<br>../../exports/lib/libXfont.so: undefined reference to `FT_MulFix'
<br>../../exports/lib/libXfont.so: undefined reference to `FT_Render_Glyph'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Has_PS_Glyph_Names'<br>../../exports/lib/libXfont.so: undefined reference to `FT_Done_Size'
<br>../../exports/lib/libXfont.so: undefined reference to `FT_Get_Sfnt_Name_Count'<br>collect2: ld returned 1 exit status<br>make[3]: *** [bdftopcf] Error 1<br>make[3]: Leaving directory `/home/leo/thesis/projects/Test_111506/X/build/programs/bdftopcf'
<br>make[2]: *** [all] Error 2<br>make[2]: Leaving directory `/home/leo/thesis/projects/Test_111506/X/build/programs'<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/home/leo/thesis/projects/Test_111506/X/build'
<br>make: *** [all] Error 2<br><br><br>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?
<br>big thanks for helping the newcomer :)<br><br>best regards,<br>