Android 编译SurfaceFlinger测试程序resize

在源代码环境下编译resize

1. aggregate 'ANativeWindow_Buffer outBuffer' has incomplete type and cannot be defined

需要在resize.cpp中,添加#include

2. error: no matching function for call to 'android::Surface::lock(ANativeWindow_Buffer*)'

找到surface->lock(&outBuffer); 修改成surface->lock(&outBuffer, NULL);

3. error: undefined reference to 'android::ProcessState::self()'

在Android.mk中LOCAL_SHARED_LIBRARIES添加 libbinder,

然后mm,OK!!!

你可能感兴趣的:(Android 编译SurfaceFlinger测试程序resize)