how to compile the hostmot2 driver files?

More
30 Jul 2010 05:21 #3523 by KobeYang
Hi all,
I want to modify the driver files of Mesa-hostmot2,but I don't know how to compile it.Can anybody help me?Thanks.

Please Log in or Create an account to join the conversation.

More
30 Jul 2010 08:36 #3524 by andypugh
KobeYang wrote:

Hi all,
I want to modify the driver files of Mesa-hostmot2,but I don't know how to compile it.Can anybody help me?Thanks.


The simplest way is with "comp"
linuxcnc.org/docs/html/hal_comp.html
That can compile realtime component written in C as well as ones written in the "comp" preprocessing language.
You may need to install emc2-dev to get comp:
sudo apt-get install emc2-dev
Then navigate to /src/hal/drivers/mesa-hostmot2 and issue the command
sudo comp --install hostmot2.c (or whichever of the driver files you end up changing)

What changes do you wish to make? It might be easier to write a new component in comp, or the functionality might already be there in another way.

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum