Cyanogenmod source code compilation Simulator

Source: Internet
Author: User

For detailed compilation methods, refer to the Wiki of cyanogenmod.

Configure build

Now, your environment must be configured to build specifically for the android emulator. To set up your build environment:

. build/envsetup.shlunch cyanogen_generic-eng
Compile

Next, we will build the actual Rom.

mka
Problems encountered during compilation: Problem 1:
  1. Bootable/recovery/applypatch/bspatch. C: 29: 19: Error: bzlib. h: no such file or directory
  2. Make: * ** if no rule is available, you can create the target "Out/target/product/generic/obj/executables/updater_intermediates/linked/Updater/ static_libraries/libbz_intermediates/libbz. A ". Stop.

The two files can be found in the official Android source code, both under the external/Bzip2 directory. Check the files in the cyanogenmod directory. They are empty and the repo is not synced. Therefore, git is used for this project separately.

git clone git://github.com/CyanogenMod/android_external_bzip2.git -b gingerbread

Copy the. Git directory to. repo/projects/external/bzip2.git

Copy other files to the external/Bzip2 directory.

Question 2:
  • Simulator black screen

Solution: Find the kernel-qemu-armv7 in CM source code, in ~ /Prebuilt/Android-arm/kernel/kernel-qemu-armv7, copy it to the corresponding SDK directory, specify the kernel when opening the simulator:

#emulator @CM7 -kernel PATH/images/kernel-qemu-armv7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.