cross compilation of pango




 hai all,

I would like to cross compile Pango 1.17.0  for an ARM board
with the toolchain arm-linux.
I  have set all variables like CC,LD,AS,AR,RANLIB,STRIP correctly.
this is my configure



./configure  --host=arm-linux --build=i686-linux --prefix=$PREFIX --enable-static=yes --without-x --disable-sdl --disable-win32 --with-gfxdrivers=none --enable-explicit-deps=yes


when i do a make this is what i get

*** Warning: Linking the shared library libpangoft2-1.0.la against the
*** static library /opt/gtkdfb-arm/lib/libglib-2.0.a is not portable!

*** Warning: Linking the shared library libpangoft2-1.0.la against the
*** static library /opt/gtkdfb-arm/lib/libgobject-2.0.a is not portable!

*** Warning: Linking the shared library libpangoft2-1.0.la against the
*** static library /opt/gtkdfb-arm/lib/libgmodule-2.0.a is not portable!

*** Warning: Linking the shared library libpangoft2-1.0.la against the
*** static library /opt/gtkdfb-arm/lib/libxml2.a is not portable!

*** Warning: Linking the shared library libpangoft2-1.0.la against the
*** static library /opt/gtkdfb-arm/lib/libfreetype.a is not portable!

*** Warning: Linking the shared library libpangoft2-1.0.la against the
*** static library /opt/gtkdfb-arm/lib/libfontconfig.a is not portable!
generating symbol list for `libpangoft2-1.0.la'
/usr/arm/bin/arm-linux-nm  .libs/module-defs-fc.o .libs/pangofc-font.o .libs/pangofc-fontmap.o .libs/pangofc-decoder.o .libs/pangoft2.o .libs/pangoft2-fontmap.o .libs/pangoft2-render.o .libs/pango-ot-buffer.o .libs/pango-ot-info.o .libs/pango-ot-ruleset.o .libs/pango-ot-tag.o  opentype/.libs/libharfbuzz-1.a | sed -n -e 's/^.*[        ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /bin/sed 's/.* //' | sort | uniq > .libs/libpangoft2-1.0.exp
/usr/arm/bin/arm-linux-nm: libfontconfig.a: File format not recognized
/bin/grep -E -e "^pango_.*" ".libs/libpangoft2-1.0.exp" > ".libs/libpangoft2-1.0.expT"
mv -f ".libs/libpangoft2-1.0.expT" ".libs/libpangoft2-1.0.exp"
echo "{ global:" > .libs/libpangoft2-1.0.ver
 cat .libs/libpangoft2-1.0.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libpangoft2-1.0.ver
 echo "local: *; };" >> .libs/libpangoft2-1.0.ver
 /usr/arm/bin/arm-linux-gcc -shared  .libs/module-defs-fc.o .libs/pangofc-font.o .libs/pangofc-fontmap.o .libs/pangofc-decoder.o .libs/pangoft2.o .libs/pangoft2-fontmap.o .libs/pangoft2-render.o .libs/pango-ot-buffer.o .libs/pango-ot-info.o .libs/pango-ot-ruleset.o .libs/pango-ot-tag.o -Wl,--whole-archive opentype/.libs/libharfbuzz-1.a -Wl,--no-whole-archive  -Wl,--rpath -Wl,/home/shilpasingh/pango-1.18.2/pango/.libs -Wl,--rpath -Wl,/opt/gtkdfb-arm/lib -L/opt/gtkdfb-arm/lib ./.libs/libpango-1.0.so /opt/gtkdfb-arm/lib/libglib-2.0.a /opt/gtkdfb-arm/lib/libgobject-2.0.a /opt/gtkdfb-arm/lib/libgmodule-2.0.a /opt/gtkdfb-arm/lib/libxml2.a /opt/gtkdfb-arm/lib/libfontconfig.a /opt/gtkdfb-arm/lib/libfreetype.a -lm  -Wl,-soname -Wl,libpangoft2-1.0.so.0 -Wl,-version-script -Wl,.libs/libpangoft2-1.0.ver -o .libs/libpangoft2-1.0.so.0.1800.2

opentype/.libs/libharfbuzz-1.a: member opentype/.libs/libharfbuzz-1.a(libfontconfig.a) in archive is not an object
collect2: ld returned 1 exit status

make[4]: *** [libpangoft2-1.0.la] Error 1
make[4]: Leaving directory `/home/shilpasingh/pango-1.18.2/pango'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/shilpasingh/pango-1.18.2/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/shilpasingh/pango-1.18.2/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/shilpasingh/pango-1.18.2'
make: *** [all] Error 2

below mentioned problem i was able to solve when i edited make files of all the folders and updated GLIB_CFLAGS correctly..

hai all,


I would like to cross compile Pango 1.17.0  for an ARM board
with the toolchain arm-linux.
I  have set all variables like CC,LD,AS,AR,RANLIB,STRIP correctly.
this is my configure



