mm编译一个hello.c文件为可执行文件时出现错误
make: Entering directory `/home/root_work/GF06-main/android'
make: *** No rule to make target `out/target/product/generic/obj/lib/crtbegin_dynamic.o', needed by`out/target/product/generic/obj/EXECUTABLES/hello_intermediates/LINKED/hello'. Stop.
make: Leaving directory `/home/root_work/GF06-main/android'
解决办法为:
记得 1.source build/envsetup.sh
2.lunch your_product
确保lunch 后TARGET_PRODUCT= your_product
make: Entering directory `/home/root_work/GF06-main/android'
make: *** No rule to make target `out/target/product/generic/obj/lib/crtbegin_dynamic.o', needed by`out/target/product/generic/obj/EXECUTABLES/hello_intermediates/LINKED/hello'. Stop.
make: Leaving directory `/home/root_work/GF06-main/android'
解决办法为:
记得 1.source build/envsetup.sh
2.lunch your_product
确保lunch 后TARGET_PRODUCT= your_product