[Rtai] Error when Build a Real Time Application

Diego Rodrigues diegotabira at gmail.com
Tue May 13 15:05:38 CEST 2008


Hi everybody, I'm following the "Building Your Way Through RTAI" guide by
João Monteiro which explain step by step how to Build a real time
application. I've done all the steps and when I was on "Build the
Application" the step 5 I created a file named Makefile with this content:

sample: rt_skelet.o functions.o
        gcc -L /usr/realtime/lib -lpthread  -O2 -I /usr/realtime/include
rt_skelet.o
            functions.o -o sample
rt_skelet.o: rt_skelet.c functions.c globals.h
        gcc -c -L /usr/realtime/lib -O2 -I /usr/realtime/include rt_skelet.c
functions.o: functions.c globals.h
        gcc -c -L /usr/realtime/lib -O2 -I /usr/realtime/include functions.c
clean:
        rm *.o
        rm sample

when I executed the Makefile I had this output:

root at rodrigues:~/workspace/MyFirstRTAIAplication# ./Makefile
./Makefile: line 1: sample:: comando não encontrado
gcc: rt_skelet.o: Arquivo ou diretório inexistente
./Makefile: line 3: functions.o: comando não encontrado
./Makefile: line 5: rt_skelet.o:: comando não encontrado
gcc: rt_skelet.c: Arquivo ou diretório inexistente
gcc: no input files
./Makefile: line 8: functions.o:: comando não encontrado
In file included from functions.c:3:
globals.h:11: error: expected identifier or '(' before numeric constant
functions.c: In function 'main_loop':
functions.c:5: warning: initialization makes integer from pointer without a
cast
functions.c:30: error: 'old_time' undeclared (first use in this function)
functions.c:30: error: (Each undeclared identifier is reported only once
functions.c:30: error: for each function it appears in.)
functions.c:33: error: 'keep_on_running' undeclared (first use in this
function)
./Makefile: line 11: clean:: comando não encontrado
rm: imposível remover `*.o': Arquivo ou diretório inexistente
rm: imposível remover `sample': Arquivo ou diretório inexistente


does anybody know what is wrong?

I have the RTAI 3.6 on Ubuntu 7.10 (kernel 2.6.22-14-generic)

excuse for my english.

-- 
-=|Сëgö (R)öđя¡guєs|=-™
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.rtai.org/pipermail/rtai/attachments/20080513/d059ed01/attachment.htm 


More information about the Rtai mailing list