日期:2014-05-16  浏览次数:21089 次

交叉编译dbus,出现这样的错误 Scrt1.o: No such file: No such file or directory
交叉编译dbus,出现这样的错误
/gcc-4.1.1-glibc-2.3.2/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/4.1.1/../../../../arm-9tdmi-linux-gnu/bin/ld: Scrt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [dbus-daemon] 错误 1
不知道如何解决,哪位知道呢?请指导下

------解决方案--------------------
crt1.o: No such file: No such file or directory

While using gcc on a newly installed system you may get:
/usr/bin/ld: crt1.o: No such file: No such file or directory

This is a common problem, but with a simple solution.

On debian、Ubuntu:
apt-get install libc6-dev

On Fedora:

$ locate crt1.o
/usr/lib/crt1.o


$ rpm -qf /usr/lib/crt1.o
glibc-devel-X.X.X-XX


Then install the package glibc-devel-X.X.X-XX using yum, rpm, etc



http://www.cnblogs.com/lansh/archive/2008/07/01/1233231.html