Re: [Emc-users] adding and compiling a new file
Thanks guys, John's method works; I'll try the others too. If anyone wants these files, I'll happily send. c brauer On Mon, Jun 2, 2008 at 11:31 AM, Jeff Epler [EMAIL PROTECTED] wrote: On Mon, Jun 02, 2008 at 06:13:05PM +0200, jros wrote: I think a different aproach is sudo comp --install your_kin.c from EMC 2.1.7 and above. It compiles and installs in place (I think) (sudo) comp --install should work for both run-installed and run-in-place versions. The sudo will be necessary for run-installed systems, because typically root owns the directory containing the emc modules. sudo is usually not necessary for run-in-place, because the user probably owns the module directory. I recommend comp --install over modifying emc2's makefiles if all you are doing is adding new components. However, if you do prefer to integrate the new module with the emc source tree, you can do that too. For .comp files, just place the file in src/hal/components or src/hal/drivers as appropriate. For other modules, you have to write several lines in the top-level Makefile, similar to these for trivkins: obj-m += trivkins.o trivkins-objs := emc/kinematics/trivkins.o # ... many lines later ... ../rtlib/trivkins$(MODULE_EXT): $(addprefix objects/rt,$(trivkins-objs)) Jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] adding and compiling a new file
Hi all- I am trying to compile and build the dipod, so I placed the functions mentioned in the 'kematics document' keeping the file looking like tripod.c. Now what? How do I get emc to compile it? Is there a step-by-step proceedure for adding new files and getting emc to comile them? Thanks. c brauer - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] adding and compiling a new file
Charles Brauer wrote: Hi all- I am trying to compile and build the dipod, so I placed the functions mentioned in the 'kematics document' keeping the file looking like tripod.c. Now what? How do I get emc to compile it? Is there a step-by-step proceedure for adding new files and getting emc to comile them? Thanks. c brauer The procedure depends on the file(s) you are adding - it will be different for realtime code vs. user space code, etc. In your case, I looked in src/emc/klnematics, and I didn't see tripod.c, although there is a tripodkins.c. Was tripod.c a typo, or am I looking in the wrong place? Assuming you meant tripodkins.c - look in the main makefile in the src/ directory - if you search for tripod you will find: obj-m += tripodkins.o tripodkins-objs := emc/kinematics/tripodkins.o and farther down in the file: ../rtlib/tripodkins$(MODULE_EXT): $(addprefix objects/rt,$(tripodkins-objs)) You'll need to duplicate both of those using the name of your new file. Good luck! John Kasunich - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] adding and compiling a new file
On Mon, Jun 02, 2008 at 06:13:05PM +0200, jros wrote: I think a different aproach is sudo comp --install your_kin.c from EMC 2.1.7 and above. It compiles and installs in place (I think) (sudo) comp --install should work for both run-installed and run-in-place versions. The sudo will be necessary for run-installed systems, because typically root owns the directory containing the emc modules. sudo is usually not necessary for run-in-place, because the user probably owns the module directory. I recommend comp --install over modifying emc2's makefiles if all you are doing is adding new components. However, if you do prefer to integrate the new module with the emc source tree, you can do that too. For .comp files, just place the file in src/hal/components or src/hal/drivers as appropriate. For other modules, you have to write several lines in the top-level Makefile, similar to these for trivkins: obj-m += trivkins.o trivkins-objs := emc/kinematics/trivkins.o # ... many lines later ... ../rtlib/trivkins$(MODULE_EXT): $(addprefix objects/rt,$(trivkins-objs)) Jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] adding and compiling a new file
I think a different aproach is sudo comp --install your_kin.c from EMC 2.1.7 and above. It compiles and installs in place (I think) You can try, it works for us Javier El lun, 02-06-2008 a las 10:39 -0500, Charles Brauer escribió: Hi all- I am trying to compile and build the dipod, so I placed the functions mentioned in the 'kematics document' keeping the file looking like tripod.c. Now what? How do I get emc to compile it? Is there a step-by-step proceedure for adding new files and getting emc to comile them? Thanks. c brauer - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users