[Solved] Compile Error when using regular math functions in kinematics file

More
6 years 8 months ago #158652 by dgarrett
thanks for posting your source files with these i could
reproduce the DSO error, the problem is in the make for
the *userspace* bin/genserkins when using math functions not
provided by gomath,posemath etc.

Note: the bin/genserkins utility is undocumented and is likely seldom
used. it is buggy in all branches -- this doesn't effect realtime
modules using genser*.c files

force pushed dgarr/s_kins commit: 9af319596
(adds -lm in src/emc/Submakefile)


Note: the master branch is currently broken but
dgarr/s_kins is rebased to an older (working)
master branch

Please Log in to join the conversation.

More
6 years 8 months ago #158735 by Aciera
Thanks again for the prompt reply!

I build the newest commit but I'm still having the same issue after copying my config to the configs folder and the .c files to src/emc/kinematics:

Attachment not found

Attachment not found



Warning: Spoiler!


I'm sorry to keep bothering you.

Please Log in to join the conversation.

More
6 years 8 months ago #158750 by dgarrett

still having the same issue after copying

I tested with your files on buster and stretch
and they work for me so i have pushed a
'scratch' branch that you can try:
dgarr/aciera.0

github.com/LinuxCNC/linuxcnc/commits/dgarr/aciera.0

Please test.
If this works for you, i will modify dgarr/s_kins
to make it simpler for you to add an additional
kinematics method within dgarr/s_kins.

Please Log in to join the conversation.

More
6 years 8 months ago #158757 by dgarrett
28feb20 dgarr/s_kins branch update (e10cc60d371):
28feb20 later: (eed4edd7e)

1) In genser-switchkins.c, support:
motion.switchkins-type == 2
2) provide template file named switchtype2funcs.c
demonstrating functions:
switchtype2KinematicsForward()
switchtype2KinematicsInverse()
3) demonstate usage in puma560-switchkins.ini

A user can now modify just one file (switchtype2funcs.c)
to add any code necessary to provide kinematics for
motion.switchkins-type==2

It is intended that user should not need to modify any
other files in order to maintain a common and stable
genserkins base. Bug fixes for genserkins should be
implemented in appropriate in-tree files.

Notes:
Code:
switchkins-type==0 is default at startup switchkins-type==1 is reserved (and used by existing switchable kinematics modules) switchkins-type==2 is supported but implemented only by a template that user can modify as required

In the future, the switchtype2funcs.c template may be
used with other switchable kinematics modules (e.g.,
not limited to genser-switchkins).

Template Ref: github.com/LinuxCNC/linuxcnc/blob/dgarr/...s/switchtype2funcs.c

Please Log in to join the conversation.

More
6 years 8 months ago #158766 by Aciera
Thank you for your ongoing support!

Sadly it's not working for me on my linux mint machine:

Warning: Spoiler!


I will setup a new machine tomorrow using debian buster and try again.

Please Log in to join the conversation.

More
6 years 8 months ago #158777 by dgarrett
i found a mint18 virtual machine and was able to
replicate your result -- not a linker expert but
a minor reordering fixed for me on that machine.

Please try new branch: dgarr/aciera.1
and report (and include output from linuxcnc_info)

Supporting&testing every possible
distribution/architecture/kernel/release
is not always simple.

Please Log in to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum