Android for i.MX6 编译出错解决

编译过程中遇到了问题,记录下来:

1、无法make menuconfig,出错如下:

make menuconfig
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf.o: In function `show_help':
mconf.c:(.text+0x744): undefined reference to `stdscr'
scripts/kconfig/mconf.o: In function `main':
mconf.c:(.text.startup+0x66): undefined reference to `initscr'
mconf.c:(.text.startup+0x6d): undefined reference to `stdscr'
scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
checklist.c:(.text+0x41): undefined reference to `wmove'
checklist.c:(.text+0x61): undefined reference to `acs_map'
checklist.c:(.text+0x69): undefined reference to `waddch'
checklist.c:(.text+0x7b): undefined reference to `waddnstr'
checklist.c:(.text+0x8c): undefined reference to `wmove'
checklist.c:(.text+0xb3): undefined reference to `acs_map'
checklist.c:(.text+0xbb): undefined reference to `waddch'
checklist.c:(.text+0x10b): undefined reference to `acs_map'
checklist.c:(.text+0x113): undefined reference to `waddch'
checklist.c:(.text+0x11a): undefined reference to `acs_map'
checklist.c:(.text+0x122): undefined reference to `waddch'
checklist.c:(.text+0x129): undefined reference to `acs_map'
checklist.c:(.text+0x131): undefined reference to `waddch'
checklist.c:(.text+0x138): undefined reference to `acs_map'
checklist.c:(.text+0x183): undefined reference to `acs_map'
checklist.c:(.text+0x18b): undefined reference to `waddch'
checklist.c:(.text+0x192): undefined reference to `acs_map'
checklist.c:(.text+0x19a): undefined reference to `waddch'
checklist.c:(.text+0x1a1): undefined reference to `acs_map'
checklist.c:(.text+0x1a9): undefined reference to `waddch'
checklist.c:(.text+0x1b0): undefined reference to `acs_map'
checklist.c:(.text+0x1b8): undefined reference to `waddch'
scripts/kconfig/lxdialog/checklist.o: In function `print_item':
checklist.c:(.text+0x240): undefined reference to `wmove'
checklist.c:(.text+0x265): undefined reference to `waddch'
checklist.c:(.text+0x27f): undefined reference to `wmove'
checklist.c:(.text+0x2d8): undefined reference to `wmove'
checklist.c:(.text+0x2ea): undefined reference to `waddch'
checklist.c:(.text+0x316): undefined reference to `waddnstr'
checklist.c:(.text+0x32f): undefined reference to `wmove'
checklist.c:(.text+0x337): undefined reference to `wrefresh'
checklist.c:(.text+0x370): undefined reference to `wprintw'
scripts/kconfig/lxdialog/checklist.o: In function `print_buttons':
checklist.c:(.text+0x419): undefined reference to `wmove'
scripts/kconfig/lxdialog/checklist.o: In function `dialog_checklist':
checklist.c:(.text+0x517): undefined reference to `stdscr'
checklist.c:(.text+0x569): undefined reference to `COLS'
checklist.c:(.text+0x57d): undefined reference to `stdscr'
checklist.c:(.text+0x58d): undefined reference to `LINES'
checklist.c:(.text+0x5bf): undefined reference to `newwin'
checklist.c:(.text+0x5cf): undefined reference to `keypad'

解决办法:

sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev

 

 2、编译android的过程中出现如下错误:

  GZIP    arch/arm/boot/compressed/piggy.gzip
  CC      arch/arm/boot/compressed/misc.o
  CC      arch/arm/boot/compressed/decompress.o
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/piggy.gzip.o
  AS      arch/arm/boot/compressed/lib1funcs.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
make[2]: *** [arch/arm/boot/uImage] Error 1
make[1]: *** [uImage] Error 2 

解决办法:

sudo apt-get install uboot-mkimage

 

3. 编译出现库错误,原因是没有安装对应的库

sudo apt-get install uuid uuid-dev  
sudo apt-get install zlib1g-dev liblz-dev
sudo apt-get install liblzo2-2 liblzo2-dev

 

 

 

 

 

 

 

posted @ 2014-03-05 14:30  ZHX_1Q89  阅读(676)  评论(0编辑  收藏  举报