编译Android版LibVLC时出错 [英] Error Compiling LibVLC for Android
问题描述
我尝试在ubuntu 16.04上为Android编译LibVLC,但出现了以下错误:
i tried to compile LibVLC for android on ubuntu 16.04 and got the follwing error:
priv.c:122: error: undefined reference to 'hw_get_module'
clang ++:错误:链接器命令失败,退出代码为1(使用-v查看调用)制作:*** [private_libs/obj/local/armeabi-v7a/libanw.10.so]错误1
clang++: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [private_libs/obj/local/armeabi-v7a/libanw.10.so] Error 1
具有最新的vlc-来自git和android sdk 23,android ndk 13的android.
Have latest vlc - android from git and android sdk 23, android ndk 13.
我的第一次尝试是将APP_STL:= stlport_static添加到Application.mk,但这并不能解决问题.
My first attempt was to add APP_STL := stlport_static to the Application.mk but this didnt fix the problem.
请,有人可以帮忙吗?
亲切的问候
推荐答案
为经历同样困境的人们留下一些提示(我在ubuntu 16.04上编译):
Leaving some tips for people going through the same hell(I compile on ubuntu 16.04):
-
确保您具有依赖关系,并且所有内容都是最新的.
这是非常烦人的,但是缺少依赖项却是完全不相关的错误.
Make sure you have dependencies and everything is up to date.
It's superbly annoying but missing dependencies surface as a totally irrelevant error.
sudo apt-get install automake ant autopoint cmake build-essential libtool patch pkg-config protobuf-compiler ragel subversion unzip git openjdk-8-jre openjdk-8-jdk
sudo apt-get upgrade ant autoconf automake autopoint cmake gawk gcc g++ libtool m4 patch pkg-config libprotobuf-dev libprotobuf-c0-dev protobuf-c-compiler ragel subversion unzip
protobuf和gettext不在上面,因为您无法通过apt安装最新版本,因此您应该下载并编译它们.
protobuf and gettext are not in the above since you can't install the latest versions via apt, so you should download and compile them.
这篇关于编译Android版LibVLC时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!