Sven Garbade wrote:
> 
> Dear List,
> 
> I�ve tried to compile a rtai-lxrt-example programm with my own makefile,
> but linking failed:
> 
> make -k
> gcc -I/usr/src/linux/include -I/opt/RTAI/rtai-1.5/include
> -I/opt/RTAI/rtai-1.5/lrxt -O2 -o user_hrt user_hrt.c
>
[snip]
> 
> I think it must be easy, but I haven�t found the trick...
> 
> Here is the makefile:
> 
> all  = user_hrt
> 
> RTAI_HOME = /opt/RTAI/rtai-1.5
> LINUX_HOME = /usr/src/linux
> 
> INCLUDE = -I$(LINUX_HOME)/include -I$(RTAI_HOME)/include
> -I$(RTAI_HOME)/lrxt
> 
> user_hrt: user_hrt.c
>         gcc $(INCLUDE) -O2 -o $@ $<
> 
> What went wrong? Many thanks,
>

Hi Sven,

It's not really your fault, the problem is the current name collision
problem with rtai_lxrt.h (between lxrt and lxrt-informed), this will be
fixed when the versions get aligned.  If you are using the user_hrt.c
example in the lxrt directory, you will see that it includes
../rtai_lxrt.h, this is because it has to include that file and not the
one found <rtai>/include.  If you are trying to build this example in a
directory other than lxrt (did you copy it somewhere else ??) you will
need to remove the ../ prefix in the include (make it #include
<rtai_lxrt.h> and then change your make file as shown below:


INCLUDE = -I$(LINUX_HOME)/include -I$(RTAI_HOME)/lxrt
-I$(RTAI_HOME)/include

Hope this fixes it for you

Regards, Stuart


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to