赞
踩
由于没有硬件设备可调试android drm程序,因此便打算使用android emulator模拟器来调试。
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。