这里主要是遇到两个问题:第一个是,自己编写的hal层源码怎么添加进Android的默认编译中去,也就是说在根目录执行make时,自己编写hal源码也会被编译。第二个问题是,编译完成后还要自动安装在指定的系统目录lib/hw下。
刚开始时不太了解,总是需要使用mmm来进行编译安装,但是打包之后再编译这是不现实的。为此需要添加到默认中去。
一般来说hal层所在的位置在hardware/libhar...
分类:
移动开发 时间:
2014-09-26 11:25:58
阅读次数:
185
#前言#>____ 5 6 void make_window8(unsigned char *buf, int xsize, int ysize, char *title); 7 void putfonts8_asc_sht(struct SHEET *sht, int x, int y, ...
分类:
其他好文 时间:
2014-09-26 02:17:18
阅读次数:
232
在安装nginx之前我们需要安装一些必要的软件包yum install gcc make pcre* zlib* -y1:下载nginx[root@centos6_64 ~]#wgethttp://nginx.org/download/nginx-1.6.2.tar.gz[root@centos6_...
分类:
其他好文 时间:
2014-09-26 01:46:08
阅读次数:
178
最简单的后缀数组求最长不可重叠的重复字串长度的问题。。具体见论文《后缀数组——处理字符串的有力工具#include #include #include #include #include #include #include using namespace std; #define MP make_....
分类:
其他好文 时间:
2014-09-25 23:49:07
阅读次数:
197
面向内容的优化规则目前有 10 条。1. 尽量减少HTTP请求 (Make FewerHTTPRequests)作为第一条,可能也是最重要的一条。根据 Yahoo! 研究团队的数据分析,有很大一部分用户访问会因为这一条而取得最大受益。有几种常见的方法能切实减少HTTP请求:1)合并文件,比如把多个C...
分类:
Web程序 时间:
2014-09-25 21:40:17
阅读次数:
229
正确地保存编译内核产生的.config文件-使用make savedefconfig,一直以来保存编译内核生成的.config文件都是cp .config arch/arm/configs/xxx_defconfig来保存的。但是这其实是一个错误的方法。原因听我细细道来。...
分类:
其他好文 时间:
2014-09-25 20:26:27
阅读次数:
411
linux make手册:http://www.gnu.org/software/make/manual/make.html一篇文章:假设我们有一个程序由5个文件组成,源代码如下:/*main.c*/#include "mytool1.h"#include "mytool2.h"int main()...
分类:
其他好文 时间:
2014-09-25 17:15:19
阅读次数:
232
Sometimes it is obvious what the attributes of an object should be, but other times you have to make decisions. For examples, imagine you are designin...
分类:
其他好文 时间:
2014-09-25 17:09:17
阅读次数:
290
下载源码目录: /usr/local/src安装依赖:yum -y install gcc libxml2-dev curl screen \libpng12-dev autoconf libpcre3-dev make bzip2 \libevent-dev patch libjpeg62-dev...
分类:
数据库 时间:
2014-09-25 15:45:49
阅读次数:
240
安装cpulimit? 使用源码安装 # cd /tmp # wget ‘http://downloads.sourceforge.net/cpulimit/cpulimit-1.1.tar.gz‘ # tar cpulimit-1.1.tar.gz# cd cpulimit-1.1 # make # cp cpulimit /usr/local/sbin/ # rm -...
分类:
系统相关 时间:
2014-09-25 13:58:49
阅读次数:
274