it's really weird, when i run CRAMPS in machinekit by command line terminal, it's work good. But when i run it from the Machinekit CNC Machine Controller it 's bug. I dont know if my new built work.
Vào 23:42:08 UTC+7 Thứ Hai, ngày 14 tháng 8 năm 2017, Schooner đã viết: > > > On 14/08/17 17:02, thangle wrote: > > sorry, here is my makefile. i just add > > obj-m += trivkinstest.o > trivkinstest-objs := emc/kinematics/trivkinstest.o > $(RTLIBDIR)/trivkinstest$(MODULE_EXT): $(addprefix > $(OBJDIR)/,$(trivkinstest-objs)) > > can you give more details how should i do to build a RIP > > > You are already doing it > > > *- 3rd: use terminal go to /home/machinekit/machinekit/src and "make" then > type command "sudo make setuid" *You need to run what you built, not what > is installed, as per my previous reply > > or run idconfig mannually. Sorry, i 'm a new in linux and BBB, trying to > learn them > > > man ldconfig (starts with an L, not an i ) > > > > > Vào 22:39:17 UTC+7 Thứ Hai, ngày 14 tháng 8 năm 2017, Schooner đã viết: >> >> >> On 14/08/17 16:22, thangle wrote: >> >> Here is what i did: >> >> - 1st: i make a coppy trivkins.c then rename it become trivkinstest.c >> and changing line 88 to: static const char *name = "trivkinstest"; >> >> - 2nd: i follow this >> >> https://groups.google.com/forum/#!msg/machinekit/yrBnTxQL7_E/IrPHxKn3BQAJ;context-place=forum/machinekit >> >> >> I wrote that, so I am familiar with it >> >> + i pass Submakefile >> + just change something in Makefile >> >> >> 'just change something in makefile' is not information >> >> - 3rd: use terminal go to /home/machinekit/machinekit/src and "make" >> then type command "sudo make setuid" >> >> - 4th: i try to test if trivkinstest work. i open CRAMPS.hal, change >> loadrt trivkins -->loadrt trivkinstest >> loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD >> num_joints=[TRAJ]AXES tp=tp kins=trivkins--->trivkinstest >> >> - finally: i try run CRAMPS but it's bugged >> Debug file information: >> stat: No such file or directory >> CRAMPS.hal:18: insmod failed, returned -1: >> do_load_cmd: dlopen: trivkinstest.so: cannot open shared object >> file: No such file or directory >> >> >> The module appears to have built from your printout, but you also look to >> be building a RIP and then executing a binary installation >> Look at the rpath >> >> You need to build the RIP, set the current terminal session environment >> using . ./scripts/rip-environment from the root of the RIP >> and then launch machinekit from *that *terminal session >> >> Either that or copy the new module to your binary install and run >> ldconfig manually and check it is in the cache >> >> rpath=/usr/lib/linuxcnc/xenomai >> See /var/log/linuxcnc.log for more information. >> 10047 >> PID TTY STAT TIME COMMAND >> Stopping realtime threads >> Unloading hal components >> >> i'm using BBB and machinekit. sorry for my trash English. >> >> Vào 15:41:12 UTC+7 Thứ Hai, ngày 14 tháng 8 năm 2017, Schooner đã viết: >>> >>> Going to need a lot more info than that and to see the source. >>> >>> You basically need to know how to write Makefiles, to alter the existing >>> ones to build your stuff too, assuming it is compatible. >>> >>> On 14/08/17 03:39, thangle wrote: >>> >>> Hi, >>> >>> Does anyone know how to compile a new source? example, i coppy a new C >>> project from an old project in machinekit src and rename, what should i do >>> to make it work. please help me. tks >>> -- >>> 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. >>> >>> >>> -- >> 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. >> >> >> -- > 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] <javascript:>. > Visit this group at https://groups.google.com/group/machinekit. > For more options, visit https://groups.google.com/d/optout. > > > -- 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.
