Installing source

More
05 Mar 2011 07:03 #7592 by marsheng
Installing source was created by marsheng
I would like to have the source on my local machine. That wasy I can track changes.

I have downloaded the source (I think) into emc2_dev

There are a number of directories in emc2_dev starting with app-defaults and ending with tests

I'm looking for a global picture for a new user.

In Windows I have source, a compiler, I produce an exe. Then I run the exe normally from a short cut from the desktop.

What is the equivalent process in Ubuntu and is there an explination of what's where in the directories?

Thanks Wallace (Just had a big aftershock typing this email !!! 4.8 Christchurch)

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

More
05 Mar 2011 13:18 #7596 by BigJohnT
Replied by BigJohnT on topic Re:Installing source
Hi Wallace,

There are several ways to get the latest version of EMC.

Using Git to download and maintain the source:

wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Installing_EMC2

Download the deb:

buildbot.linuxcnc.org/

I usually use Git but your mileage may vary... With the Git you can create a RIP (Run In Place) version along side of an installed version. EMC is started by the script file in installed_directory/src/emc.

John

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

More
05 Mar 2011 21:25 #7601 by andypugh
Replied by andypugh on topic Re:Installing source
The source is in src/ (with some of the interpreted stuff like Python elsewhere)
It is broken up into src/emc/ which contains the code related to motion planning (motion/) kinematics, G-code interpreter (rs274ngc) and the user interfaces.
src/hal/ contains all the HAL functions and the hardware drivers.
src/rtapi/ contains the realtime libraries.

The structure is just like you are used to, source compiled to make an executable file. (well, actually, lots of executable files). The main "EMC2" executable is called "emc" and is in scripts, I think.

However, I often just use halrun for testing HAL components.

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

More
05 Mar 2011 21:37 #7602 by marsheng
Replied by marsheng on topic Re:Installing source
Thanks for the reply.

How do I compile emc2 ?
Do I need to install a compiler?

Thanks Wallace

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

More
05 Mar 2011 22:06 #7603 by andypugh
Replied by andypugh on topic Re:Installing source
marsheng wrote:

How do I compile emc2 ?


Type "Make" in the src/ directory.

Do I need to install a compiler?


Possibly. And you might need to do some once-only configuration too.
Section 2.4 here: wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Ins...ilding_emc2_realtime
And
sudo apt-get build-dep emc2
sudo apt-get install build-essential autoconf
To install the compilers.

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

More
27 Mar 2011 22:05 #8172 by r_c_sekar
Replied by r_c_sekar on topic Re:Installing source
Is there any IDEs used ? There was no documentation on setting up a development environment.
Is it possible to debug through any IDE ? i have mostly used Eclipse under various linux environments.

Thanks

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

More
27 Mar 2011 22:14 #8173 by andypugh
Replied by andypugh on topic Re:Installing source
I develop in Xcode with the source files remotely mounted. I think I am the only one who does that.
Debugging is a bit tricky in the kernel modules, but you can use gdb in userspace modules.
In kernel modules I think debugging is limited to rtapi_print..

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

More
27 Mar 2011 23:19 #8178 by r_c_sekar
Replied by r_c_sekar on topic Re:Installing source
Oh, well, i am not a mac guy, however, i would expect a good development environment for linux since this is priamarily targets linux OS. That means, the components are scattered across. Would be difficult for starters i guess.

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

More
27 Mar 2011 23:30 #8179 by BigJohnT
Replied by BigJohnT on topic Re:Installing source
Actually EMC targets specific Ubuntu LTS releases only. The developers use text editors. It can be someone confusing until you understand...

John

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

More
27 Mar 2011 23:33 #8180 by r_c_sekar
Replied by r_c_sekar on topic Re:Installing source
Oh ok, i got it once looked at the source tree. let me try to put together something in Eclipse if it is worth spending some time. I assume most of the tools/languages used should be available in Eclipse as a plugin. However, it has to be built into multiple projects.

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

Time to create page: 0.171 seconds
Powered by Kunena Forum