![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hello, I am an engineering student at the University of Auckland in New Zealand. I am currently trying to implement an MTConnect adapter to an already operational, EMC2 controlled Sherline machine tool. The adapter is designed for EMC2 and is provided as source code from the MTConnect website (www.mtconnect.org). When I try to compile the adapter, error messages come up caused by missing files: g++ -g -I/include -I../src -I../include -c -o emc.o emc.cpp In file included from emc.cpp:35: emc_adapter.hpp:40:63: error: rcs.hh: No such file or directory emc_adapter.hpp:41:43: error: emc.hh: No such file or directory emc_adapter.hpp:42:22: error: emc_nml.hh: No such file or directory emc_adapter.hpp:43:66: error: emcglb.h: No such file or directory emc_adapter.hpp:44:61: error: emccfg.h: No such file or directory emc_adapter.hpp:45:43: error: inifile.hh: No such file or directory emc_adapter.hpp:46:24: error: rcs_print.hh: No such file or directory emc_adapter.hpp:47:21: error: nml_oi.hh: No such file or directory emc_adapter.hpp:48:20: error: timer.hh: No such file or directory In file included from emc.cpp:35: emc_adapter.hpp:80: error: 'EMC_STAT' does not name a type emc_adapter.hpp:81: error: ISO C++ forbids declaration of 'NML' with no type emc_adapter.hpp:81: error: expected ';' before '*' token emc_adapter.hpp:82: error: 'LINELEN' was not declared in this scope emc_adapter.hpp:83: error: ISO C++ forbids declaration of 'RCS_STAT_CHANNEL' with no type emc_adapter.hpp:83: error: expected ';' before '*' token make: *** [emc.o] Error 1 I have tried downloading these files and putting them into the folder to compile. This worked, however, another error came up caused by the code -lemc in the makefile. I looked into the meaning of this code and it appears there is an emc library file missing, libemc.so or libemc.a. I noticed that the code -lnml and -lemcini did not cause an error, and found the files libnml.so and libemcini.so were indeed in the library directory. I am guessing that whoever installed EMC2 into this system may have left out some components, or I am working with the wrong version of EMC2 (v2.2.5). Can someone please have a look into their lib directory and let me know whether libemc.so (or .a) is present. If yes, please let me know how you installed EMC2 and what version it is. Alternatively, does anyone know how I can install the library file? I have found the file libemc.a from the web but when I try to copy it into the lib directory, it says I do not have permission. Sorry for the long read, I have been trying to get this working for almost a week now. Any help will be greatly appreciated. Thank you, Shing |
|
#2
| ||||
| ||||
| My guess is that it isn't intended to be put on top of an already running implementation of EMC2, rather a fresh compile, with this mtconnect source code included in the compile. I could be wrong since it appears you have to sign up to get access to any of the source, etc. I would try reading this - http://wiki.linuxcnc.org/cgi-bin/emc...04_from_source
__________________ Every day is a learning process, whether you remember yesterday or not is the hard part. www.distinctperspectives.com |
|
#3
| ||||
| ||||
| I believe that cadmonkey is correct, in order to compile emc2 you need all of the source. When a binary installation is done, the source is not necessarily included. You can get the source either as a tarball or an anonymous cv checkout. If you are going to be doing a lot of work an anonymous cv checkout is preferable because you don't have to reload everything when you want to update things. If what you are doing is something that you might like to add to emc2, you should query the emc2 developers list about being added as a developer or at least how to go about submitting changes for someone else to commit. Alan
__________________ http://www.alansmachineworks.com |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tool files missing | tq9516pjm | TurboCNC | 8 | 03-19-2011 10:41 AM |
| Need Help!- Convert files to Inventor files. | bartL | Autodesk Software (Autocad, Inventor etc) | 7 | 02-03-2009 11:38 PM |
| convert .dnc files to .plt files. | feraldave | General CAM Discussion | 1 | 10-13-2008 04:48 AM |
| Problem- Missing pc and Ladder files for the Hitachi seiki hicell ca 20 | Rinus | CNC Machining Centers | 0 | 09-19-2008 09:45 AM |
| Converting Illustrator files to Gcode files | acoop101 | General Metal Working Machines | 1 | 06-05-2008 03:53 PM |