problems installing comedi

Stienen, A.H.A. (CTW) a.h.a.stienen at utwente.nl
Thu Jan 26 17:33:59 CET 2006


Hi Jesse,

(I moved the discussion to the RTAI mailinglist, instead of the Comedi 
one...)

I do have to say that I didn't use the CVS versions of Comedi and 
Comedilib, but versions 0.7.70 and 0.7.21 respectively, with RTAI 3.2. 
And I'm using a good old-fashioned 2.4.27 kernel, as I know this just 
works! :) I've build it on a Slackware 10.2 system, which comes with GCC 
3.3.6. Nevertheless, I didn't have to pass the 
--with-rtaidir=/usr/realtime for the configuration; without it, Comedi 
make just worked.

Perhaps somebody here knows why Comedi didn't build for you.

(You actually did check to see whether RTAI was installed to 
/usr/realtime before you compiled Comedi, right?)

Hope you succeed! But I will put the steps I used on a website sometime 
soon!

Kind regards,
Arno.

Jesse Gohl wrote:
> Hi Arno,
> 
> I was following your postings on the RTAI mailing list and was
> encouraged by your success to try this again.  I've been trying to get a
> full setup like yours working for quite awhile.  Anyway, I was actually
> following that particular howto and the install of comedi (not
> comedilib) is the only step that is now giving me trouble. What concerns
> me is the line "../../../include/linux/comedi_rt.h:42:18: rtai.h: No
> such file or directory" in the returned results from "make".  Maybe I'll
> try a different version of gcc (what version did you have?). 
> Unfortunately, since I'm not a programmer, I always end up using a trial
> and error approach to these types of issues.
> 
> thanks for the reply,
> Jesse
> 
> 
> Stienen, A.H.A. (CTW) wrote:
> 
> 
>>I followed all the steps in the RTAI&Comedi install guide of Roberto
>>Bucher, and didn't have this problem. Did you follow these steps too?
>>You can find the guide here:
>>
>>http://www.dti.supsi.ch/~bucher/scilab-howto.pdf
>>
>>Kind regards,
>>Arno.
>>
>>Jesse Gohl wrote:
>>
>>
>>>I'm having problems installing comedi.  The error occurs during the
>>>"make" command.  The full results are shown below.
>>>
>>>My configuration:
>>>1. Centos-4.2
>>>2. RTAI-3.3-test4
>>>3. linux 2.6.10 kernel
>>>4. Comedi checked out of cvs today.
>>>5. gcc - 3.4.4
>>>6. linux 2.6.10 kernel
>>>7. configure command: ./configure
>>>--with-linuxdir=/usr/src/kernels/linux-2.6.10-rtai
>>>--with-rtaidir=/usr/realtime
>>>
>>>The last few lines of the returned results from "make" are shown
>>>below. Does anyone have any hints as to what I'm doing wrong?  It
>>>seems like
>>>the problem is that it doesn't include the path to
>>>"/usr/realtime/include" but I've included the
>>>"--with-rtaidir=/usr/realtime" in the "configure" command.  Thanks for
>>>any help.
>>>
>>>
>>>
>>>----------------------------------------------------------
>>>make[3]: Leaving directory `/usr/share/comedi/comedi/kcomedilib'
>>>Making all in drivers
>>>make[3]: Entering directory `/usr/share/comedi/comedi/drivers'
>>>Making all in addi-data
>>>make[4]: Entering directory `/usr/share/comedi/comedi/drivers/addi-data'
>>>if gcc -DHAVE_CONFIG_H -I. -I. -I../../..    -I../../../include/
>>>-DKBUILD_MODNAME=addi_common -DKBUILD_BASENAME=addi_common -Wall
>>>-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2
>>>-fomit-frame-pointer -g -pipe -msoft-float -mpreferred-stack-boundary=2
>>>-fno-unit-at-a-time -march=i686
>>>-I/usr/src/kernels/linux-2.6.10-rtai/include/asm-i386/mach-default
>>>-Wdeclaration-after-statement -D__KERNEL__
>>>-I/usr/src/kernels/linux-2.6.10-rtai/include  -DMODULE -g -O2 -MT
>>>addi_common.o -MD -MP -MF ".deps/addi_common.Tpo" -c -o addi_common.o
>>>addi_common.c; \
>>>then mv -f ".deps/addi_common.Tpo" ".deps/addi_common.Po"; else rm -f
>>>".deps/addi_common.Tpo"; exit 1; fi
>>>In file included from ../../../include/linux/comedidev.h:395,
>>>                 from addi_common.c:65:
>>>../../../include/linux/comedi_rt.h:42:18: rtai.h: No such file or
>>>directory
>>>../../../include/linux/comedi_rt.h:43:24: rtai_sched.h: No such file or
>>>directory
>>>In file included from ../../../include/linux/comedidev.h:395,
>>>                 from addi_common.c:65:
>>>../../../include/linux/comedi_rt.h: In function
>>>`__comedi_spin_lock_irqsave':
>>>../../../include/linux/comedi_rt.h:97: warning: implicit declaration of
>>>function `rt_spin_lock_irqsave'
>>>../../../include/linux/comedi_rt.h: In function
>>>`comedi_spin_unlock_irqrestore':
>>>../../../include/linux/comedi_rt.h:119: warning: implicit declaration of
>>>function `rt_spin_unlock_irqrestore'
>>>../../../include/linux/comedi_rt.h: In function `comedi_udelay':
>>>../../../include/linux/comedi_rt.h:140: warning: implicit declaration of
>>>function `rt_busy_sleep'
>>>In file included from addi_common.h:61,
>>>                 from addi_common.c:70:
>>>addi_amcc_s5933.h: In function `i_find_free_pci_card_by_position':
>>>addi_amcc_s5933.h:374: warning: implicit declaration of function
>>>`rt_printk'
>>>make[4]: *** [addi_common.o] Error 1
>>>make[4]: Leaving directory `/usr/share/comedi/comedi/drivers/addi-data'
>>>make[3]: *** [all-recursive] Error 1
>>>make[3]: Leaving directory `/usr/share/comedi/comedi/drivers'
>>>make[2]: *** [all-recursive] Error 1
>>>make[2]: Leaving directory `/usr/share/comedi/comedi'
>>>make[1]: *** [all-recursive] Error 1
>>>make[1]: Leaving directory `/usr/share/comedi'
>>>make: *** [all] Error 2
>>>-----------------------------------------------------------------------------------------------
>>>
>>>
>>>
>>>_______________________________________________
>>>comedi mailing list
>>>comedi at comedi.org
>>>https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>>
>>
> 

-- 
   ____
  /  |_| <<< IR. ARNO H.A. STIENEN >>>
|_ O  | Biomechanical Engineering | http://www.bw.ctw.utwente.nl
|_|__/  a.h.a.stienen at utwente.nl  | +31-(0)53-489-4778
UTwente "There are alternatives: Firefox, Thunderbird & OpenOffice!"






More information about the Rtai mailing list