Yes I did try but I’m still getting the same error…
ninja: error: ‘out/target/product/kvim/obj/lib/crtbegin_dynamic.o’, needed by ‘out/target/product/kvim/obj/EXECUTABLES/i2cdetect_intermediates/LINKED/i2cdetect’, missing and no known rule to make it make: *** [ninja_wrapper] Error 1
To answer your question: “Have you ever make full compilation for android source code?”
I’ve done kernel compilation for the Khadas but never full android source code compilation.
Maybe I should create another topic for this but I’ve tried to compile the android source code but it failed at 11%.
Here is the output:
**Communication error with Jack server (52). Try 'jack-diagnose'**
**[ 11% 5391/47622] Building with Jack: ...k_intermediates/with-local/classes.dex**
**FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp**
**Communication error with Jack server (52). Try 'jack-diagnose'**
**ninja: build stopped: subcommand failed.**
**make: *** [ninja_wrapper] Error 1**
**#### make failed to build some targets (36:15 (mm:ss)) ####**
$ cd WORKING_DIRECTORY/uboot
$ make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-
$ cd ..
$ source build/envsetup.sh
$ lunch kvim-user-64
$ make -j8 otapackage
If I don’t lunch the target as kvim, I get error the same with you
including ./hardware/amlogic/wifi/qcom/Android.mk ...
including ./hardware/amlogic/wifi/realtek/Android.mk ...
including ./hardware/arm/gpu/lib/Android.mk ...
Android.mk GPU_DRV_VERSION is
build/core/binary.mk:1192: hardware/arm/gpu/lib/Android.mk: libGLES_mali: Unused source files: _ion/libGLES_mali_default_7a_32-n-r6p1.so
including ./hardware/broadcom/wlan/bcmdhd/Android.mk ...
including ./hardware/bsp/intel/peripheral/bluetooth/bcm43340/Android.mk ...
including ./hardware/bsp/intel/peripheral/displays/Grove_LCD_RGB/Android.mk ...
including ./hardware/bsp/intel/peripheral/displays/SparkFun_OLED/Android.mk ...
including ./hardware/bsp/intel/peripheral/examples/mraa/gpio_output/Android.mk ...
including ./hardware/bsp/intel/peripheral/libmraa/Android.mk ...
including ./hardware/bsp/intel/peripheral/libupm/Android.mk ...
including ./hardware/bsp/intel/peripheral/wifi/bcm43340/Android.mk ...
including ./hardware/bsp/intel/soc/common/bootctrl/Android.mk ...
including ./hardware/bsp/intel/soc/common/tools/Android.mk ...
including ./hardware/google/apf/Android.mk ...
including ./hardware/libhardware/Android.mk ...
build/core/base_rules.mk:183: *** hardware/libhardware/modules/gralloc: MODULE.TARGET.SHARED_LIBRARIES.gralloc.default already defined by hardware/amlogic/gralloc.
make: *** [out/build-aosp_arm.ninja] Error 1
terry@Server:~/project/vim/nougat$
The question is what should I do after executingsource build/envsetup.sh?
I didn’t understand why you said: “You didn’t lunch the corret target. You lunched ‘aosp_arm’”
Yes but it seems that I don’t execute the right commands to compile the source.
What commands do I have to execute if it’s not the ones bellow?
$ cd WORKING_DIRECTORY/uboot
$ make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-
$ cd ..
$ source build/envsetup.sh
$ lunch kvim-user-64
$ make -j8 otapackage