您的位置:首页 > 移动开发 > Android开发

Android 编译SurfaceFlinger测试程序resize

2016-02-18 14:05 537 查看
在源代码环境下编译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!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: