vlc android编译,Android VLC 编译出错处理

错误一:

出错信息:

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。若碰到其它的库文件有类似的错误,可采用该办法。

阅读(5772) | 评论(0) | 转发(1) |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值