MTK_android开发环境配置及编译
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Software
Configure Build Profile
gedit ~/.bashrc Add you Java folder to System Path source ~/.bashrc (Not nessary, it will also be set by mbldenv.sh when makeMtk)
Install Ubuntu
Install Software
Biblioteka BaiduInstall Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Software
Check Environment
From the sceenshot above, we know my environment is failed for my low physical memory. Sometime our computers may not meet the lowest hardware requriement for APLS, So we need to cheat in environment check. gedit mediatek/build/tools/checkEnv.py
2. Change default sh soft link to bash
sudo rm /bin/sh sudo ln -s /bin/bash /bin/sh
3. Install JDK 1.6 (recommended installation way)
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u29-download-513648.html sudo chmod a+x jdk-6u29-linux-x64.bin ./jdk-6u29-linux-x64.bin
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install build relative packages
1.Use the following command to get these packages to install
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Software
Build a new project
Install Software
Build a new project
You can review the logs in /out/target/product, if there are any errors.
Install Software
Perl 5.10.X Python 2.6.X
Environment Requirements
Make utility
GNU make 3.81 or above
Others
wine1.1 or above bison 2.4.X, flex 2.5.X, gperf 3.0.X mingw32 (to build win32 executable for emulator on linux host) unix2dos/tofrodos (to build windows tool for SDK package)
Environment Requirements
OS
Linux Ubuntu10.04(LTS, long term support version) 64bit
Memory & Disk Space
2+ G physical memory (Avoid “JVM run out of memory” & Speed up build performance) 10+G or more disk space is needed (to build Android tree)
Build a new project
You can find all you product images in out/target/product/tinnopmt73_gb
We use “makeMtk” build ALPS
Build ALPS
If you type ./makeMtk or ./makeMtk –h, you will get how to use the makeMtk
Install Software
Required Packages & recommend installation way
Install Software
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Check Environment
If having finished installing your environment to build ALPS, You can use this command ./makeMtk check-env to know if the environment is prepared
2.Build the Linux Kernel for tinnopmt73_gb ./makeMtk tinnopmt73_gb r k ./makeMtk tinnopmt73_gb bootimage
3. Build the Galley.apk for tinnopmt73_gb ./makeMtk tinnopmt73_gb r dr Gallery Notice: mk is a link to makeMtk, so we can use mk to replace makeMtk
We use “makeMtk” build ALPS
Build ALPS
Build ALPS
We use “makeMtk” build ALPS
For example
1.Build the whole project for tinnopmt73_gb ./makeMtk tinnopmt73_gb r
Build a new project
Take tinnopmt73_gb for Example ./makeMtk listp You will get all the project supported in your source code
Build the whole project tinnopmt73_gb ./makeMtk tinnopmt73_gb r Notice: If you fail in building android, try make update-api in ALPS root directory
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
sudo apt-get install flex bison gperf build-essential curl zlib1g-dev g++-multilib g++-4.4-multilib libc6-devi386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z1-dev wine mingw32 tofrodos
Compilation tool chain
arm-eabi-4.4.3 (can get from released SW package, prebuilt/linux-x86/toolchain/arm-eabi4.4.3) gcc 4.4.3 JDK1.6
Perl, Python interpreter
Install Software
Check Environment
Now the environment is OK, Of course, you can change “checkEnv.py” for other failure if necessary.
Install Software
MTK_android开发环境配置及编 译开发
Android
Android Anatomy
Android
Android Source Code
|-- Makefile |-- bionic |-- bootloader |-- build |-- cts |-- dalvik |-- development |-- external |-- frameworks |-- hardware |-- kernel |-- mediatek |-- packages |-- prebuilt |-- recovery |-- system (全局的Makefile, make 总入口) (一些基础的库的源代码) (引导加载器) (是编译和配置所需要的脚本和工具) (cts测试源码) (JAVA虚拟机有关的代码) (程序开发所需要的模板和工具) (目标机器使用的一些库) (应用程序的框架层) (与硬件相关的库, 供framework调用) (Linux内核源代码) (MTK平台相关代码) (Android的各种应用程序) (Android在各种平台下编译的预置脚本) (与目标的恢复功能相关) (Android的底层的一些库以及守护进程)
Install Software
Configure Build Profile
gedit mbldenv.sh then change the Java, eabi, and python path for your computer Take mine for example:
Install Software
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Software
Configure Build Profile
gedit ~/.bashrc Add you Java folder to System Path source ~/.bashrc (Not nessary, it will also be set by mbldenv.sh when makeMtk)
Install Ubuntu
Install Software
Biblioteka BaiduInstall Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Software
Check Environment
From the sceenshot above, we know my environment is failed for my low physical memory. Sometime our computers may not meet the lowest hardware requriement for APLS, So we need to cheat in environment check. gedit mediatek/build/tools/checkEnv.py
2. Change default sh soft link to bash
sudo rm /bin/sh sudo ln -s /bin/bash /bin/sh
3. Install JDK 1.6 (recommended installation way)
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u29-download-513648.html sudo chmod a+x jdk-6u29-linux-x64.bin ./jdk-6u29-linux-x64.bin
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install build relative packages
1.Use the following command to get these packages to install
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Software
Build a new project
Install Software
Build a new project
You can review the logs in /out/target/product, if there are any errors.
Install Software
Perl 5.10.X Python 2.6.X
Environment Requirements
Make utility
GNU make 3.81 or above
Others
wine1.1 or above bison 2.4.X, flex 2.5.X, gperf 3.0.X mingw32 (to build win32 executable for emulator on linux host) unix2dos/tofrodos (to build windows tool for SDK package)
Environment Requirements
OS
Linux Ubuntu10.04(LTS, long term support version) 64bit
Memory & Disk Space
2+ G physical memory (Avoid “JVM run out of memory” & Speed up build performance) 10+G or more disk space is needed (to build Android tree)
Build a new project
You can find all you product images in out/target/product/tinnopmt73_gb
We use “makeMtk” build ALPS
Build ALPS
If you type ./makeMtk or ./makeMtk –h, you will get how to use the makeMtk
Install Software
Required Packages & recommend installation way
Install Software
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Check Environment
If having finished installing your environment to build ALPS, You can use this command ./makeMtk check-env to know if the environment is prepared
2.Build the Linux Kernel for tinnopmt73_gb ./makeMtk tinnopmt73_gb r k ./makeMtk tinnopmt73_gb bootimage
3. Build the Galley.apk for tinnopmt73_gb ./makeMtk tinnopmt73_gb r dr Gallery Notice: mk is a link to makeMtk, so we can use mk to replace makeMtk
We use “makeMtk” build ALPS
Build ALPS
Build ALPS
We use “makeMtk” build ALPS
For example
1.Build the whole project for tinnopmt73_gb ./makeMtk tinnopmt73_gb r
Build a new project
Take tinnopmt73_gb for Example ./makeMtk listp You will get all the project supported in your source code
Build the whole project tinnopmt73_gb ./makeMtk tinnopmt73_gb r Notice: If you fail in building android, try make update-api in ALPS root directory
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
Install Ubuntu
Install Software
sudo apt-get install flex bison gperf build-essential curl zlib1g-dev g++-multilib g++-4.4-multilib libc6-devi386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z1-dev wine mingw32 tofrodos
Compilation tool chain
arm-eabi-4.4.3 (can get from released SW package, prebuilt/linux-x86/toolchain/arm-eabi4.4.3) gcc 4.4.3 JDK1.6
Perl, Python interpreter
Install Software
Check Environment
Now the environment is OK, Of course, you can change “checkEnv.py” for other failure if necessary.
Install Software
MTK_android开发环境配置及编 译开发
Android
Android Anatomy
Android
Android Source Code
|-- Makefile |-- bionic |-- bootloader |-- build |-- cts |-- dalvik |-- development |-- external |-- frameworks |-- hardware |-- kernel |-- mediatek |-- packages |-- prebuilt |-- recovery |-- system (全局的Makefile, make 总入口) (一些基础的库的源代码) (引导加载器) (是编译和配置所需要的脚本和工具) (cts测试源码) (JAVA虚拟机有关的代码) (程序开发所需要的模板和工具) (目标机器使用的一些库) (应用程序的框架层) (与硬件相关的库, 供framework调用) (Linux内核源代码) (MTK平台相关代码) (Android的各种应用程序) (Android在各种平台下编译的预置脚本) (与目标的恢复功能相关) (Android的底层的一些库以及守护进程)
Install Software
Configure Build Profile
gedit mbldenv.sh then change the Java, eabi, and python path for your computer Take mine for example:
Install Software