okay I have made a huge terrible hack that seems to work for kinematics comp of genserkins out of tree but someone needs to add command line args to comp to scan filelist to add extra %s-objs and search in machinekit tree for paths etc..
https://github.com/machinekit/machinekit/blob/master/src/hal/utils/comp.g#L677 add in the following code print >>f, "obj-m += %s " % objname nname=os.path.basename(os.path.splitext(filename)[0] ) print >>f, "%s-objs := %s " % (nname, objname) print >>f, "%s-objs += machinekit/src/libnml/posemath/gomath.o "% nname print >>f, "%s-objs += machinekit/src/libnml/posemath/sincos.o "% nname print >>f, " " print >>f, "include %s" % find_modinc() print >>f, "$(RTLIBDIR)/%s$(MODULE_EXT): $(addprefix $(OBJDIR)/,$(%s-objs))" % (nname,nname) I may get time to do this over weekend unless someone else has better idea or more free time?, comments/advice/ideas.............. On Friday, 12 January 2018 14:29:05 UTC, fishy wrote: > > > > I am a machinekit newbie so please make allowances for any stupidty I may > show in this question. > > I want to play with kinematics and trajectory planning(I have no real > experience or knowledge in the field but would like to learn) > > I have looked at the src in src/emc/kinematics (tp) and made copies out of > tree to play with. > > I have done this with low level drivers and use 'comp --install' to > compile c code out of tree and it installs and runs fine when added into a > hal config. > > But I try this with kinematics and tp e.g. > > 'bin/comp --install pathtonewtp/tp.c' -----> syntax error in VERSION script > 'bin/comp --install pathtonewtp/tpmain.c' -------> compiles fine but > missing required symbols when module is loaded into hal > 'bin/comp --install pathtonewkinematics/genserkins.c' -------> compiles > fine but missing required symbols when module is loaded into hal > > > So my question how can I get 'comp' to link in objectfiles and shared libs > so that the modules will load? > > > Sorry if this is answered elsewhere being a newbie I maybe do not have > enough knowledge to give correct search terms to google, also I have only > skimmed the manual so maybe missed something? > > > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
