编译环境 ubuntu10.04 android4.0.3 改源码包是光盘里面的。
target thumb C++: gralloc.goldfish <= development/tools/emulator/opengl/system/gralloc/gralloc.cpp
Install: out/target/product/generic/system/lib/libTVOut.so
Install: out/target/product/generic/system/lib/libcec.so
Install: out/target/product/generic/system/lib/libddc.so
Install: out/target/product/generic/system/lib/libedid.so
target StaticLib: libfilterfw_native (out/target/product/generic/obj/STATIC_LIBRARIES/libfilterfw_native_intermediates/libfilterfw_native.a)
development/tools/emulator/opengl/system/gralloc/gralloc.cpp:790: sorry, unimplemented: non-trivial designated initializers not supported
development/tools/emulator/opengl/system/gralloc/gralloc.cpp:790: sorry, unimplemented: non-trivial designated initializers not supported
development/tools/emulator/opengl/system/gralloc/gralloc.cpp:790: warning: missing initializer for member 'gralloc_module_t::reserved_proc'
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/gralloc.goldfish_intermediates/gralloc.o] 错误 1
make: *** 正在等待未完成的任务....
希望高手指点
百度之后说是c/c++初始化乱序
代码里面的初始化跟下面的描述一样
C++风格的乱序初始化方式跟 C风格的一样,只是它更常用在C++代码里。
eg:
struct User oneUser = {
name:"Lucy",
id:10,
home:"/home/Lucy"
};
乱序这种方式在gcc/g++中,后缀名位.c可以支持;但是后缀名为.cpp就不支持,提示
sorry, unimplemented: non-trivial designated initializers not supported
自己mv一下修改android.mk后编译出错更多...