Hello, I am developing custom library for remote control, and I am using shcom.cc and shcom.hh for communication with emc. When I run make, I get following error:
Successfully remade target file `config.h'. File `shcom.hh' does not exist. Must remake target `shcom.hh'. Failed to remake target file `shcom.hh'. I tried to remove depends folder as suggested here (http://wiki.linuxcnc.org/emcinfo.pl?action=browse&diff=1&id=FailedToRemakeMakefile), but it does not help. Here is description of project setup and changes that I have made to Emc source tree: * I have created folder emc/usr_intf/fococam and I hold my sources there * I have changed SUBDIRS in main Makefile to include my own Submakefile ** ... emc/usr_intf/gremlin emc/usr_intf/fococam \ ... * I have one source file that includes shcom.hh header * I also specify emc/usr_intf/shcom.cc as source file in my Submakefile * Here is my Submakefile FOCOCAMSRCS := \ emc/usr_intf/fococam/emcserverproxy.cc \ emc/usr_intf/fococam/fococamexception.cc \ emc/usr_intf/fococam/fococamfactory.cc \ emc/usr_intf/fococam/fococamhandler.cc \ emc/usr_intf/fococam/main.cc \ emc/usr_intf/fococam/plasmasimulator.cc \ emc/usr_intf/fococam/tcphandler.cc \ emc/usr_intf/fococam/tcpserver.cc \ emc/usr_intf/fococam/emcplasma.cc \ emc/usr_intf/shcom.cc USERSRCS += $(FOCOCAMSRCS) $(call TOOBJSDEPS, $(FOCOCAMSRCS)) : EXTRAFLAGS = $(ULFLAGS) $(TCL_CFLAGS) ../bin/fococam: $(call TOOBJS, $(FOCOCAMSRCS)) ../lib/libemc.a ../lib/libnml.so.0 ../lib/libemcini.so.0 $(ECHO) Linking $(notdir $@) $(Q)$(CXX) $(LDFLAGS) -o $@ $(ULFLAGS) $^ -lpthread TARGETS += ../bin/fococam I have checked depends/emc/usr_intf/fococam/emcplasma.d and I found that all header have full path except shcom.hh. Here it is: -- some text omitted -- libnml/inifile/inifile.hh libnml/rcs/rcs_print.hh \ libnml/os_intf/timer.hh shcom.hh emc/usr_intf/fococam/emcplasma.hh \ emc/usr_intf/fococam/emcserverproxy.hh \ -- some text omitted -- What else do I need to do to be able to compile my sources? ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers