- 论坛徽章:
- 0
|
用uClibc交叉编译RTAI3.2(Vulcano)会出现错误,花了两天,晕死,记下来备案。
环境
kernel 2.6.10
RTAI 3.2
uClibc gcc version 3.4.2
操作
1.cross compiling using "make ARCH=i386 CROSS_COMPILE=/home/buildroot/build_i386/staging_dir/bin/i386-linux-uclibc- menuconfig"
2."make && make install" as usual
报错
error: liblxrt.so: underined reference to 'pthread_yield'
解决
patch $build_dir/base/include/rtai_posix.h as below:
927a928,930
> #ifdef __UCLIBC__
> extern int sched_yield (void);
> #else
928a932
> #endif
935a940,942
> #ifdef __UCLIBC__
> return sched_yield();
> #else
936a944
> #endif
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/11160/showart_54529.html |
|