From mboxrd@z Thu Jan 1 00:00:00 1970 From: mike@penbex.com.tw (mike) To: "chendyg21" Cc: Subject: Re: the GTK Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-ID: <000901c0753e$318696a0$9e0150c0@penbex.com.tw> References: <003601c044dc$2a6c2c00$0a051aac@nudt.edu.cn> <001901c07536$de419e60$2e20a8c0@xlinux.com.cn> X-SW-Source: 2001-q1/msg00005.html Message-ID: <20010401000000.GsVz66zwuQYVghH1qT-xfgxb0GuZ54ttzK-mCfkeanI@z> I have to admit it first. I only succed cross compiling GTK under windoze. In the last error. > /skiff/local/bin/ld: unrecognised emulation mode: elf_i386 this means your ld(symbolic link arm-linux-ld)doesn't recognised elf_i386 format. and this shows the last object files ld try to link include some file in elf_i386 format. try to clean all the files and re-build. The two way that I do under windoze to build glib. 1. the GNU standard way (./configure and make) 2. write MAKEFILE myself I prefer 2. I don't get it how to execute 'make CC=arm-linux-gcc' without './configure' (maybe it is not support yet) IMHO. try to write MAKEFILE yourself. BTW,glib-1.2.8 got several directories. the most important is 'gthread'. If you want to glib works, you should handle this well. (gthread is some wrap functions base on pthread). If you still un-satisfied, try to drop you question to gtk-devel-list@gnome.org gtk-list@gnome.org ----- Original Message ----- From: "chendyg21" To: Sent: Wednesday, January 03, 2001 11:39 AM Subject: the GTK > > > Dear All: > I am new to do the cross compiling on GTK. > First I must compiling the GLIB-1.2.8.I have done the native compiling and it succed. > Now I dscribe the step and the error. > I hope to get the help from all of you. > 1. set the PATH=/skill/local/bin:$PATH. the arm-linux-gcc can be used. > 2. ./configure arm-linux --prefix=/usr/gtk > 3. make CC=arm-linux-gcc > the error is like that:(I cut the error part to you.) > ...... > make[2]: Entering directory `/root/usr/gtk/v1.2/glib-1.2.8' > /bin/sh ./libtool --mode=link rm-linux-gcc -g -O2 -Wall -D_REENTRANT -o libglib.la -rpath /usr/gtk/lib -version-info 0:8:0 -release 1.2 -export-dynamic garray.lo gcache.lo gcompletion.lo gdataset.lo gdate.lo gerror.lo ghash.lo ghook.lo giochannel.lo giounix.lo glist.lo gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo gutils.lo > rm -fr .libs/libglib.la .libs/libglib.* .libs/libglib-1.2.* > gcc -shared garray.lo gcache.lo gcompletion.lo gdataset.lo gdate.lo gerror.lo ghash.lo ghook.lo giochannel.lo giounix.lo glist.lo gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo utils.lo -lc -Wl,-soname -Wl,libglib-1.2.so.0 -o .libs/libglib-1.2.so.0.0.8 > collect2: ld terminated with signal 11 [Segmentation fault], core dumped > /usr/bin/ld: bfd assertion fail elf32-i386.c:1513 > make[2]: *** [libglib.la] Error 1 > make[2]: Leaving directory `/root/usr/gtk/v1.2/glib-1.2.8' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/usr/gtk/v1.2/glib-1.2.8' > make: *** [all-recursive-am] Error 2 > > I analysis that the ld is not right. > I try: > > 1. go to /skill/local/bin > 2. ln -s arm-linux-ld ld > 3. make CC=arm-linux-gcc > the error is:(the last part) > make all-recursive > make[1]: Entering directory `/root/usr/gtk/v1.2/glib-1.2.8' > Making all in . > make[2]: Entering directory `/root/usr/gtk/v1.2/glib-1.2.8' > /bin/sh ./libtool --mode=link rm-linux-gcc -g -O2 -Wall -D_REENTRANT -o libglib.la -rpath /usr/gtk/lib -version-info 0:8:0 -release 1.2 -export-dynamic garray.lo gcache.lo gcompletion.lo gdataset.lo gdate.lo gerror.lo ghash.lo ghook.lo giochannel.lo giounix.lo glist.lo gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo gutils.lo > rm -fr .libs/libglib.la .libs/libglib.* .libs/libglib-1.2.* > gcc -shared garray.lo gcache.lo gcompletion.lo gdataset.lo gdate.lo gerror.lo ghash.lo ghook.lo giochannel.lo giounix.lo glist.lo gmain.lo gmem.lo gmessages.lo gmutex.lo gnode.lo gprimes.lo grel.lo gscanner.lo gslist.lo gstrfuncs.lo gstring.lo gtimer.lo gtree.lo utils.lo -lc -Wl,-soname -Wl,libglib-1.2.so.0 -o .libs/libglib-1.2.so.0.0.8 > /skiff/local/bin/ld: unrecognised emulation mode: elf_i386 > Supported emulations: armelf_linux armelf_linux26 armelf > collect2: ld returned 1 exit status > make[2]: *** [libglib.la] Error 1 > make[2]: Leaving directory `/root/usr/gtk/v1.2/glib-1.2.8' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/usr/gtk/v1.2/glib-1.2.8' > make: *** [all-recursive-am] Error 2 > > who can tell me how to do it? > > > Joshua Chen > > ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com