On Jan 8, 2008 10:40 AM, Shilpa Singh <[EMAIL PROTECTED]> wrote: > > Hi > whenever you get could not read symbols problem, the problem will be the LD, > it will not be using the tool chains LD as you can see ld: > .libs/libdirectfb_sdlgraphics.a.tmp/sdlgfx.o: Relocations in generic ELF > do one thing go to make file and change the ld to ur tool chains ld, and > that you have to do in all the make files in all sub folders. >
I've found that doing: export LD=/path/to/cross/chain/ld before doing the ./configure and the make works, when the wrong LD is being used. This _should_ eliminate the need for changing it in all the makefiles :-) > > > > > Hi,everyone. > I got an error message while I was trying to cross compile DirectFB1.1.1 to > s3c2410: > ... > (cd .libs/libdirectfb_sdlgraphics.a.tmp && arm-linux-ar > x ../../.libs/libdirectfb_sdlgraphics.a) > ld -o libdirectfb_sdlgraphics.o -r .libs/libdirectfb_sdlgraphics.a.tmp/*.o > ld: .libs/libdirectfb_sdlgraphics.a.tmp/sdlgfx.o: Relocations in generic ELF > (EM: 40) > ld: .libs/libdirectfb_sdlgraphics.a.tmp/sdlgfx.o: Relocations in generic ELF > (EM: 40) > ld: .libs/libdirectfb_sdlgraphics.a.tmp/sdlgfx.o: Relocations in generic ELF > (EM: 40) > .libs/libdirectfb_sdlgraphics.a.tmp/sdlgfx.o: could not read symbols: 文件格式错误 > make[3]: *** [libdirectfb_sdlgraphics.o] 错误 1 > make[3]: Leaving directory > `/home/mitsuki/application/DirectFB-1.1.1/systems/sdl' > make[2]: *** [all-recursive] 错误 1 > make[2]: Leaving directory > `/home/mitsuki/application/DirectFB-1.1.1/systems' > make[1]: *** [all-recursive] 错误 1 > make[1]: Leaving directory `/home/mitsuki/application/DirectFB-1.1.1' > make: *** [all] 错误 2 > > I need cross compile DirectFB with SDL.Please help me. > THX!! > ______________________________________________________________________ > > _______________________________________________ > directfb-users mailing list > [email protected] > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > > _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
