success with comedi-0.7.65 and RTAI 24.1.10

  I have now successfully compiled comedi-0.7.65
with RTAI 24.1.10 (see the thread
"comedi working only with ALLsoft RTAI" for background).

In: /usr/local/comedi-0.7.65/include/linux/comedi_rt.h

i added one line:

#ifdef CONFIG_COMEDI_RTAI
#include "/usr/src/rtai-24.1.10/include/config.h" <-- Added this
#include <rtai.h>
#endif
#ifdef CONFIG_COMEDI_RTL

This addition allows comedi to know about the #defines that
rtai uses within its allsoft_rtai.h such as:

#ifdef CONFIG_RTAI_RTHAL

etc.

With this hack comedi compiles fine (2.95.3) for the
2.4.18 kernel patched with patch-2.4.18-rthal5g and gives no
unresolved symbols. I think this would work fine
for 2.4.19 as well...i started working with that kernel
but switched the the 2.4.18 so i could test RTAI 24.1.9
and RTAI 24.1.10 with the same kernel. 
I had no problems compiling comedi with 24.1.9.
Since 2.4.18 initially
gave me the same problems as the 2.4.19 i think this hack
will work there as well.

Note: I learned that a good thing to do is to use the
/sbin/depmod -ae

command after you think you have a good install of RTAI.
When depmod gives you no unresolved symbols....then and only then
is a good time to move on to the comedi install.

With different configs of RTAI in order to make sure
that i recompiled everything fresh and didn't leave 
old config's objects around i had to rm
the object files in /lib/modules/2.4.18-rthal5/rtai

Jim

Received on 2002-11-02Z23:05:58