[waffle] Compiling waffle against latest Android source tree

Juha-Pekka Heikkilä juha-pekka.heikkila at linux.intel.com
Mon Nov 25 03:38:16 PST 2013


Hi,

I did try master Waffle branch does compile against JB MR2 without
problems. I did put my computer to fetch latest Android sources to try out
but it seems syncing of the tree will probably finish sometime tomorrow or
so.

/Juha-Pekka

On Mon, November 25, 2013 11:37 am, Arun Sl wrote:
> Hello All,
>
> I am using the latest Android source tree.
> I am getting the following error while doing mm after putting waffle in
> android source external directory and doing mm.
> Does anyone in the list knows of any solution to the same?
>
>> target  Gen: libwaffle <=
> external/waffle/include/waffle/waffle_version.h
>> Header: out/target/product/generic/obj/include/waffle-1/waffle_version.h
>> target thumb C++: libwaffle-1 <=
>> external/waffle/src/waffle/android/droid_surfaceflingerlink.cpp
>> In file included from frameworks/native/include/utils/RefBase.h:27:0,
>>                  from frameworks/native/include/binder/IBinder.h:21,
>>                  from
>> frameworks/native/include/gui/SurfaceComposerClient.h:23,
>>                  from
>> external/waffle/src/waffle/android/droid_surfaceflingerlink.cpp:28:
>> frameworks/native/include/utils/StrongPointer.h: In instantiation of
>> 'android::sp<T>::~sp() [with T = android::Surface]':
>> external/waffle/src/waffle/android/droid_surfaceflingerlink.cpp:139:72:
>> required from here
>> frameworks/native/include/utils/StrongPointer.h:149:16: error: invalid
> use
>> of incomplete type 'class android::Surface'
>>      if (m_ptr) m_ptr->decStrong(this);
>>                 ^
>> In file included from
>> frameworks/native/include/gui/IGraphicBufferProducer.h:29:0,
>>                  from frameworks/native/include/gui/BufferQueue.h:24,
>>                  from frameworks/native/include/gui/ConsumerBase.h:20,
>>                  from frameworks/native/include/gui/CpuConsumer.h:20,
>>                  from
>> frameworks/native/include/gui/SurfaceComposerClient.h:33,
>>                  from
>> external/waffle/src/waffle/android/droid_surfaceflingerlink.cpp:28:
>> frameworks/native/include/ui/GraphicBuffer.h:126:18: error: forward
>> declaration of 'class android::Surface'
>>      friend class Surface;
>>                   ^
>> In file included from frameworks/native/include/utils/RefBase.h:27:0,
>>                  from frameworks/native/include/binder/IBinder.h:21,
>>                  from
>> frameworks/native/include/gui/SurfaceComposerClient.h:23,
>>                  from
>> external/waffle/src/waffle/android/droid_surfaceflingerlink.cpp:28:
>> frameworks/native/include/utils/StrongPointer.h: In instantiation of
>> 'android::sp<T>& android::sp<T>::operator=(const android::sp<U>&) [with
> U
>> = android::Surface; T = ANativeWindow]':
>> external/waffle/src/waffle/android/droid_surfaceflingerlink.cpp:139:27:
>> required from here
>> frameworks/native/include/utils/StrongPointer.h:173:28: error: cannot
>> convert 'android::Surface* const' to 'ANativeWindow*' in initialization
>>      T* otherPtr(other.m_ptr);
>>                             ^
>> make: ***
>>
> [out/target/product/generic/obj/SHARED_LIBRARIES/libwaffle-1_intermediates/src/waffle/android/droid_surfaceflingerlink.o]
>> Error 1
>



More information about the waffle mailing list