./configure  --host=arm-linux --build=i686-linux --prefix=$PREFIX --enable-static=yes --without-x --disable-sdl --disable-win32 --with-gfxdrivers=none --enable-explicit-deps=yes


I had few problems initially, hence shifted to pango 1.18.2 but when i do a make this is what i get, In make file i have specified glib flags correctly. and I am not able to find .libs directory at all, should i shift to previous versions of pango,, can someone help



/usr/arm/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -DSYSCONFDIR=\"/opt/gtkdfb-arm/etc\" -DLIBDIR=\"/opt/gtkdfb-arm/lib\" -DG_DISABLE_CAST_CHECKS -I../.. -g -O2 -Wall -MT fribidi.lo -MD -MP -MF .deps/fribidi.Tpo -c fribidi.c  -fPIC -DPIC -o .libs/fribidi.o

In file included from fribidi.h:31,

                from fribidi.c:28:

fribidi_config.h:1:18: error: glib.h: No such file or directory

In file included from fribidi.h:32,

                from fribidi.c:28:

fribidi_types.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_boolean'

fribidi_types.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_int8'

fribidi_types.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_uint8'

fribidi_types.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_int16'

fribidi_types.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_uint16'

fribidi_types.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_int32'

fribidi_types.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_uint32'

fribidi_types.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_int'

fribidi_types.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_uint'

fribidi_types.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FriBidiLevel'

fribidi_types.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FriBidiChar'

fribidi_types.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FriBidiStrIndex'

fribidi_types.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FriBidiMaskType'

fribidi_types.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FriBidiCharType'

fribidi_types.h:51: error: expected ')' before 'c'

fribidi_types.h:56: error: expected specifier-qualifier-list before 'FriBidiStrIndex'

In file included from fribidi.h:32,

                from fribidi.c:28:

fribidi_types.h:307: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_pango_fribidi_prop_to_type'

In file included from fribidi.c:28:

fribidi.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

fribidi.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_pango_fribidi_get_type'

fribidi.c:52: error: expected specifier-qualifier-list before 'FriBidiCharType'

fribidi.c:63: error: expected specifier-qualifier-list before 'FriBidiCharType'

fribidi.c: In function 'new_type_link':

fribidi.c:73: warning: implicit declaration of function 'g_slice_new0'

fribidi.c:73: error: expected _expression_ before 'TypeLink'

fribidi.c:73: warning: assignment makes pointer from integer without a cast

fribidi.c: In function 'free_type_link':

fribidi.c:81: warning: implicit declaration of function 'g_slice_free'

fribidi.c:81: error: expected _expression_ before 'TypeLink'

fribidi.c: At top level:

fribidi.c:95: error: expected declaration specifiers or '...' before 'FriBidiStrIndex'

fribidi.c:96: error: expected declaration specifiers or '...' before 'FriBidiCharType'

fribidi.c:97: error: expected declaration specifiers or '...' before 'FriBidiCharType'

fribidi.c: In function 'run_length_encode_types_utf8':

fribidi.c:100: error: 'FriBidiCharType' undeclared (first use in this function)

fribidi.c:100: error: (Each undeclared identifier is reported only once

fribidi.c:100: error: for each function it appears in.)

fribidi.c:100: error: expected ';' before 'char_type'

fribidi.c:101: error: expected ';' before 'ored_types'

fribidi.c:102: error: expected ';' before 'anded_strongs'

fribidi.c:103: error: 'FriBidiStrIndex' undeclared (first use in this function)

fribidi.c:103: error: expected ';' before 'i'

fribidi.c:108: error: 'TypeLink' has no member named 'type'

fribidi.c:109: error: 'TypeLink' has no member named 'level'

fribidi.c:113: error: 'i' undeclared (first use in this function)

fribidi.c:114: warning: implicit declaration of function 'g_utf8_next_char'

fribidi.c:114: warning: assignment makes pointer from integer without a cast

fribidi.c:115: error: 'char_type' undeclared (first use in this function)

fribidi.c:115: warning: implicit declaration of function '_pango_fribidi_get_type'

fribidi.c:115: warning: implicit declaration of function 'g_utf8_get_char'

fribidi.c:116: error: 'ored_types' undeclared (first use in this function)

fribidi.c:118: error: 'anded_strongs' undeclared (first use in this function)

fribidi.c:119: error: 'TypeLink' has no member named 'type'

fribidi.c:122: error: 'TypeLink' has no member named 'type'

fribidi.c:123: error: 'TypeLink' has no member named 'pos'

fribidi.c:124: error: 'TypeLink' has no member named 'len'

fribidi.c:124: error: 'TypeLink' has no member named 'pos'

fribidi.c:124: error: 'TypeLink' has no member named 'pos'

fribidi.c:131: error: 'TypeLink' has no member named 'type'

