我们经常会遇到这样的问题,就是将一些现有的,成熟的 C 库移植到 android" style="color: blue; text-decoration: underline; " target="_blank">android
by
myfaxmail
-
移动操作系统
-
2011-12-23 02:09:33 阅读(888) 回复(0)
本帖最后由 yshihyu 于 2014-06-10 01:47 编辑 我一直有个疑问就是 open source 里面很多文件代码 , 有些文件代码根本不会编译到的代码文件 有什么办法可以知道编译过程用到哪些文件代码, 我想透过编译过程知道哪些是多余代码删除 这样在 trace code 比较方便 通常编译open source 步骤是这两个步骤有办法从这两个步骤知道哪些文件有编译? ./configure make 能透过timestamp ? 或是 git 纪录吗? 谢谢
最初始终无法生成.so文件,经过两天的测试才得出以下结果,虽然很粗浅,但希望能帮助一些朋友少走弯路: Apache-2.0.49 config: 1、在编译前调整 DEFAULT_SERVER_LIMIT值(否则最大为256) # vi /usr/local/src/httpd-2.0.48/server/mpm/prefork/prefork.c #define DEFAULT_SERVER_LIMIT 256 这个值调大为2000 # 编译: ./configure \ --prefix=/usr/local/apache_2.0.49 \ --enable-module=so \ --enable-rewrite=shared \ -...
sourcenav是一款非常不错的源码编辑,查看软件,同时还支持编译器和调试器的集成,可以构建成一套完整的IDE开发环境。 最新版本sourcenav-5.2b2,安装环境FC6. 安装过程如下: 1, tar -zxvf sourcenav-5.2b2.tar.gz Note: The following approach of making a new build directory instead of building the system comes from INSTALL.TXT. Actually you don't need to make a new building dir at all. ...
linux kernel 2.4.20, source navigator5.1.4.tar.gz 编译时出错过程如下: ..... bison -y -d /root/sourcenv/snavigator/parsers/fortran/fortran.y && mv y.tab.c fortran.c conflicts: 2 shift/reduce 然后make就停止编译啦,谁知道是怎么回事?跟我的版本有关系吗?
linux kernel 2.4.20, source navigator5.1.4.tar.gz 编译时出错过程如下: ..... bison -y -d /root/sourcenv/snavigator/parsers/fortran/fortran.y && mv y.tab.c fortran.c conflicts: 2 shift/reduce 然后make就停止编译啦,谁知道是怎么回事?跟我的版本有关系吗?
如果选择比较新的Linux版本(例如Fedora 10),则编译android将比较顺利,一般直接make就可以成功生成所需要的文件和系统内核。(最多需要安装gperf), 但在比较旧的Linux内核上编译android将遇到很多错误,本文以Fedora Core 5为例讲解所安装的步骤,供大家参考。 1. 因为android SDK需要JDK 5或JDK 6支持, 但是Fedora Core 5的默认Java版本为JDK 4 (1.4.2), 不能满足需求,因此首先需要升级JAVA. 从如下地址可以得到最...
一,先安装一堆软件包: apt-get install gcc g++ flex bison gperf libsdl-dev libesd0-dev libwxgtk2.8-dev build-essential zip valgrind sun-java6-jdk zlib1g-dev libncurses5-dev 二,下载源代码 curl http://android.git.kernel.org/repo > repo ; mv repo /usr/local/bin/repo; chmod a+x /usr/local/bin/repo 新建目录 mkdir /android mkdir source; cd source repo init -u git://android.git.kernel.org/platform/mani...
首先要编译内核,因为android是用的NOEABI,所以得先修改Makefile中的交叉编译工具为arm-none-linux-eabi-,ARCH为ARM,然后是内核配置选项,以下几个选项必选的: CONFIG_AEABI=y CONFIG_SHMEM=y CONFIG_ASHMEM=y CONFIG_ARM_THUMB=y CONFIG_android_BINDER_IPC=y CONFIG_android_LOGGER=y 生成zImage。 QT2410是ARMV4,用...
android source 我的操作系统: ubuntu10.10 首先,我们先安装一些常用的工具 curl: sudo apt-get install curl git: sudo apt-get install git g++: sudo apt-get install g++ android 源码的下载: 1. mkdir bin 建立bin目录 2. curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo 导入repo执行脚本 3. chmod a+x ~/bin/repo 增加repo的执行权限 4....
在freebsd4.9上安装mod_gzip: [code] csh#pwd /usr/ports/www/mod_gzip csh#make install ................................. ....................................................................... mod_gzip.c:8066: warning: `struct pool' declared inside parameter list mod_gzip.c:8066: conflicting types for `mod_gzip_generate_vary_header' mod_gzip.h:358: previous declaration of `mod_gzip_generate_va...