mipsel-linux-uclibc交叉编译opus

来源:互联网 发布:怎么删除淘宝我的评价 编辑:程序博客网 时间:2024/05/18 09:19


#!/bin/bash




DST=/home/depvlc/opus/home



A52_HOME=$DST
echo "####################"
echo "A52_HOME IS $A52_HOME"
echo "####################"




HOST=mipsel-linux-uclibc
./configure --prefix=${A52_HOME} --host=$HOST


echo "configure done ..."


===================================================================================


zhangbin@bogon:~/bcm/unimedia/depvlc/opus/opus-1.0.2$ source config_opus_media.sh
####################
A52_HOME IS /home/depvlc/opus/home
####################
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
checking whether make supports nested variables... yes
checking version.mk... 1.0.2
checking git revision... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-linux-uclibc-strip... mipsel-linux-uclibc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... mipsel-unknown-linux-uclibc
checking how to print strings... printf
checking for style of include used by make... GNU
checking for mipsel-linux-uclibc-gcc... mipsel-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-linux-uclibc-gcc accepts -g... yes
checking for mipsel-linux-uclibc-gcc option to accept ISO C89... none needed
checking dependency style of mipsel-linux-uclibc-gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by mipsel-linux-uclibc-gcc... mipsel-linux-uclibc-ld
checking if the linker (mipsel-linux-uclibc-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... mipsel-linux-uclibc-nm
checking the name lister (mipsel-linux-uclibc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to mipsel-unknown-linux-uclibc format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for mipsel-linux-uclibc-ld option to reload object files... -r
checking for mipsel-linux-uclibc-objdump... mipsel-linux-uclibc-objdump
checking how to recognize dependent libraries... pass_all
checking for mipsel-linux-uclibc-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for mipsel-linux-uclibc-ar... mipsel-linux-uclibc-ar
checking for archiver @FILE support... @
checking for mipsel-linux-uclibc-strip... (cached) mipsel-linux-uclibc-strip
checking for mipsel-linux-uclibc-ranlib... mipsel-linux-uclibc-ranlib
checking command to parse mipsel-linux-uclibc-nm output from mipsel-linux-uclibc-gcc object... ok
checking for sysroot... no
checking for mipsel-linux-uclibc-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... mipsel-linux-uclibc-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if mipsel-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no
checking for mipsel-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC
checking if mipsel-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes
checking if mipsel-linux-uclibc-gcc static flag -static works... yes
checking if mipsel-linux-uclibc-gcc supports -c -o file.o... yes
checking if mipsel-linux-uclibc-gcc supports -c -o file.o... (cached) yes
checking whether the mipsel-linux-uclibc-gcc linker (mipsel-linux-uclibc-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether mipsel-linux-uclibc-gcc and cc understand -c and -o together... yes
checking for mipsel-linux-uclibc-gcc option to accept ISO C99... -std=gnu99
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for C99 variable-size arrays... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for alloca... yes
checking for exp... no
checking for exp in -lm... yes
checking for doxygen... yes
checking if mipsel-linux-uclibc-gcc -std=gnu99 supports -fvisibility=hidden... yes
checking if mipsel-linux-uclibc-gcc -std=gnu99 supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... yes
checking for lrintf... yes
checking for lrint... yes
checking for __malloc_hook... no
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
configure: creating ./config.status
config.status: creating Makefile
config.status: creating opus.pc
config.status: creating opus-uninstalled.pc
config.status: creating doc/Makefile
config.status: creating doc/Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands


------------------------------------------------------------------------
  opus 1.0.2:  Automatic configuration OK.


    Compiler support:


      C99 var arrays: ................ yes
      C99 lrintf: .................... yes
      Alloca: ........................ yes


    General configuration:


      Floating point support: ........ yes
      Fast float approximations: ..... no
      Fixed point debugging: ......... no
      Custom modes: .................. no
      Assertion checking: ............ no
      Fuzzing: ....................... no


      API documentation: ............. yes

------------------------------------------------------------------------


Type "make; make install" to compile and install
Type "make check" to run the test suite

configure done ...
zhangbin@bogon:~/bcm/unimedia/depvlc/opus/opus-1.0.2$ 




========make install 

zhangbin@bogon:~/bcm/unimedia/depvlc/opus/opus-1.0.2$ make install
make[1]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[2]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/doc'
make[3]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[3]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/doc'
make[2]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
 /bin/mkdir -p '/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libopus.la '/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib'
libtool: install: /usr/bin/install -c .libs/libopus.so.0.3.0 /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib/libopus.so.0.3.0
libtool: install: (cd /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib && { ln -s -f libopus.so.0.3.0 libopus.so.0 || { rm -f libopus.so.0 && ln -s libopus.so.0.3.0 libopus.so.0; }; })
libtool: install: (cd /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib && { ln -s -f libopus.so.0.3.0 libopus.so || { rm -f libopus.so && ln -s libopus.so.0.3.0 libopus.so; }; })
libtool: install: /usr/bin/install -c .libs/libopus.lai /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib/libopus.la
libtool: install: /usr/bin/install -c .libs/libopus.a /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib/libopus.a
libtool: install: chmod 644 /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib/libopus.a
libtool: install: mipsel-linux-uclibc-ranlib /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib/libopus.a
libtool: finish: PATH="/opt/toolchains/stbgcc-4.5.3-1.3/bin:/usr/local/bin:/bin:/usr/bin:/sbin" ldconfig -n /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib


If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'


See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[3]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/doc'
make[4]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[4]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[4]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/doc'
make[5]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[5]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[4]: Nothing to be done for `install-exec-am'.
for f in `find html -type f \! -name "installdox"`; do  \
                /usr/bin/install -c -d /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/doc/opus/html/search;  \
                /usr/bin/install -c -m 644 $f /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/doc/opus/$f;    \
        done
/usr/bin/install -c -d /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3
cd man && find man3 -type f -name opus_*.3 \
                  -exec /usr/bin/install -c -m 644 \{} /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3 \;
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_decoder.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_multistream.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_custom.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_ctlvalues.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_encoder.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_libinfo.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_decoderctls.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_multistream_ctls.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_multistream.h.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_defines.h.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_repacketizer.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_encoderctls.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_types.h.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_errorcodes.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_genericctls.3': Permission denied
/usr/bin/install: cannot create regular file `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/man/man3/opus_custom.h.3': Permission denied
make[4]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/doc'
make[3]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/doc'
 /bin/mkdir -p '/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/aclocal'
 /usr/bin/install -c -m 644 opus.m4 '/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/share/aclocal'
 /bin/mkdir -p '/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib/pkgconfig'
 /usr/bin/install -c -m 644 opus.pc '/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/lib/pkgconfig'
 /bin/mkdir -p '/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/include/opus'
 /usr/bin/install -c -m 644 include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h '/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/home/include/opus'
make[2]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[1]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
zhangbin@bogon:~/bcm/unimedia/depvlc/opus/opus-1.0.2$ 




zhangbin@bogon:~/bcm/unimedia/depvlc/opus/opus-1.0.2$ 
zhangbin@bogon:~/bcm/unimedia/depvlc/opus/opus-1.0.2$ 
zhangbin@bogon:~/bcm/unimedia/depvlc/opus/opus-1.0.2$ make check
make[1]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[2]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/doc'
make[3]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[3]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/doc'
make  check-TESTS
make[2]: Entering directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
/bin/sh: line 9: ./celt/tests/test_unit_types: cannot execute binary file
FAIL: celt/tests/test_unit_types
/bin/sh: line 9: ./celt/tests/test_unit_mathops: cannot execute binary file
FAIL: celt/tests/test_unit_mathops
/bin/sh: line 9: ./celt/tests/test_unit_entropy: cannot execute binary file
FAIL: celt/tests/test_unit_entropy
/bin/sh: line 9: ./celt/tests/test_unit_laplace: cannot execute binary file
FAIL: celt/tests/test_unit_laplace
/bin/sh: line 9: ./celt/tests/test_unit_dft: cannot execute binary file
FAIL: celt/tests/test_unit_dft
/bin/sh: line 9: ./celt/tests/test_unit_mdct: cannot execute binary file
FAIL: celt/tests/test_unit_mdct
/bin/sh: line 9: ./celt/tests/test_unit_rotation: cannot execute binary file
FAIL: celt/tests/test_unit_rotation
/bin/sh: line 9: ./celt/tests/test_unit_cwrs32: cannot execute binary file
FAIL: celt/tests/test_unit_cwrs32
./tests/test_opus_api: line 117: /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/tests/.libs/lt-test_opus_api: cannot execute binary file
./tests/test_opus_api: line 117: /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/tests/.libs/lt-test_opus_api: Success
FAIL: tests/test_opus_api
./tests/test_opus_decode: line 117: /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/tests/.libs/lt-test_opus_decode: cannot execute binary file
./tests/test_opus_decode: line 117: /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/tests/.libs/lt-test_opus_decode: Success
FAIL: tests/test_opus_decode
./tests/test_opus_encode: line 117: /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/tests/.libs/lt-test_opus_encode: cannot execute binary file
./tests/test_opus_encode: line 117: /home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2/tests/.libs/lt-test_opus_encode: Success
FAIL: tests/test_opus_encode
=====================
11 of 11 tests failed
==================
===
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/home/lbteam/zhangbin/bcm/unimedia/depvlc/opus/opus-1.0.2'
make: *** [check-recursive] Error 1
zhangbin@bogon:~/bcm/unimedia/depvlc/opus/opus-1.0.2$ 



不管了




原创粉丝点击