[GT540 Optimus Android Development] Hikari:
Hi! Miroslav! in the last days Ive been figthing build errors for AOSP.. Im using your device tree, I know its for cm but there is no other for our device... anyways after lots of errors passed I get this and I really dont know how to solve it. any kind of help would be greatly appreciated...

target thumb C++: libcamera <= device/lge/swift/libcamera/QualcommCameraHardware.cpp
device/lge/swift/libcamera/QualcommCameraHardware.cpp:333:7: error: 'AUTO_EXPOSURE_FRAME_AVG' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:334:7: error: 'AUTO_EXPOSURE_CENTER_WEIGHTED' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:335:7: error: 'AUTO_EXPOSURE_SPOT_METERING' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:590:7: error: 'ISO_AUTO' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:591:7: error: 'ISO_HJR' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:592:7: error: 'ISO_100' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:593:7: error: 'ISO_200' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:594:7: error: 'ISO_400' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:595:7: error: 'ISO_800' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:604:7: error: 'LENSSHADE_DISABLE' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:625:10: error: 'PIXEL_FORMAT_RAW' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.h: In constructor 'android::QualcommCameraHardware::QualcommCameraHardware()':
device/lge/swift/libcamera/QualcommCameraHardware.h:581:10: warning: 'android::QualcommCameraHardware::mInSnapshotMode' will be initialized after [-Wreorder]
device/lge/swift/libcamera/QualcommCameraHardware.h:578:10: warning: 'bool android::QualcommCameraHardware::mJpegThreadRunning' [-Wreorder]
device/lge/swift/libcamera/QualcommCameraHardware.cpp:855:1: warning: when initialized here [-Wreorder]
device/lge/swift/libcamera/QualcommCameraHardware.h:681:11: warning: 'android::QualcommCameraHardware::mCallbackCookie' will be initialized after [-Wreorder]
device/lge/swift/libcamera/QualcommCameraHardware.h:667:10: warning: 'bool android::QualcommCameraHardware::mInitialized' [-Wreorder]
device/lge/swift/libcamera/QualcommCameraHardware.cpp:855:1: warning: when initialized here [-Wreorder]
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'void android::QualcommCameraHardware::filterPreviewSizes()':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:933:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'void android::QualcommCameraHardware::initDefaultParameters()':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1054:21: error: 'KEY_AUTO_EXPOSURE' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1055:21: error: 'AUTO_EXPOSURE_FRAME_AVG' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1070:21: error: 'KEY_SUPPORTED_AUTO_EXPOSURE' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1115:21: error: 'KEY_SHARPNESS' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1117:21: error: 'KEY_CONTRAST' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1119:21: error: 'KEY_SATURATION' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1124:21: error: 'KEY_ISO_MODE' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1125:21: error: 'ISO_AUTO' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1127:21: error: 'KEY_SUPPORTED_ISO_MODES' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1136:25: error: 'KEY_SUPPORTED_LENSSHADE_MODES' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'void android::QualcommCameraHardware::setGpsParameters()':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1756:31: error: 'KEY_GPS_LATITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1773:31: error: 'KEY_GPS_LONGITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:1793:38: error: 'KEY_GPS_ALTITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'virtual android::status_t android::QualcommCameraHardware::takePicture()':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:2967:21: error: 'PIXEL_FORMAT_RAW' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'bool android::QualcommCameraHardware::initRecord()':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:3347:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
device/lge/swift/libcamera/QualcommCameraHardware.cpp:3349:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'virtual void android::QualcommCameraHardware::releaseRecordingFrame(const android::sp<android::IMemory>&)':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:3489:87: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'android::status_t android::QualcommCameraHardware::setISOValue(const android::CameraParameters&)':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4009:34: error: 'KEY_ISO_MODE' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4028:29: error: 'KEY_ISO_MODE' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'android::status_t android::QualcommCameraHardware::setGpsLocation(const android::CameraParameters&)':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4045:42: error: 'KEY_GPS_LATITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4047:25: error: 'KEY_GPS_LATITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4055:43: error: 'KEY_GPS_LONGITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4057:25: error: 'KEY_GPS_LONGITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4060:42: error: 'KEY_GPS_ALTITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4062:25: error: 'KEY_GPS_ALTITUDE_REF' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4070:37: error: 'KEY_GPS_STATUS' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4072:25: error: 'KEY_GPS_STATUS' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4075:39: error: 'KEY_EXIF_DATETIME' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4077:25: error: 'KEY_EXIF_DATETIME' is not a member of 'android::CameraParameters'
device/lge/swift/libcamera/QualcommCameraHardware.cpp: In member function 'bool android::QualcommCameraHardware::isValidDimension(int, int)':
device/lge/swift/libcamera/QualcommCameraHardware.cpp:4590:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [out/target/product/swift/obj/SHARED_LIBRARIES/libcamera_intermediates/QualcommCameraHardware.o] Error 1
make: *** Waiting for unfinished jobs....

I saw while googling that I can bypass it from build but I dont wanna do it. I wanna have the camera working. Thanks!