Six. common compilation errors
In the newly installed Ubuntu system, the first time to compile the Android source code a lot of problems. The following are issues that occur during the compilation process after the Make command is executed.
The principle is that make will install what is missing, and search for an error via Google + Baidu.
- error :/bin/bash:build/core/find-jdk-tools-jar.sh:permission denied
- resolution : In order to prevent the same permissions problems, I have all the Android files added permissions, access to the Android source code root directory, to do :
$sudo chmod 777 *-R
- error : Make: * * * [Out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp] Error 127
- Solution :
$sudoinstall bison
- error : Make: * * * [Out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_l.cpp] Error 127
- Solution :
$sudoinstall Flex
- error : Make: * * * Deleting file ' out/target/product/generic/obj/static_libraries/libwebcore_intermediates/ Source/webcore/css/csspropertynames.h '
- Solution :
$sudoinstall gperf
- error : external/clearsilver/cgi/cgi.c:22:fatal error:zlib.h:no such file or directory
- Solution :
$sudoinstall Zlib1g-dev
- error : Make: * * * [Out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_l.cpp] Error 127
- Solution :
$sudoinstall Flex
- error : Make: * * * [Out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp] Error 127
- Solution :
$sudoinstall bison
- error : Make: * * * [OUT/HOST/LINUX-X86/OBJ/EXECUTABLES/AAPT_INTERMEDIATES/AAPT] Error 1
- Solution :
$sudoinstall Lib32z1-dev
Reference:
Http://blog.sina.com.cn/s/blog_ab85e99501018r6z.html
Http://www.cnblogs.com/wdpp/archive/2011/11/16/2386719.html
http://indiansmartphones.wordpress.com/2011/05/18/solution-to-fatal-error-glglx-h-no-such-file-or-directory/
http://blog.csdn.net/iamliuyanlei/article/details/8830981
Http://blog.sina.com.cn/s/blog_ab85e99501018r6z.html
Android Introduction and source code compilation--Common compilation errors