吾编译脚本是:
UILD_LIBS=${HOME}/build_libs export PATH=${BUILD_LIBS}/bin:${PATH} CFLAGS=${BUILD_LIBS}/include LDFLAGS=${BUILD_LIBS}/lib if [ -f autogen.sh ]; then chmod 777 autogen.sh # ./autogen.sh fi autoreconf -fvi chmod 777 configure ./configure \ --prefix=${BUILD_LIBS} \ --exec-prefix=${BUILD_LIBS} \ CFLAGS=${BUILD_LIBS}/include \ LDFLAGS=${BUILD_LIBS}/lib \ --with-ssl --with-srtp --with-vpx --with-yuv --with-amr --with-speex --with-speexdsp --enable-speexresampler --enable-speexdenoiser --with-opus --with-gsm --with-ilbc --with-g729 --with-ffmpeg
结果报错:
/usr/bin/mkdir -p '/usr/local/lib' /bin/bash ../libtool --mode=install /usr/bin/install -c libtinySAK.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libtinySAK.so.0.0.0 /usr/local/lib/libtinySAK.so.0.0.0 /usr/bin/install: cannot create regular file '/usr/local/lib/libtinySAK.so.0.0.0': Permission denied make[2]: *** [Makefile:473:install-libLTLIBRARIES] 错误 1 make[2]: 离开目录“/home/quantum6/doubango/doubango/tinySAK” make[1]: *** [Makefile:764:install-am] 错误 2 make[1]: 离开目录“/home/quantum6/doubango/doubango/tinySAK” make: *** [Makefile:493:install-recursive] 错误 1
这样看来是autoreconf设置不对?