错误一:
出错信息:
CC posix/plugin.lo
../../src/posix/plugin.c: In function 'module_Load':
../../src/posix/plugin.c:50:50: warning: unused parameter 'lazy' [-Wunused-parameter]
CC posix/thread.lo
../../src/posix/thread.c:85:5: warning: #warning Monotonic clock not available. Expect timing issues. [-Wcpp]
../../src/posix/thread.c: In function 'vlc_cancel':
../../src/posix/thread.c:830:5: error: implicit declaration of function 'pthread_cancel' [-Werror=implicit-function-declaration]
../../src/posix/thread.c: In function 'vlc_savecancel':
../../src/posix/thread.c:847:5: error: implicit declaration of function 'pthread_setcancelstate' [-Werror=implicit-function-declaration]
../../src/posix/thread.c:847:39: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
../../src/posix/thread.c:847:39: note: each undeclared identifier is reported only once for each function it appears in
../../src/posix/thread.c: In function 'vlc_restorecancel':
../../src/posix/thread.c:867:9: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
../../src/posix/thread.c: In function 'vlc_testcancel':
../../src/posix/thread.c:884:5: error: implicit declaration of function 'pthread_testcancel' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [posix/thread.lo] Error 1
make[3]: Leaving directory `/srv/android/vlc/android/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/srv/android/vlc/android/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/srv/android/vlc/android'
make: *** [all] Error 2
解决方法:
进入下载的android vlc目录,执行以下指令:
# cd vlc
# git reset --hard origin
# git pull origin master
# git checkout -b android ${TESTED_HASH}
# git am ../patches/*
注:在老的git版本中git checkout并没有-B的选项,所以一开始执行的时候并没有下载android版本的vlc代码,故使用git checkout -b android ${TESTED_HASH}。
错误二:
出错信息:
BUILD FAILED
/usr/local/android-sdk-linux/tools/ant/build.xml:517: Unable to resolve project target 'android-15'
Total time: 3 seconds
make: *** [vlc-android/bin/VLC-debug.apk] Error 1
rm android-libs/libmedia.c android-libs/libutils.c android-libs/libstagefright.c android-libs/libbinder.c
解决方法:
进入到android-sdk-linux/tools目录,执行“./android“,下载Android 4.0.3(API15)相关文件。
错误三:
出错信息:
curl -f -L -- "" > "../../contrib/tarballs/speex-git.tar.gz"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 814 100 814 0 0 226 0 0:00:03 0:00:03 --:--:-- 23941
../../contrib/src/speex/rules.mak:20: .sum-speex not implemented
touch .sum-speex
touch -r .sum-speex .sum-speexdsp
rm -Rf speex-git
mkdir -p speex-git
zcat "../../contrib/tarballs/speex-git.tar.gz" | (cd speex-git && tar xv --strip-components=1)
gzip: ../../contrib/tarballs/speex-git.tar.gz: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
make: *** [speex] Error 2
解决方法:
在ie栏中直接输入“”(会开始下载你所需要的文件),然后将相应下载的压缩文件存放于contrib/tarballs/目录下,将名字改成speex-git.tar.gz。若碰到其它的库文件有类似的错误,可采用该办法。
阅读(626) | 评论(0) | 转发(0) |