在源代码环境下编译resize
1. aggregate 'ANativeWindow_Buffer outBuffer' has incomplete type and cannot be defined
需要在resize.cpp中,添加#include <android/native_window.h>
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!!!