建立snapgear-linux映像中遇到问题的解决


近日建立GCC Cross-Compiler ,用的是binutils-2.13.1

当make时,报告如下错误:
binutils-2.13.1/bfd/archures.c:463: undefined reference to '_bfd_i386_arch'
collect2: ld returned 1 exit status
make[3]; *** [size.exe] Error 1

依据帖子中提到:把 bfd/Makefile.in中 echo $$f > tofiles 修改为echo $$f ' ' > tofiles

configure ,make 成功......

至于原因不知........

用snapgerr的sparc-linux-toos.sh作cross tools:

编译安装boot-trap gcc时,记得configure加上--disable-threads --disable-shared --without-headers
否则,make gcc时会需要pthreadtypes.h等等文件,这些文件在uClibc/libc/sysdeps/linux/common/bits,也可以直接copy过去

编译c++程序,记得ulibc的make menuconfig中有个floating point support 要选中,否则会提示找不到一对文件,文件名字不记得了。

make xconfig配置linux内核时,提示wish can not find!

RE:wish is the tk shell. do you have tcl/tk installed?

执行:sudo apt-get install tclx8.4 sudo apt-get install tk8.4

然后make xconfig, OK!

make menuconfig配置linux内核时,需要用到Ncurses库。
  • 1
  • 2
  • 下一页
【内容导航】
第1页:建立snapgear-linux映像中遇到问题的解决 第2页:建立snapgear-linux映像中遇到问题的解决

相关内容