错误1:
HTTPS_CA_DIR=/etc/pki/tls/certs /home/bb/dev/lp-android/submodules/linphone/scripts/mk-ca-bundle.pl
/home/bb/dev/lp-android/res/raw/rootca.pem
/bin/sh: /home/bb/dev/lp-android/submodules/linphone/scripts/mk-ca-bundle.pl: 权限不够
make: *** [/home/bb/dev/lp-android/res/raw/rootca.pem] 错误 126
解决:rootca.pem 不存在,将samples/res/raw/rootca.pem复制过去即可
错误2:
No sub-builds to iterate on
(Stripping trailing CRs from patch; use --binary to disable.)
patching file submodules/externals/ffmpeg/library.mak
Hunk #1 FAILED at 54 (different line endings).
1 out of 1 hunk FAILED -- saving rejects to file submodules/externals/ffmpeg/library.mak.rej
make: *** [/home/bb/dev/lp-android/submodules/externals/ffmpeg/non_versioned_soname_patch_applied.txt] 错误 1
解决: dos2unix /home/bb/dev/lp-android/submodules/submodules/externals/ffmpeg/library.mak
错误3:
touch /home/bb/dev/lp-android/submodules/externals/ffmpeg/non_versioned_soname_patch_applied.txt
mkdir -p /home/bb/dev/lp-android/submodules/externals/build/ffmpeg/arm && \
cd /home/bb/dev/lp-android/submodules/externals/build/ffmpeg/arm && \
/home/bb/dev/lp-android/submodules/externals/ffmpeg/configure --target-os=linux --enable-cross-compile --
enable-runtime-cpudetect --disable-everything --disable-doc --disable-ffplay --disable-ffmpeg --disable-ffprobe --
disable-ffserver --disable-avdevice --disable-avfilter --disable-avformat --disable-swresample --disable-network --
enable-decoder=mjpeg --enable-encoder=mjpeg --enable-decoder=mpeg4 --enable-encoder=mpeg4 --enable-
decoder=h264 --enable-decoder=h263p --enable-encoder=h263p --enable-decoder=h263 --enable-encoder=h263 --
extra-cflags="-w" --disable-static --enable-shared --disable-symver --build-suffix=-linphone-arm --arch=arm --
sysroot=/home/bb/android-sdk/android-ndk-r10d/platforms/android-14/arch-arm --cross-prefix=/home/bb/android-
sdk/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --
enable-pic
/bin/sh:行2: /home/bb/dev/lp-android/submodules/externals/ffmpeg/configure: 权限不够
make: *** [/home/bb/dev/lp-android/submodules/externals/build/ffmpeg/arm/config.h] 错误 126
解决:发大招。。。。。
find -type f | xargs dos2unix -o
chmod -R 777 *
错误4:
BUILD FAILED
/home/bb/android-sdk/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/bb/android-sdk/sdk/tools/ant/build.xml:698: null returned: 127
Total time: 3 seconds
make: *** [javah] 错误 1
[root@localhost lp-android]# vi /home/bb/android-sdk/sdk/tools/ant/build.xml
[root@localhost lp-android]# vi README
[root@localhost lp-android]# ant -e -S javah
Buildfile: /home/bb/dev/lp-android/build.xml
No sub-builds to iterate on
BUILD FAILED
/home/bb/android-sdk/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/bb/android-sdk/sdk/tools/ant/build.xml:698: null returned: 127
在readme中已经说明:
yum whatprovides libstdc++.so.6
yum whatprovides libgcc1
yum whatprovides zlib1g
yum whatprovides libncurses5
解决:
# yum install -y compat-libstdc++-296.i686 =
=====失败
# yum install -y compat-libstdc++-33.i686
错误5:
cd /home/bb/dev/lp-android/submodules/externals/build/openh264/x86 && \
make libraries -j2 OS=android ARCH=x86 NDKROOT=/home/bb/android-sdk/android-ndk-r10d TARGET=android-19
make[1]: 进入目录“/home/bb/dev/lp-android/submodules/externals/build/openh264/x86”
cd ./ && sh ./codec/common/generate_version.sh
Keeping existing codec/common/inc/version_gen.h
make[1]: 离开目录“/home/bb/dev/lp-android/submodules/externals/build/openh264/x86”
ant -e -S javah
Buildfile: /home/bb/dev/lp-android/build.xml
No sub-builds to iterate on
BUILD FAILED
/home/bb/android-sdk/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/home/bb/android-sdk/sdk/tools/ant/build.xml:698: null returned: 127
Total time: 2 seconds
解决:安装两个rpm包 再安装 ia32lib包
rpm -ivp ia32-libs-2014-3pclos2014.x86_64.rpm
rpm -ivp zlib-1.2.7-13.el7.i686.rpm
rpm -ivp ia32-libs-2014-3pclos2014.x86_64.rpm
注:需要自行安装dos2unix,忘了在哪儿装的了。
最后看见这个:什么意思?disable后,还可以用吗?
***************************************************************************
***** CAUTION, this liblinphone SDK is built using 3rd party GPL code *****
***** Even if you acquired a proprietary license from Belledonne *****
***** Communications, this SDK is GPL and GPL only. *****
***** To disable 3rd party gpl code, please use: *****
***** $ make ENABLE_GPL_THIRD_PARTIES=0 *****
***************************************************************************