'sudo comp --install genhexkins.c' error
22 May 2014 15:42 #47188
by tiffany
'sudo comp --install genhexkins.c' error was created by tiffany
Hi everyone
I tried to recompiling a new HAL component with 'sudo comp --install genhexkins.c'
It always wrong
the error is shown in attachment
hw could I solve it?
Thank you ~~~
I tried to recompiling a new HAL component with 'sudo comp --install genhexkins.c'
It always wrong
the error is shown in attachment
hw could I solve it?
Thank you ~~~
Please Log in or Create an account to join the conversation.
22 May 2014 20:31 #47200
by ArcEye
Replied by ArcEye on topic 'sudo comp --install genhexkins.c' error
genhexkins.c is not a standalone component that comp understands, it is an integral part of the kinematics in Lcnc
1) Provide all the correct headers and libraries when you build it, which is not simple with comp.
2) A far more sane approach, is to substitute your new one for the old one in the source tree, and build Lcnc
regards
1) Provide all the correct headers and libraries when you build it, which is not simple with comp.
2) A far more sane approach, is to substitute your new one for the old one in the source tree, and build Lcnc
regards
Please Log in or Create an account to join the conversation.
22 May 2014 20:31 #47201
by andypugh
Unfortunately you can only successfully compile/install kinematics modules with "comp" if they don't #include any external files (other than normal maths libraries)
You will have to recompile all of LinuxCNC to recompile genhexkins. Well, actually it would be possible to only recompile genhexkins, and that is what will happen if that is all that has changed since the last compile, but it is less work to run "make" rather than manually compile just the one file.
Replied by andypugh on topic 'sudo comp --install genhexkins.c' error
the error is shown in attachment
Unfortunately you can only successfully compile/install kinematics modules with "comp" if they don't #include any external files (other than normal maths libraries)
You will have to recompile all of LinuxCNC to recompile genhexkins. Well, actually it would be possible to only recompile genhexkins, and that is what will happen if that is all that has changed since the last compile, but it is less work to run "make" rather than manually compile just the one file.
Please Log in or Create an account to join the conversation.
23 May 2014 09:36 #47221
by tiffany
Replied by tiffany on topic 'sudo comp --install genhexkins.c' error
I 'make ' a new linuxcnc-dev;
it's the same error;
what was wired is other component such as 5axiskins ....is ok~
only for genhexkins.c or genserkins.c
all headers is included.
what shoud I do?
thanks
it's the same error;
what was wired is other component such as 5axiskins ....is ok~
only for genhexkins.c or genserkins.c
all headers is included.
what shoud I do?
thanks
Please Log in or Create an account to join the conversation.
23 May 2014 09:47 #47222
by tiffany
i 'make' all 'linuxcnc-dev' is ok~
but when I tried to 'halrun->loadrt genhexkins' ,the same error is shown~~
Replied by tiffany on topic 'sudo comp --install genhexkins.c' error
the error is shown in attachment
Unfortunately you can only successfully compile/install kinematics modules with "comp" if they don't #include any external files (other than normal maths libraries)
You will have to recompile all of LinuxCNC to recompile genhexkins. Well, actually it would be possible to only recompile genhexkins, and that is what will happen if that is all that has changed since the last compile, but it is less work to run "make" rather than manually compile just the one file.
i 'make' all 'linuxcnc-dev' is ok~
but when I tried to 'halrun->loadrt genhexkins' ,the same error is shown~~
Please Log in or Create an account to join the conversation.
23 May 2014 13:38 - 23 May 2014 13:39 #47226
by ArcEye
Replied by ArcEye on topic 'sudo comp --install genhexkins.c' error
The error is because you have built a kernel module without functions it uses being linked against it.
Off the top of my head, these look like cartesian maths functions and the pm prefix could well mean they should be found in libposemath.
Without sight of the whole source tree with all your changes, it is impossible to guess what might be causing this.
If you want to stick the entire source code tree into a github repo and let us know the url, we can look at it further, but otherwise we are working in the dark
regards
Off the top of my head, these look like cartesian maths functions and the pm prefix could well mean they should be found in libposemath.
Without sight of the whole source tree with all your changes, it is impossible to guess what might be causing this.
If you want to stick the entire source code tree into a github repo and let us know the url, we can look at it further, but otherwise we are working in the dark
regards
Last edit: 23 May 2014 13:39 by ArcEye.
Please Log in or Create an account to join the conversation.
25 May 2014 14:25 #47297
by tiffany
Replied by tiffany on topic 'sudo comp --install genhexkins.c' error
Thank you for your help!
It has been solved~
I really 'make ' the whole 'linuxcnc-dev', but my 'halrun' was executed without 'rip-environment'.
so ,after '. ./scripts/rip-environment'
halrun
loadrt genhexkins
everything is ok~~
regards~
It has been solved~
I really 'make ' the whole 'linuxcnc-dev', but my 'halrun' was executed without 'rip-environment'.
so ,after '. ./scripts/rip-environment'
halrun
loadrt genhexkins
everything is ok~~
regards~
Please Log in or Create an account to join the conversation.
25 May 2014 15:43 #47300
by ArcEye
Replied by ArcEye on topic 'sudo comp --install genhexkins.c' error
OK, glad it is sorted.
At some point you will have to share how you are using it.
I gather from the code I have seen that it is all to do with setting jerk limits
regards
At some point you will have to share how you are using it.
I gather from the code I have seen that it is all to do with setting jerk limits
regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.071 seconds