How to build AOSP app?

前端 未结 3 1399
难免孤独
难免孤独 2021-01-22 19:11

I am trying to build the Camera App from AOSP.

I am on UBUNTU 14.04.

I followed the guide in the official documentation. At the end I execute

mak         


        
相关标签:
3条回答
  • 2021-01-22 19:45

    I believe you first need to set up your build environment by calling:

    ##> source build/envsetup.sh
    ##> launche <your-device-config>
    

    Only then, call the make command to build the Camera:

    make Camera -j8
    

    your device should be one of the device configurations, for example "hammerhead" is for Nexus5

    0 讨论(0)
  • 2021-01-22 19:52

    'make camera2' will build all the dependencies and then the actual camera2 app, which will be placed somewhere in out/, depending on your selected lunch target.

    Once you've built it once to get the dependencies, mmm packages/apps/Camera2 will be a fast incremental compile, but it doesn't on its own build the dependencies.

    0 讨论(0)
  • 2021-01-22 19:58

    You have 2 camera apps. The old version is called LegacyCamera and the newer version Camera2. You don't need to run make in order to compile them. You can just run

    'mmm packages/apps/Camera2'

    OR

    'mmm packages/apps/LegacyCamera'

    0 讨论(0)
提交回复
热议问题