Hi everybody, I put all the error messages in here
frameworks/base/camera/libcameraservice/CameraHardware.cpp: In static member function 'static android::sp<android::CameraHardwareInterface> android::CameraHardware::createInstance()': frameworks/base/camera/libcameraservice/CameraHardware.cpp:356: error: cannot allocate an object of abstract type 'android::CameraHardware' frameworks/base/camera/libcameraservice/CameraHardware.h:33: note: because the following virtual functions are pure within 'android::CameraHardware': frameworks/base/include/ui/CameraHardwareInterface.h:89: note: virtual android::sp<android::IMemoryHeap> android::CameraHardwareInterface::getPreviewHeapnew(int) const make: *** [out/target/product/qsd8250_surf/obj/SHARED_LIBRARIES/ libcamera_intermediates/CameraHardware.o] Error 1 Can anybody help me? On 7月15日, 下午2時02分, Alexguitar <[email protected]> wrote: > Hi everybody, > > Above problem had solved,but i tried to compile again > The results: > > frameworks/base/camera/libcameraservice/CameraHardware.cpp:356: error: > cannot allocate an object of abstract type 'android::CameraHardware' > > Anyone knows how to solve it? > > On 7月14日, 下午5時22分, Alexguitar <[email protected]> wrote: > > > > > Hi everybody, > > Above problem had solved,but i tried to compile again > > The results: > > > frameworks/base/camera/libcameraservice/CameraHardware.cpp: In member > > function 'int android::CameraHardware::previewThread()': > > frameworks/base/camera/libcameraservice/CameraHardware.cpp:94: error: > > invalid conversion from 'void*' to 'int' > > frameworks/base/camera/libcameraservice/CameraHardware.cpp:94: error: > > too few arguments to function > > frameworks/base/camera/libcameraservice/CameraHardware.cpp: In static > > member function 'static android::sp<android::CameraHardwareInterface> > > android::CameraHardware::createInstance()': > > frameworks/base/camera/libcameraservice/CameraHardware.cpp:353: error: > > cannot allocate an object of abstract type 'android::CameraHardware' > > > Anyone knows how to solve it? > > > On 7月14日, 下午3時48分, Alexguitar <[email protected]> wrote: > > > > Hi, everybody! > > > > I am trying to run the Androidphan's patch . > > > My results : > > > > build/core/base_rules.mk:117: *** hardware/msm7k/libcamera: > > > MODULE.TARGET.SHARED_LIBRARIES.libcamera already defined by frameworks/ > > > base/camera/libcameraservice. Stop. > > > > Anyone knows what I solve it? > > > > On 7月14日, 下午2時13分, Harishkumar V <[email protected]> wrote: > > > > > Marcus, > > > > > Even i am facing the same problem, i got the green screen with some > > > > crazy > > > > pixels changing. > > > > > Whether u able to fix this by changing resolution to 352x288 in > > > > camerahardware.cpp as told by atsuo lgarshi. > > > > > Thanks and Regards, > > > > HarishKumar.V > > > > > On Tue, Jul 14, 2009 at 9:51 AM, Alexguitar <[email protected]> > > > > wrote: > > > > > > Hi, Harishkumar V & Marcus or everybody > > > > > > You use the v4l2 patch given by androidplan. > > > > > Do you implement cameraHardwareInterface.h? > > > > > If you do,can you share your code for me? > > > > > Thanks a lot. > > > > > > On 7月12日, 下午10時19分, Harishkumar V <[email protected]> wrote: > > > > > > Hi, > > > > > > > That's cool, i am using android-2.6.29 kernel, so kernel would not > > > > > > pose > > > > > the > > > > > > problem. > > > > > > > the v4l2 patch given by androidplan is enough, or do i need to > > > > > > enable any > > > > > > thing in android stuff . > > > > > > > Thanks and Regards, > > > > > > HarishKumar.V > > > > > > > On Sat, Jul 11, 2009 at 3:16 PM, Atsuo Igarashi > > > > > > <[email protected] > > > > > >wrote: > > > > > > > > Hi HarishKumar.V, > > > > > > > > I'm using uvc webcam.(Logitech's QCam) > > > > > > > my beagleboard is rev C2, > > > > > > > and using kernel is 2.6.28 based + some patches for android from > > > > > > > android-2.6.29. > > > > > > > >http://code.google.com/p/beagleboard/wiki/BeagleboardRevCValidation > > > > > > > >http://www.youtube.com/watch?v=L7LfVTv02cg > > > > > > > > Regards, > > > > > > > Atsuo > > > > > > > > On 7月11日, 午後5:17, Harishkumar V <[email protected]> wrote: > > > > > > > > Hi Atsuo Igarashi, > > > > > > > > > I am trying the same patch on my beagle board. i am using > > > > > > > > android > > > > > kernel > > > > > > > > 2.6.29. > > > > > > > > my usb webcam is not uvc. my resolution is 320x240. > > > > > > > > > my webcam is v4l2. it got detected and using v4l-info i can see > > > > > > > > it. > > > > > > > > > when i click the camcorder application, only green colour or > > > > > > > > some > > > > > random > > > > > > > > dotted pixels coming. > > > > > > > > > Is there any thing other than this patch, we have to put for > > > > > beagleboard. > > > > > > > > > Thanks and Regards, > > > > > > > > HarishKumar.V > > > > > > > > > 2009/6/24 Atsuo Igarashi <[email protected]> > > > > > > > > > > Hi Androidphan, > > > > > > > > > > My Beagle(ARM based board) is working camcorder and camera > > > > > > > > > app with > > > > > > > > > your v4l2 camera. > > > > > > > > > > Points in my environment, > > > > > > > > > > 1. change permission of video device. (or change owner?) > > > > > > > > > > chmod 666 /dev/video0 > > > > > > > > > > 2. free space of 1st dos partition on the SD card is made > > > > > > > > > 4Gbyte or > > > > > > > > > less. > > > > > > > > > > AuthorDriver and MediaRecorder are failed with max-filesize > > > > > > > > > error. > > > > > > > > > > 3. change resolution to 352x288 in CameraHardware.cpp. > > > > > > > > > > Thank you Androidphan! > > > > > > > > > > Regards, > > > > > > > > > Atsuo > > > > > > > > > > On 6月24日, 午後2:07, Harishkumar V <[email protected]> > > > > > > > > > wrote: > > > > > > > > > > Hi Androidplan, > > > > > > > > > > > My BB got damaged, i do not have hardware for now, it will > > > > > > > > > > come > > > > > in a > > > > > > > > > week's > > > > > > > > > > time. > > > > > > > > > > > But, ur code looks like standard v4l2 interface using mmap. > > > > > > > > > > It > > > > > should > > > > > > > > > work > > > > > > > > > > with any normal usb webcam with the resolution alone > > > > > > > > > > changing. > > > > > > > > > > > Anyway, i test it and confirm u. > > > > > > > > > > > Thanks and Regards, > > > > > > > > > > HarishKumar.V > > > > > > > > > > > On Tue, Jun 23, 2009 at 8:01 PM, Androidphan < > > > > > [email protected]> > > > > > > > > > wrote: > > > > > > > > > > > > And does it work for your camera? > > > > > > > > > > > > On Jun 23, 3:20 pm, Harishkumar V > > > > > > > > > > > <[email protected]> > > > > > wrote: > > > > > > > > > > > > Hi Androidplan, > > > > > > > > > > > > > The libcamera.so and libcameraservice.so got created. > > > > > > > > > > > > > In V4l2Camera.cpp, adding this solves the linking > > > > > > > > > > > > problem, > > > > > > > > > > > > > extern "C" { > > > > > > > > > > > > #include "jpeglib.h" > > > > > > > > > > > > > } > > > > > > > > > > > > > instead of <jpeglib.h> > > > > > > > > > > > > > Thanks and Regards, > > > > > > > > > > > > HarishKumar.V > > > > > > > > > > > > > On Tue, Jun 23, 2009 at 6:45 PM, Harishkumar V < > > > > > > > > > [email protected] > > > > > > > > > > > >wrote: > > > > > > > > > > > > > > Hi Androidplan, > > > > > > > > > > > > > > I think its problem with the linking of static > > > > > > > > > > > > > library with > > > > > the > > > > > > > > > > > android. > > > > > > > > > > > > > > but, in the same android source, the skia includes > > > > > > > > > > > > > local > > > > > static > > > > > > > > > > > libraries > > > > > > > > > > > > > like jpeg. > > > > > > > > > > > > > > Its mystery. > > > > > > > > > > > > > > Thanks and Regards, > > > > > > > > > > > > > HarishKumar.V > > > > > > > > > > > > > > On Tue, Jun 23, 2009 at 6:39 PM, Androidphan < > > > > > > > [email protected] > > > > > > > > > > > > wrote: > > > > > > > > > > > > > >> It can be found here > > > > > > > > > > > > >>http://android-m912.googlecode.com/files/Android.mk > > > > > > > > > > > > > >> On Jun 23, 2:57 pm, Harishkumar V < > > > > > [email protected]> > > > > > > > > > wrote: > > > > > > > > > > > > >> > Hi Androidplan, > > > > > > > > > > > > > >> > can u send ur Android.mk file. > > > > > > > > > > > > > >> > Thanks and Regards, > > > > > > > > > > > > >> > HarishKumar.V > > > > > > > > > > > > > >> > On Tue, Jun 23, 2009 at 6:25 PM, Androidphan < > > > > > > > > > [email protected]> > > > > > > > > > > > > >> wrote: > > > > > > > > > > > > > >> > > Hmm, the Android.mk does says to include the > > > > > > > > > > > > >> > > static > > > > > > > library > > > > > > > > > > > libjpeg... > > > > > > > > > > > > > >> > > On Jun 23, 2:51 pm, Harishkumar V < > > > > > > > [email protected]> > > > > > > > > > > > wrote: > > > > > > > > > > > > >> > > > Hi Androidplan, > > > > > > > > > > > > > >> > > > I am able to provide jpeg headers and its > > > > > > > > > > > > >> > > > compiling, > > > > > > > during > > > > > > > > > > > linking > > > > > > > > > > > > >> it > > > > > > > > > > > > >> > > > reports errors, > > > > > > > > > > > > > >> > > > 1) external/jpeg instead of > > > > > > > > > > > > >> > > > external/jpeg/include > > > > > solved > > > > > > > the > > > > > > > > > > > jpeg > > > > > > > > > > > > >> header > > > > > > > > > > > > >> > > > problem. > > > > > > > > > > > > >> > > > 2) As recording_callback was not defined and > > > > > > > Start_recording > > > > > > > > > was > > > > > > > > > > > not > > > > > > > > > > > > >> > > used, > > > > > > > > > > > > >> > > > it returns only Error, i commented out that > > > > > > > > > > > > >> > > > part. > > > > > > > > > > > > > >> > > > after doing the above things, it compiled, > > > > > > > > > > > > >> > > > during > > > > > > > linking, > > > > > > > > > it > > > > > > > > > > > > >> reports the > > > > > > > > > > > > >> > > > following, > > > > > > > > > > > > > >> > > > target SharedLib: libcamera > > > > > > (out/target/product/beagle/obj/SHARED_LIBRARIES/libcamera_intermediates/LIN > > > > > > > > > > > > >> > > KED/libcamera.so) > > > > > > out/target/product/beagle/obj/SHARED_LIBRARIES/libcamera_intermediates/V4L2 > > > > > > > > > > > > >> > > Camera.o: > > > > > > > > > > > > >> > > > In function > > > > > > > `android::V4L2Camera::saveYUYVtoJPEG(unsigned > > > > > > > > > char*, > > > > > > > > > > > > >> int, > > > > > > > > > > > > >> > > int, > > > > > > > > > > > > >> > > > __sFILE*, int)': > > > > > > > > frameworks/base/camera/libcameraservice/V4L2Camera.cpp:320: > > > > > > > > > > > > >> undefined > > > > > > > > > > > > >> > > > reference to `jpeg_std_error(jpeg_error_mgr*)' > > > > > > > > frameworks/base/camera/libcameraservice/V4L2Camera.cpp:321: > > > > > > > > > > > > >> undefined > > > > > > > > > > > > >> > > > reference to > > > > > `jpeg_CreateCompress(jpeg_compress_struct*, > > > > > > > > > int, > > > > > > > > > > > > >> unsigned > > > > > > > > > > > > >> > > int)' > > > > > > > > frameworks/base/camera/libcameraservice/V4L2Camera.cpp:322: > > > > > > > > > > > > >> undefined > > > > > > > > > > > > >> > > > reference to > > > > > > > > > > > > >> > > > `jpeg_stdio_dest(jpeg_compress_struct*, > > > > > > > > > __sFILE*)' > > > > > > > > frameworks/base/camera/libcameraservice/V4L2Camera.cpp:331: > > > > > > > > > > > > >> undefined > > ... > > 閱讀更多 >> --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
