2011-09-04, 16:21
Hi
i'm trying to cross-compile XBMC for my freescale board using openembedded build system,
It seems that configure step goes well, but when it starts to compile build-in libraries, it fails to find correct version of *.so libraries (for example, it trtes to use /use/lib/libz.so from my host system). Because I'm not so goodr with GNU build system, I can not solve this issue myself.
Here is steps and log files
1. First i run bitbake -c devshell xbmc to go into debug console to reproduce all steps by myself
2. then run bootstrap.angstrom from "xbmc for beagleboard" project. No errors LOG
3. Then run configure . LOG
4. then run "make". This step fails. FULL_LOG (1.1 M)
here few last lines
As I see, for some reason, build system try to use libraries from my host system. How this can happen and how it can be avoided? Please give some advice.
Thank you.
i'm trying to cross-compile XBMC for my freescale board using openembedded build system,
It seems that configure step goes well, but when it starts to compile build-in libraries, it fails to find correct version of *.so libraries (for example, it trtes to use /use/lib/libz.so from my host system). Because I'm not so goodr with GNU build system, I can not solve this issue myself.
Here is steps and log files
1. First i run bitbake -c devshell xbmc to go into debug console to reproduce all steps by myself
2. then run bootstrap.angstrom from "xbmc for beagleboard" project. No errors LOG
3. Then run configure . LOG
4. then run "make". This step fails. FULL_LOG (1.1 M)
here few last lines
Code:
/bin/sh ./libtool --tag=CC --mode=link arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/home/mike/freescale/angstrom-setup-scripts/build/tmp-angstrom_2010/sysroots/armv7a-angstrom-linux-gnueabi -Wall -ggdb2 -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_DEBUG -Wa,-march=armv7a -mfloat-abi=softfp -mno-apcs-stack-check -mcpu=cortex-a8 -mfpu=neon -mvectorize-with-neon-quad -g -O2 -version-info 3:0:3 -Wl,-O1 -Wl,--hash-style=gnu -o libid3tag.la -rpath /home/mike/freescale/angstrom-setup-scripts/build/tmp-angstrom_2010/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib version.lo ucs4.lo latin1.lo utf16.lo utf8.lo parse.lo render.lo field.lo frametype.lo compat.lo genre.lo frame.lo crc.lo util.lo tag.lo file.lo metadata.lo -lz
libtool: link: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/home/mike/freescale/angstrom-setup-scripts/build/tmp-angstrom_2010/sysroots/armv7a-angstrom-linux-gnueabi -shared .libs/version.o .libs/ucs4.o .libs/latin1.o .libs/utf16.o .libs/utf8.o .libs/parse.o .libs/render.o .libs/field.o .libs/frametype.o .libs/compat.o .libs/genre.o .libs/frame.o .libs/crc.o .libs/util.o .libs/tag.o .libs/file.o .libs/metadata.o /usr/lib/libz.so -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -mfloat-abi=softfp -mno-apcs-stack-check -mcpu=cortex-a8 -mfpu=neon -mvectorize-with-neon-quad -Wl,-O1 -Wl,--hash-style=gnu -Wl,-soname -Wl,libid3tag.so.0 -o .libs/libid3tag.so.0.3.0
/usr/lib/libz.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[4]: *** [libid3tag.la] Error 1
make[4]: Leaving directory `/home/mike/freescale/angstrom-setup-scripts/build/tmp-angstrom_2010/work/armv7a-angstrom-linux-gnueabi/xbmc-10.1-r1/xbmc-10.1/xbmc/lib/libid3tag/libid3tag'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mike/freescale/angstrom-setup-scripts/build/tmp-angstrom_2010/work/armv7a-angstrom-linux-gnueabi/xbmc-10.1-r1/xbmc-10.1/xbmc/lib/libid3tag/libid3tag'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mike/freescale/angstrom-setup-scripts/build/tmp-angstrom_2010/work/armv7a-angstrom-linux-gnueabi/xbmc-10.1-r1/xbmc-10.1/xbmc/lib/libid3tag/libid3tag'
make[1]: *** [libid3tag/.libs/libid3tag.so] Error 2
make[1]: Leaving directory `/home/mike/freescale/angstrom-setup-scripts/build/tmp-angstrom_2010/work/armv7a-angstrom-linux-gnueabi/xbmc-10.1-r1/xbmc-10.1/xbmc/lib/libid3tag'
make: *** [libid3tag] Error 2
As I see, for some reason, build system try to use libraries from my host system. How this can happen and how it can be avoided? Please give some advice.
Thank you.