当前位置:   article > 正文

Android源码下载编译进程记录_you need to build the android system before launch

you need to build the android system before launching the emulator

由于没有硬件设备可调试android drm程序,因此便打算使用android emulator模拟器来调试。

教程参照Android 系统源码——下载到编译

REPO下载android源码,搭建编译环境,编译,大概花了一周时间,每个步骤都有好多问题,遇到问题就百度。目前编译还是失败,猜测原因还是虚拟机内存太少(4G),要么就在新买的2T硬盘上装ubuntu系统,不用虚拟机编译试试。

暂时先不弄了,弄android编译太费时间。可以先理论学习drm,看书不也是理论上学的么。

REPO下载的android源码是不包含linux内核源码,只有预编译好的内核镜像,内核源码还需另外下载

一、emulator也需要编译成功了才能运行

neo@neo-virtual-machine:~/bin/aosp$ source build/envsetup.sh 
neo@neo-virtual-machine:~/bin/aosp$ lunch aosp_arm-eng

============================================
PLATFORM_VERSION_CODENAME=UpsideDownCake
PLATFORM_VERSION=UpsideDownCake
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-142-generic-x86_64-Ubuntu-16.04.7-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=AOSP.MASTER
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl hardware/google/camera hardware/google/camera/devices/EmulatedCamera device/generic/goldfish device/generic/goldfish-opengl
============================================
neo@neo-virtual-machine:~/bin/aosp$ emulator
emulator        emulator-check  
neo@neo-virtual-machine:~/bin/aosp$ emulator
emulator        emulator-check  
neo@neo-virtual-machine:~/bin/aosp$ emulator
INFO    | Android emulator version 31.3.9.0 (build_id 8748233) (CL:N/A)
INFO    | Storing crashdata in: /tmp/android-neo/emu-crash.db, detection is enabled
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
ERROR   | Can't access ANDROID_PRODUCT_OUT as '/home/neo/bin/aosp/out/target/product/generic'
You need to build the Android system before launching the emulator

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/199022
推荐阅读
相关标签
  

闽ICP备14008679号