Hi all,
While building sdk for android-4.4.2 I am getting error "Module 'bluetooth-health' in PRODUCT_PACKAGES has nothing to install!. Stop". For this error I commented one line in build/core/main.mk file
# $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES), \
$(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
$(error $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES has nothing to install!)))
After some build time again I am getting one more error
"target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/android/common_jni_registrar.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/android/device_telephony_info.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/android/hash_set.cc
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/android/surface_texture_peer.cc
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
out/target/product/mazda/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:10:26: error: extra tokens at end of #ifndef directive [-Werror]
out/target/product/mazda/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:11:26: error: missing whitespace after the macro name [-Werror]
In file included from external/chromium_org/content/common/android/hash_set.cc:5:0:
out/target/product/mazda/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:24:20: error: expected initializer before '<' token
out/target/product/mazda/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:26:17: error: expected initializer before '<' token
out/target/product/mazda/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected '{' before '<' token
out/target/product/mazda/obj/GYP/shared_intermediates/content/jni/HashSet_jni.h:29:22: error: expected unqualified-id before '<' token
external/chromium_org/content/common/android/hash_set.cc:30:1: error: expected '}' at end of input
cc1plus: all warnings being treated as errors
build/core/binary.mk:432: recipe for target 'out/target/product/mazda/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o' failed
make: *** [out/target/product/mazda/obj/STATIC_LIBRARIES/content_content_common_gyp_intermediates/content/common/android/hash_set.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: content_content_common_gyp <= external/chromium_org/content/common/android/trace_event_binding.cc
make: *** wait: No child processes. Stop."
Steps I followed:
$myandroid-4.4.2-code
source build/envsetup.sh
lunch
myownconf-eng
make -j8 sdk
Is this correct? Or else correct me by giving correct steps to sdk build 4.4.2
Kindly share any reference guide to build sdk or steps
Regards,
M.CHANDRASEKHAR
Hai weidong,
I had followed the following steps
source build envsetup.sh
lunch evl_user
make-j4
After this step I am getting the same error as mentioned by Chandrashekar above in HashSet_jni.h file.
How to overcome this please provide any solution.
Regards,
Srikanth.
Hello chandrasekhar,
At first, you should ensure android source code can be compiled successfully on your ubuntu platform, then compiled SDK.
------------------------------------------
# source build/envsetup.sh
# lunch sdk-eng
# make update-api
# make -j8
# make sdk
-------------------------------------------
Hope above advice can help you!
Best Regards,
Weidong