Small guidline...

More
17 Nov 2011 06:50 #14887 by frequency
Small guidline... was created by frequency
Hy!

I 'm new at EMC and Linux Ubuntu so i have a few questions for building own components.

I had installed EMC + Ubuntu with Live CD.

The way to do i think:

1.) Write my C code for the component with a text editor and put it into emc2/src/hal/components with file extension .comp .
2.) Run comp.

Is this correct?

But i canĀ“t find the path "emc2/src/hal/components" ?? Need i some more installation of EMC?

Many thanks in advance
Wolfgang

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

More
17 Nov 2011 08:33 #14889 by cmorley
Replied by cmorley on topic Re:Small guidline...
try this:
www.linuxcnc.org/docs/2.4/html/hal_comp....-realtime-components
I think that works without downloading the source...

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

More
17 Nov 2011 11:24 #14892 by ArcEye
Replied by ArcEye on topic Re:Small guidline...
Hi

You will only have .../emc2/src/hal/components if you are compiling emc from sources.
I don't know if configure would add in your component automatically or whether you would have to edit makefile.in

If I just want to add a single component to an already installed emc system, I just put the mycomponent.comp file in either the
~/emc2/configs directory that relates to the machine the component is to be used on
or in the root of the .../emc-dev/ directory if using on a RIP build.
That is just so I know where to look for source code, comp takes care of installing the compiled component.

From that directory (remembering to set the emc-environment if a RIP) run
sudo comp --install mycomponent.comp

and subject to your code being correct, it will be compiled and installed.

regards

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

More
17 Nov 2011 11:48 #14894 by andypugh
Replied by andypugh on topic Re:Small guidline...
ArcEye wrote:

You will only have .../emc2/src/hal/components if you are compiling emc from sources.
I don't know if configure would add in your component automatically or whether you would have to edit makefile.in

The makefile automatically compiles everything in the components directory. However, that is only any use if you want to recompile the whole of EMC2, so isn't what I would reccomend in this case. The comp --install way is much simpler.

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

More
17 Nov 2011 13:14 #14895 by frequency
Replied by frequency on topic Re:Small guidline...
Is it possible to find a describtion for this task, so that a person without much Linux experience like me can do this?

thanks

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

More
17 Nov 2011 14:29 #14897 by andypugh
Replied by andypugh on topic Re:Small guidline...
frequency wrote:

Is it possible to find a describtion for this task, so that a person without much Linux experience like me can do this?

If you go back to the link John posted, and scroll to the beginning you might find what you want.

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

More
17 Nov 2011 15:56 #14903 by frequency
Replied by frequency on topic Re:Small guidline...
Ok! I will try it.

Thank you

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

Time to create page: 0.068 seconds
Powered by Kunena Forum