Problems compiling RTAI example 1 in RTAI beginner's Guide

Geraads/Wiermans/Aerts sysdev at hf-electronics.com
Fri Jul 21 13:23:38 CEST 2006


We did patch the kernel, placed the source tree under /usr/src/linux
(this is a link to /home/armcore/linux) , rtai is installed
under /usr/realtime the source of rtai is under /home/armcore/rtai-3.3.
We did test the testsuite lantency etc.
I attached the complete source, Makefile, error log, environment and the
command logs. Maybe you can see the problem?


On vr, 2006-07-21 at 17:49 +0800, wenjia wrote:
> Please give all the building info,error messages are not enough
> Did you place the patched RTAI Linux kernel source tree under /usr/src/linux?
> and then compiled and installed RTAI correctly?
>  
> 
> >We did change the Makefile, but we still got a lot of errors, do we miss
> >something in our src or includes?
> >The error log is attached.
> >
> >On vr, 2006-07-21 at 15:43 +0800, wenjia wrote:
> >> you makefile should be like this:
> >> 
> >> prefix := $(shell rtai-config --prefix)
> >> 
> >> ifeq ($(prefix),)
> >> $(error Please add <rtai-install>/bin to your PATH variable)
> >> endif
> >> 
> >> CC = $(shell rtai-config --cc)
> >> LXRT_CFLAGS = $(shell rtai-config --lxrt-cflags)
> >> LXRT_LDFLAGS = $(shell rtai-config --lxrt-ldflags)
> >> 
> >> all: bitstest
> >> 
> >> bitstest: bitstest.c
> >>         $(CC) $(LXRT_CFLAGS) -o $@ $< $(LXRT_LDFLAGS) -llxrt
> >> 
> >> clean:
> >>         rm -f *.o bitstest
> >> 
> >> .PHONY: clean
> >> 
> >> there are a lot of examples in the showroom directory on the CVS.
> >> 
> >> 
> >> >Hi,
> >> >
> >> >We want to start with RTAI, we did build a new kernel (2.6.15 with
> >> >RTAI-3.3) now we want to compile and run the example 1 in the RTAI
> >> >beginners Guide. We've got a lot of errors and warnings. Can someone
> >> >help us getting started! We attached the Makefile and the error log, the
> >> >sourcefile are as in the beginners guide.
> >> > 
> >> >
> >> 
> >> 
> >> 
> >
> 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: command.log
Type: text/x-log
Size: 304 bytes
Desc: not available
Url : http://mail.rtai.org/pipermail/rtai/attachments/20060721/64523847/attachment.bin 
-------------- next part --------------
SSH_AGENT_PID=4640
SHELL=/bin/bash
DESKTOP_STARTUP_ID=
TERM=xterm
GTK_RC_FILES=/etc/gtk/gtkrc:/home/armcore/.gtkrc-1.2-gnome2
WINDOWID=33554523
USER=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
SSH_AUTH_SOCK=/tmp/ssh-xLVxTb4529/agent.4529
GNOME_KEYRING_SOCKET=/tmp/keyring-qMYGrU/socket
USERNAME=armcore
SESSION_MANAGER=local/dell1:/tmp/.ICE-unix/4529
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/realtime/bin:/usr/realtime
DESKTOP_SESSION=default
GDM_XSERVER_LOCATION=local
PWD=/home/armcore/rt-project
LANG=nl_NL.UTF-8
GDMSESSION=default
SHLVL=2
HOME=/root
LANGUAGE=nl:en_GB:en
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=armcore
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-1kYSnGtcaU,guid=93a1c0443db4e8b30708a432dec60f00
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=:0.0
LESSCLOSE=/usr/bin/lesspipe %s %s
XAUTHORITY=/home/armcore/.Xauthority
COLORTERM=gnome-terminal
_=/usr/bin/env
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.log
Type: text/x-log
Size: 64726 bytes
Desc: not available
Url : http://mail.rtai.org/pipermail/rtai/attachments/20060721/64523847/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 472 bytes
Desc: not available
Url : http://mail.rtai.org/pipermail/rtai/attachments/20060721/64523847/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rt_process.c
Type: text/x-csrc
Size: 1012 bytes
Desc: not available
Url : http://mail.rtai.org/pipermail/rtai/attachments/20060721/64523847/attachment.c 
-------------- next part --------------
sync
insmod /usr/realtime/modules/rtai_hal.ko
insmod /usr/realtime/modules/rtai_lxrt.ko
insmod /usr/realtime/modules/rtai_shm.ko
insmod /usr/realtime/modules/rtai_fifos.ko
insmod rt_process.o
./scope
rmmod rt_process
rmmod rtai_shm
rmmod rtai_fifos
rmmod rtai_lxrt
rmmod rtai_hal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scope.c
Type: text/x-csrc
Size: 629 bytes
Desc: not available
Url : http://mail.rtai.org/pipermail/rtai/attachments/20060721/64523847/attachment-0001.c 


More information about the Rtai mailing list