This is building passion's memo ![]()
IMPORTANT: I don't know it's work or not. OK, it's work fine!
Quick resolved linking error building 'gingerbread' for passion.
Camera HAL has been changed since gingerbread for multi-camera support.
LOCAL_SHARED_LIBRARIES += libpassioncameraif <<< add this line include $(BUILD_SHARED_LIBRARY)
// // passion-cameraif/cameraif.cpp // passion(froyo) 'libcamera.so' wrapper for gingerbread // #include <camera/CameraHardwareInterface.h> #include <binder/MemoryBase.h> #include <binder/MemoryHeapBase.h> using namespace android; // passion(froyo) libcamera.so extern "C" sp<CameraHardwareInterface> openCameraHardware(); static CameraInfo sCameraInfo[] = { { CAMERA_FACING_BACK, 90, /* orientation */ }, }; extern "C" int HAL_getNumberOfCameras() { return sizeof(sCameraInfo) / sizeof(sCameraInfo[0]); } extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo *cameraInfo) { memcpy(cameraInfo, &sCameraInfo[cameraId], sizeof(CameraInfo)); } extern "C" sp<CameraHardwareInterface> HAL_openCameraHardware(int /*cameraId*/) { return openCameraHardware(); }
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= cameraif.cpp LOCAL_SHARED_LIBRARIES:= libcamera libutils liblog libcutils LOCAL_MODULE:= libpassioncameraif LOCAL_MODULE_TAGS := optional LOCAL_PRELINK_MODULE := false include $(BUILD_SHARED_LIBRARY)