Ubuntu10.0.4安装NDK
android版本遇到.so文件crash,需要使用ndk来定位报错代码。
从这里下载ndk安装文件: http://www.androiddevtools.cn/
运行 ./android-ndk-r10d-linux-x86_64.bin 提示 libc.so.6: version `GLIBC_2.14' not found, 然后退出安装。
只好先安装glibc2.14 参考:http://blog.csdn.net/cpplang/article/details/8462768
到http://www.gnu.org/software/libc/下载glibc2.14, 然后安装glibc2.14, 结果报错:
make[2]: *** [misc/syslog.o] Error 1
......
make[1]: *** [misc/subdir_lib] Error 2
根据报错信息misc/subdir_lib] Error 2搜索到此贴——http://blog.chinaunix.net/uid-223060-id-2215317.html ,修改configure配置
$ echo "CFLAGS +=-O2 -U_FORTIFY_SOURCE -march=i586 -mtune=native -fno-stack-protector" >configparm
$ ../glibc-2.14/configure --prefix=/usr --disable-profile --enable-kernel=2.6.15
-march=i586改为自己机器对应的cpu架构, -kernel=2.6.15改为自己的ubuntu内核版本
但修改configure配置后,还是报一样的错。然后是一堆重复的帖子,修改后重复同样的错误。
过了一天后,搜索ubuntu10.0.4安装glibc终于搜到了解决问题的帖子——http://blog.csdn.net/brucexu1978/article/details/8811836 ,
$ export CFLAGS="-O2 -U_FORTIFY_SOURCE -mtune=native -fno-stack-protector"
$ ./glibc-2.14/configure --prefix=/usr --disable-profile --enable-add-ons --libexecdir=/usr/lib --with-headers=/usr/include
$ make
然后glibc2.14顺利make(看来搜索关键字很重要啊!!!)
但make install时,最后出现了报错信息
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
Links like libm.so -> libm.so. (where libm.so. is an old library) are wrong,
libm.so should point to the newly installed glibc file - and there should be
only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[]: *** [install] Error
make[]: Leaving directory `/glibc-2.14'
make: *** [install] Error
难道要卡在glibc安装问题上了?看了下面的帖子后,发现此错误可以忽略,不影响glibc使用。
参考贴——http://www.linuxsir.org/bbs/thread311773.html
然后再运行 ./android-ndk-r10d-linux-x86_64.bin , ndk顺利安装
Ubuntu10.0.4安装NDK的更多相关文章
- ubuntu10.04编译安装LAMP
ubuntu10.04编译安装LAMP以及简单wordpress的使用 : http://linuxme.blog.51cto.com/1850814/971631 一.源码安装LAMP 网上有一堆关 ...
- 在ubuntu10.0.4下更新git
今天想到要在ubuntu10.0.4下下载android的源码学习一下.源码下载用到了git.以前安装过git以为应该没什么问题的,没想到报了 “fatal: git 1.7.2 or later r ...
- ubuntu10.10 tftp安装,配置,测试
ubuntu10.10 tftp安装,配置,测试 成于坚持,败于止步 虽然ubuntu/centos/redhat都是linux,但是内核其中存在一定的修改,所以对于tftp服务器的安装存在不同的命令 ...
- CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14
准备篇: CentOS 7.0系统安装配置图解教程 http://www.osyunwei.com/archives/7829.html 一.配置防火墙,开启80端口.3306端口 CentOS 7. ...
- centos 7.0 编译安装php 7.0.3
php下载页面 http://cn2.php.net/downloads.php 7.0.3多地区下载页面 http://cn2.php.net/get/php-7.0.3.tar.gz/from/a ...
- centos7.0 下安装jdk1.8
centos7.0这里安装jdk1.8采用yum安装方式,非常简单. 1.查看yum库中jdk的版本 [root@localhost ~]# yum search java|grep jdk 2.选择 ...
- Ubuntu14.0下安装Zend Framework 2
Ubuntu14.0下安装Zend Framework 2为了安装这个东西,忙活了快一天了,参考中文博客一直没有安装成功,有些博客的时间也是已经很早了,后来google看英文版的才安装成功,这里记录一 ...
- mysql 5.0.46安装配置
http://os.chinaunix.net/a2008/0801/986/000000986346.shtml RPM包和源码包存放位置 /usr/local/src 源码包编译安装位置(pref ...
- Win7系统安装好Axure点击运行报.NET Framework4.0未安装的解决办法
1:问题 由于工作需要,需要研究一下Axure原型设计软件的使用方式,在公司的电脑上成功安装了从同事那里拿来的Axure7.0软件,能够正确运行没有任何问题,在自己的电脑上安装的也非常顺利,不过运 ...
随机推荐
- ADF_Controller系列2_绑定TasksFlow、Region和Routers(Part2)
2015-02-14 Created By BaoXinjian
- php操作文件及下载图片脚本
<?php set_time_limit(0); $handle = fopen('article.txt','r'); for($i=0;$i<1;$i++) { $count = 0; ...
- 异步编程 z
走进异步编程的世界 - 开始接触 async/await 序 这是学习异步编程的入门篇. 涉及 C# 5.0 引入的 async/await,但在控制台输出示例时经常会采用 C# 6.0 的 $&qu ...
- 配置SQL Server 2005 远程连接(转)
方法如下: 一.为 SQL Server 2005 启用远程连接1. 单击"开始",依次选择"程序"."Microsoft SQL Server 2 ...
- Clustering with the ArcGIS API for Flex
Clustering is an excellent technique for visualizing lotss of point data. We've all seen application ...
- java测试题总结
1.Struts2处理来自多个页面的同一个Action请求,那么它们是不是同一个action. struts2中每个请求都是独立的.每一次请求都会去new一个新的action,所有写在action中的 ...
- Linux:去除认证,加速 SSH登录
编辑配置文件 /etc/ssh/sshd_config vim /etc/ssh/sshd_config 找到 UseDNS选项,如果没有注释,将其注释 #UseDNS yes 添加 UseDNS n ...
- NHibernate系列文章三:简单的增删改查询
摘要 上一篇文章只完成了简单的NHibernate安装.配置和连接数据库.这篇文章介绍怎样实现最简单的数据库读写操作. 1. 重构ISessionFactory生成过程 将生成ISessionFact ...
- js 小工具-- 获取主机名
<script type="text/javascript"> function getHostName(url) { var host = "null&qu ...
- mongodb固定集合,建立管理员安全验证
建立普通集合 db.createCollections aaa; 建立固定集合名称book capped true 固定集合 size大小 max:文档数量 db.createCollection(& ...