fribidi.c:132: error: 'TypeLink' has no member named 'level'

fribidi.c:133: error: 'TypeLink' has no member named 'pos'

fribidi.c:134: error: 'TypeLink' has no member named 'len'

fribidi.c:134: error: 'TypeLink' has no member named 'pos'

fribidi.c:134: error: 'TypeLink' has no member named 'pos'

fribidi.c:136: error: 'len' undeclared (first use in this function)

fribidi.c:139: error: 'pored_types' undeclared (first use in this function)

fribidi.c:141: error: 'panded_strongs' undeclared (first use in this function)

fribidi.c: In function 'init_list':

fribidi.c:160: error: 'TypeLink' has no member named 'type'

fribidi.c:161: error: 'TypeLink' has no member named 'level'

fribidi.c:162: error: 'TypeLink' has no member named 'len'

fribidi.c:163: error: 'TypeLink' has no member named 'pos'

fribidi.c:167: error: 'TypeLink' has no member named 'type'

fribidi.c:168: error: 'TypeLink' has no member named 'level'

fribidi.c:169: error: 'TypeLink' has no member named 'len'

fribidi.c:170: error: 'TypeLink' has no member named 'pos'

fribidi.c: In function 'override_list':

fribidi.c:217: error: 'FriBidiStrIndex' undeclared (first use in this function)

fribidi.c:217: error: expected ';' before 'pos'

fribidi.c:224: error: 'TypeLink' has no member named 'len'

fribidi.c:224: error: 'TypeLink' has no member named 'pos'

fribidi.c:224: error: 'pos' undeclared (first use in this function)

fribidi.c:231: error: 'TypeLink' has no member named 'pos'

fribidi.c:232: error: 'TypeLink' has no member named 'pos'

fribidi.c:235: error: 'pos2' undeclared (first use in this function)

fribidi.c:235: error: 'TypeLink' has no member named 'len'

fribidi.c:237: error: 'TypeLink' has no member named 'pos'

fribidi.c:245: error: 'TypeLink' has no member named 'pos'

fribidi.c:254: error: 'TypeLink' has no member named 'len'

fribidi.c:254: error: 'TypeLink' has no member named 'pos'

fribidi.c:257: error: 'TypeLink' has no member named 'len'

fribidi.c:257: error: 'TypeLink' has no member named 'pos'

fribidi.c:258: error: 'TypeLink' has no member named 'pos'

fribidi.c:261: error: 'TypeLink' has no member named 'pos'

fribidi.c:268: error: 'TypeLink' has no member named 'len'

fribidi.c:268: error: 'TypeLink' has no member named 'pos'

fribidi.c:273: error: 'TypeLink' has no member named 'len'

fribidi.c:273: error: 'TypeLink' has no member named 'pos'

fribidi.c:275: error: 'TypeLink' has no member named 'len'

fribidi.c:279: error: 'TypeLink' has no member named 'pos'

fribidi.c:281: error: 'TypeLink' has no member named 'len'

fribidi.c:281: error: 'TypeLink' has no member named 'pos'

fribidi.c:283: error: 'TypeLink' has no member named 'len'

fribidi.c: In function 'merge_with_prev':

fribidi.c:318: error: 'TypeLink' has no member named 'len'

fribidi.c:318: error: 'TypeLink' has no member named 'len'

fribidi.c: In function 'compact_list':

fribidi.c:328: error: 'TypeLink' has no member named 'type'

fribidi.c:328: error: 'TypeLink' has no member named 'type'

fribidi.c:329: error: 'TypeLink' has no member named 'level'

fribidi.c:329: error: 'TypeLink' has no member named 'level'

fribidi.c: In function 'compact_neutrals':

fribidi.c:340: error: 'TypeLink' has no member named 'level'

fribidi.c:340: error: 'TypeLink' has no member named 'level'

fribidi.c:342: error: 'TypeLink' has no member named 'type'

fribidi.c:342: error: 'TypeLink' has no member named 'type'

fribidi.c:344: error: 'TypeLink' has no member named 'type'

fribidi.c:345: error: 'TypeLink' has no member named 'type'

fribidi.c: In function 'free_rl_list':

fribidi.c:366: warning: implicit declaration of function 'g_slice_free_chain'

fribidi.c:366: error: expected _expression_ before 'TypeLink'

fribidi.c: At top level:

fribidi.c:471: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fribidi_analyse_string_utf8'

fribidi.c:906: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

make[4]: *** [fribidi.lo] Error 1

make[4]: Leaving directory `/home/shilpasingh/pango-1.18.2/pango/mini-fribidi'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory `/home/shilpasingh/pango-1.18.2/pango'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/home/shilpasingh/pango-1.18.2/pango'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/shilpasingh/pango-1.18.2'

make: *** [all] Error 2


Thanks in advance..



______________________________________________________________________

______________________________________________________________________
_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

______________________________________________________________________


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]