Ubuntu 13.10 에서 Gingerbread source 빌드할 때 에러나는 부분 수정


1.
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::wp<android::AssetManager::SharedZip> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/AssetManager.o] Error1

Fix:
vim frameworks/base/libs/utils/Android.mk

 57 LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
 58 LOCAL_CFLAGS += -fpermissive  //添加此行。


2.
frameworks/base/include/utils/KeyedVector.h:193:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptDir> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:193:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] Error 1

Fix:
vi frameworks/base/tools/aapt/Android.mk

Add '-fpermissive' to line 31:
LOCAL_CFLAGS += -Wno-format-y2k -fpermissive



3.
make: *** [out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile.o] 错误 1
    或者 make: *** [out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile.o] Error 1
     cd external/srec
     wget "https://github.com/CyanogenMod/android_external_srec/commit/4d7ae7b79eda47e489669fbbe1f91ec501d42fb2.diff"
     patch -p1 < 4d7ae7b79eda47e489669fbbe1f91ec501d42fb2.diff
    rm -f 4d7ae7b79eda47e489669fbbe1f91ec501d42fb2.diff
    cd ../..



4.
external/webkit/WebCore/dom/make_names.pl
-my $preprocessor = "/usr/bin/gcc -E -P -x c++";
+my $preprocessor = "/usr/bin/gcc -E -x c++";


5.
build/core/combo/HOST_linux-x86.mk
 60 # Disable new longjmp in glibc 2.11 and later. See bug 2967937.
 61 #HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
 62 HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

6.
make: *** [out/host/linux-x86/obj/EXECUTABLES/mksnapshot_intermediates/src/api.o] 오류 1

sudo apt-get install gcc-4.4-multilib g++-4.4-multilib
export PATH=$HOME/bin:$PATH

7.
external/v8/src/globals.h:605:3: error: ‘memcpy’ was not declared in this scope
// append
55: #include <string.h>


8.
external/v8/src/objects.h:2128:60: error: ‘get’ was not declared in this scope
fix:
vi external/v8/Android.mksnapshot.mk
Add '-fpermissive' to line 60
LOCAL_CFLAGS := \
        -Wno-endif-labels \
        -Wno-import \
        -Wno-format \
        -ansi \
        -fno-rtti \
        -DENABLE_DEBUGGER_SUPPORT \
        -DV8_NATIVE_REGEXP -fpermissive


+ Recent posts