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

More
27 Feb 2020 16:53 - 27 Feb 2020 17:06 #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
Last edit: 27 Feb 2020 17:06 by dgarrett. Reason: clarify note on bin/genserkins

Please Log in or Create an account to join the conversation.

More
28 Feb 2020 08:52 - 28 Feb 2020 08:52 #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:

File Attachment:

File Name: genserfunc...-02-28.c
File Size:27 KB

File Attachment:

File Name: genser-swi...-02-28.c
File Size:6 KB


Warning: Spoiler!


I'm sorry to keep bothering you.
Attachments:
Last edit: 28 Feb 2020 08:52 by Aciera. Reason: typo

Please Log in or Create an account to join the conversation.

More
28 Feb 2020 13:18 #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 or Create an account to join the conversation.

More
28 Feb 2020 15:55 - 29 Feb 2020 04:05 #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:
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
Last edit: 29 Feb 2020 04:05 by dgarrett. Reason: subsequent commit noted
The following user(s) said Thank You: tommylight, Aciera

Please Log in or Create an account to join the conversation.

More
28 Feb 2020 17:03 - 28 Feb 2020 17:04 #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.
Last edit: 28 Feb 2020 17:04 by Aciera.

Please Log in or Create an account to join the conversation.

More
28 Feb 2020 18:45 - 28 Feb 2020 20:23 #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.
Last edit: 28 Feb 2020 20:23 by dgarrett.
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum