Fengli, Aren't make files fun. :)
The easiest way is to put your new code into an folder with similar functions to what your code does. For a user interface src/emc/usr_intf would be a good candidate. Then you will want to modify the Submakefile in that folder to compile and link the software you added. See: http://cvs.linuxcnc.org/cvs/emc2/src/emc/usr_intf/Submakefile?rev=1.16;conte nt-type=text%2Fplain Assuming you have includes similar to those in shcom, emcsh, etc. in your source code, then you should basically be able to make similar entries in the Submakefile for your files as already exist for emcsh, etc. That should handle most of the compiling and linking, except that you will have to make the necessary references to the Qt libraries. Once you have it working, it is advised that you check the code you added into CVS, so that it will stay in synch with EMC2 development. Otherwise you risk having to keep updating your code every time you check out the latest version of EMC. This is also a good idea for complying with GPL as far as making the source code of any derived work available, unless of course it is strictly for personal use (NB: IANAL and don't claim to be any sort of authority on GPL and related licensing issues). Regards, Eric > hi, all > now ,i have made my own GUI using Qt, and i want to compile > it and have a try running. when i compile it , it seems lack > of many many "include" files. my question is how to compile > and link it with emc other models?? please, please help me! > it's very important to me. as soon as possible! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
