Ubuntu cross_compile Android Error

Source: Internet
Author: User

1. External/clearsilver/cgi. C: 22: Fatal error: zlib. h: no such file or directory
Solution: $ sudo apt-Get install zlib1g-dev
2./bin/Bash: bison: Command not found
Make: *** [out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_y.cpp] Error 127
Solution: sudo apt-Get install bison
3./bin/Bash: Flex: Command not found
Make: *** [out/host/linux-x86/obj/executables/aidl_intermediates/aidl_language_l.cpp] Error 127
Solution: sudo apt-Get install flex
4./usr/bin/ld: cannot find-lncurses
Collect2: LD returned 1 exit status
Make: *** [out/host/linux-x86/obj/executables/adb_intermediates/ADB] Error 1
Solution: sudo apt-Get install libncurses5-dev
5. Pre built/linux-x86/SDL/include/SDL/sdl_syswm.h: 55: 22: Fatal error: X11/xlib. h: no such file or directory
Compilation terminated.
Solution: APT-Get install libx11-dev

Target userdata FS image: Out/target/product/ok6410/userdata. img
Compiled
Check whether the following dependency packages are installed at the beginning.
Sudo apt-Get install bison libc6-dev-amd64 g ++-multilib zlib1g-dev lib64z1-dev flex libncurses5-dev libx11-dev gperf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.