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
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
'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.
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'