compile and link comedi question

Thanks for the quick answer. I still have problem with my comedi program.
Here is what we did:
 
1) Developed a comedi driver for Sensory 526 board. We will submit to comedi when it is fully working. 
2) Tested successfully in comedilib/demo. We wrote a small program to read and write. It is working.
 
My question is how to use this driver with my real time programming running under LXRT. 
Compile of my program is fine with -lcomedi linking flag. But when I ran it, program complain about missing shared linbrary libcomedi-0.7-21.so. So I did a
cd /lib 
ln -s /home/everett/comedi/comedilib/lib/.lib/libcomedi-0.7-21.so .
because that was the only libcomedi.so on my PC.  
Now when I run my program, it complains that it can't open "/dev/comedi0". Do anyone know what is going on? It is perplexing since the program used the same instructions as in our working test program on the same hardware.
 
Thanks in advanced.
 
Everett 


Klaas Gadeyne <Klaas.Gadeyne_at_mech.kuleuven.ac.be> wrote:
> I am trying to use comedi for a control project under real time OS RTAI.
> My control program is developed under LXRT in user space. Do I suppose
> to use comedilib or kcomedilib? Any suggestion is welcome.

You should link your lxrt-application with libkcomedilxrt.a and use
kcomedi.

klaas


_______________________________________________
comedi mailing list
comedi_at_comedi.org
https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

Received on 2004-07-12Z18:43:05