List Info

Thread: cross compilation of pango




cross compilation of pango
country flaguser name
India
2007-09-21 02:56:13

 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..


______________________________________________________________________
Re: cross compilation of pango
country flaguser name
Czech Republic
2007-09-21 03:13:55
On Fri, Sep 21, 2007 at 01:26:13PM +0530, Shilpa Singh
wrote:
> /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

Obviously, GLib compiler flags are completely missing here
and therefore it cannot find glib.h. There must be
-I/path/to/glib/includes somehwere (actually two -Is, the
second to the arch-specific glibconfig.h, as pkg-config
normally prints them).  Without them it cannot work, so
whatever `In make file i have specified glib flags
correctly' means, they are not specified correctly.

Yeti

--
http://gwyddion.net/
_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-listgnome.org

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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )