Fedora 16 编译Android 4.0(3)

external/oprofile里打patch或者自己手动修改文件

diff --git a/libpp/format_output.h b/libpp/format_output.h   index b6c4592..4efdbb1 100644   --- a/libpp/format_output.h   +++ b/libpp/format_output.h   @@ -91,7 +91,8 @@ protected:                   symbol_entry const & symbol;                   sample_entry const & sample;                   size_t pclass;   -               mutable counts_t & counts;   +//             mutable counts_t & counts;   +               counts_t & counts;                   extra_images const & extra;                   double diff;           };  

c) gtest错误

external/gtest/src/../include/gtest/internal/gtest-param-util.h:122:11: error: ‘ptrdiff_t’ does not name a type  

解决:

external/gtest里打patch或者自己手动修改

diff --git a/include/gtest/internal/gtest-param-util.h b/include/gtest/internal/gtest-param-util.h   index 5559ab4..b964c45 100644   --- a/include/gtest/internal/gtest-param-util.h   +++ b/include/gtest/internal/gtest-param-util.h   @@ -37,6 +37,7 @@    #include <iterator>    #include <utility>    #include <vector>   +#include <cstddef>         #include <gtest/internal/gtest-port.h>      

d) werror错误

frameworks/compile/slang/slang_rs_export_foreach.cpp:247:23: error: variable ‘ParamName’ set but not used [-Werror=unused-but-set-variable]  

解决:

进frameworks/compile/slang打patch或者手动修改

diff --git a/Android.mk b/Android.mk   index fce3637..aff5b7d 100644   --- a/Android.mk   +++ b/Android.mk   @@ -19,7 +19,8 @@ ifeq ($(TARGET_BUILD_APPS),)        LOCAL_PATH := $(call my-dir)       -local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror   +#local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror   +local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter    ifneq ($(TARGET_BUILD_VARIANT),eng)    local_cflags_for_slang += -D__DISABLE_ASSERTS    endif  

e) libx11错误

/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/emulator_renderer_intermediates/main.o: undefined reference to symbol 'XInitThreads'  

解决:

进development打patch或者手动修改

diff --git a/tools/emulator/opengl/host/renderer/Android.mk b/tools/emulator/opengl/host/renderer/Android.mk   index 55fcb80..5e4d0bb 100644   --- a/tools/emulator/opengl/host/renderer/Android.mk   +++ b/tools/emulator/opengl/host/renderer/Android.mk   @@ -5,6 +5,7 @@ $(call emugl-begin-host-executable,emulator_renderer)    $(call emugl-import,libOpenglRender)    LOCAL_SRC_FILES :main.cpp    LOCAL_CFLAGS    += -O0 -g   +LOCAL_LDLIBS += -lX11        #ifeq ($(HOST_OS),windows)    #LOCAL_LDLIBS += -lws2_32  

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyfsps.html