随笔分类 -  android编译相关

安卓各种编译方式 NDK,MAKE等
摘要:1. vim kernel/include/generated/compile.h #define UTS_VERSION "#70 SMP Wed Sep 1 16:31:40 CST 2021" 2. [ 0.000000] Booting Linux on physical CPU 0x000 阅读全文
posted @ 2021-09-01 16:45 johnny_shi 阅读(161) 评论(0) 推荐(0)
摘要:本来以为在驱动模块代码中增加如下语句: MODULE_LICENSE("GPL"); 就可以解决问题。后来发现模块并没有加载进去。 阅读全文
posted @ 2021-06-21 15:31 johnny_shi 阅读(2927) 评论(0) 推荐(0)
摘要:insmod: failed to load *.KO Operation not permitted It shows you don't have the permit to do it just do like this : su then you can do what you want 阅读全文
posted @ 2021-06-17 09:17 johnny_shi 阅读(786) 评论(0) 推荐(0)
摘要:error: manifest missing or unreadable -- please run init due to i made a mistake by deleting .git of kernel , i need recover it . so i found solution 阅读全文
posted @ 2021-06-16 11:24 johnny_shi 阅读(912) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/mr_raptor/article/details/7540066 阅读全文
posted @ 2016-05-18 16:23 johnny_shi 阅读(194) 评论(0) 推荐(0)
摘要:在修改编译脚本之后 lunch ***-userdebug && make dist -j4 lunch ***-userdebug & make dist -j4 少了一个& 导致编译一开始就出现错误 添加上去就可以。 阅读全文
posted @ 2016-03-29 14:47 johnny_shi 阅读(308) 评论(0) 推荐(0)
摘要:在调试设备的时候。想要对文件进行读写 于是使用adb remount 出现提示。 请使用 ”adb disable-verity“ 于是使用adb disable-verity 的命令。 得到如下提示 disable-verity only works for userdebug builds 于是 阅读全文
posted @ 2016-03-29 14:19 johnny_shi 阅读(50307) 评论(2) 推荐(0)
摘要:cc1: error: unrecognized command line option "-m64"cc1: error: unrecognized command line option "-mno-red-zone"cc1: error: unrecognized command line o... 阅读全文
posted @ 2015-09-02 14:22 johnny_shi 阅读(3921) 评论(0) 推荐(1)
摘要:按照google的指引,一路很顺,最后make -j5的时候出现:make: *** No rule to make target `dalvik/vm/mterp/out/InterpAsm-x86.S', needed by `out/host/linux-x86/obj/SHARED_LIBR... 阅读全文
posted @ 2015-05-04 23:06 johnny_shi 阅读(1691) 评论(0) 推荐(0)
摘要:由于很多程序是用makefile编译linux应用程序的,如果移植到android就要重新写Android.mk,对于不熟悉这个的人来说,特别麻烦,所以这里介绍只修改makefile就能移植到android板子上面。还有试过这种方式,今天就试试。首先设置export PATH=~/rowboat-a... 阅读全文
posted @ 2015-04-14 15:55 johnny_shi 阅读(1120) 评论(0) 推荐(0)
摘要:Android 用的是 Bionic C, 而不是通常的glibc,因此简单使用交叉工具链并不能够编译出适合运行在android 设备上的 C/C++ 程序。交叉工具链可以很轻松在 Android 源码 prebuilts 目录下找到,但是直接编译会提示找不到各种标准库的头文件,需要指定 Bioni... 阅读全文
posted @ 2015-04-13 15:35 johnny_shi 阅读(4140) 评论(0) 推荐(0)
摘要:arm的编译器里已经有C标准库的lib包了,android为啥还要自己再实现呢google自己搞的bionic libc来替代glibc想来是有原因的,本来glibc也是lgpl,应该也没有版权问题,但是系统调用的接口有限,google应该是用自己的bionic libc来暴露出更多的系统调用接口,... 阅读全文
posted @ 2015-04-13 15:05 johnny_shi 阅读(569) 评论(0) 推荐(0)
摘要:http://www.busybox.net/downloads/binaries/1.21.1/ 根据不同的平台选择busybox已经编译好的 阅读全文
posted @ 2015-04-13 15:04 johnny_shi 阅读(232) 评论(0) 推荐(0)
摘要:Iperf移植记录1.生成arm编译需要的头文件config.h./configure --host=arm如果需要make cleanmake distclean2.增加Android.mk文件LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOC... 阅读全文
posted @ 2015-04-13 11:49 johnny_shi 阅读(1300) 评论(0) 推荐(0)
摘要:搞了半天android,竟然对external下的库一无所知?不能容忍!马上解决:android-mock:编译为java静态库。说明:Android Mock is a framework for mocking interfaces and classes on the Dalvik VM。资料... 阅读全文
posted @ 2015-04-10 15:49 johnny_shi 阅读(923) 评论(0) 推荐(1)
摘要:Android编译环境本身比较复杂,且不像普通的编译环境:只有顶层目录下才有Makefile文件,而其他的每个component都使用统一标准的Android.mk. Android.mk文件本身是比较简单的,不过它并不是我们熟悉的Makefile,而是经过了Android自身编译系统的很多处理,因... 阅读全文
posted @ 2015-04-10 15:45 johnny_shi 阅读(979) 评论(0) 推荐(0)
摘要:google 出结果http://stackoverflow.com/questions/15623609/including-curl-into-the-android-aosp............................................................... 阅读全文
posted @ 2015-04-10 15:33 johnny_shi 阅读(4530) 评论(0) 推荐(0)
摘要:Android源码目录下的build/envsetup.sh文件,描述编译的命令- m: Makes from the top of the tree.- mm: Builds all of the modules in the current directory.- mmm: Builds all... 阅读全文
posted @ 2015-04-10 14:01 johnny_shi 阅读(225) 评论(0) 推荐(0)