linuxcnc trajectory planner

More
2 years 1 week ago #313137 by bkt
Replied by bkt on topic linuxcnc trajectory planner
he Grotius ... sorry for stupid question ... not read all post of these thread .... but is possible to install these project or only rip-install? can damage somethings if try on little scara your code? custom kins is the same as 2.10?

regards
The following user(s) said Thank You: Grotius

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

More
2 years 1 week ago #313140 by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Bkt,

You can install it "rip" only, but you can not run the new trajectory planner. It's still being coded.

custom kins is the same as 2.10?
I don't know wich kins versions are in. Its a recent linuxcnc git clone.
The following user(s) said Thank You: bkt

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

More
2 years 1 week ago - 2 years 1 week ago #313182 by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
Still doesn't work without copying 'liblinuxcnchal.so.0' to 'root/lib':
Code:
tpmod: dlopen: liblinuxcnchal.so.0: cannot open shared object file: No such file or directory
Last edit: 2 years 1 week ago by Aciera.
The following user(s) said Thank You: Grotius

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

More
2 years 1 week ago #313188 by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
Just reinstalled the OS (LMDE 6) and while my regular linuxcnc rip install works I still have to copy copying 'liblinuxcnchal.so.0' to 'root/lib' to get it to start from your repo.
The following user(s) said Thank You: Grotius

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

More
2 years 1 week ago - 2 years 1 week ago #313191 by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,

Thanks for trying this out.
Maybe i have an idea.

I can check the regular make process --verbose output.
Remove one lib from the rtlib that uses liblinuxcnchal.
Then invoke a make --verbose command and check the output.
In this output we can see compile flags. Then maybe we miss a compile flag.

If we miss a compile flag, we add it to the edited motmod.so or tpmod.so (cmake projects)

Let you know soon!
Last edit: 2 years 1 week ago by Grotius.

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

More
2 years 1 week ago #313211 by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,

For test, i removed homemod.so from the rtlib and did :
~/linuxcnc_trajectory_planner/src$ make BUILD_VERBOSE=1

Output of this:
Reading 203/203 dependency files
Done reading dependencies
Reading 266/266 realtime dependency files
Done reading realtime dependencies
Linking ../rtlib/homemod.so
ld -d -r -o objects/homemod.tmp objects/rtemc/motion/homemod.o objects/rtemc/motion/homing.o
objcopy -j .rtapi_export -O binary objects/homemod.tmp objects/homemod.sym
(echo '{ global : '; tr -s '\0' < objects/homemod.sym | xargs -r0 printf '%s;\n' | grep .; echo 'local : * ; };') > objects/homemod.ver
gcc -shared -Bsymbolic -Wl,--version-script,objects/homemod.ver -o ../rtlib/homemod.so objects/rtemc/motion/homemod.o objects/rtemc/motion/homing.o -lm -L/home/user/linuxcnc_trajectory_planner/lib -Wl,-rpath,/home/user/linuxcnc_trajectory_planner/lib -ltirpc  -lgpiod
chmod -x ../rtlib/homemod.so
You now need to run 'sudo make setuid' in order to run in place with access to hardware.
Code:
-Wl,
is a prefix used to pass options directly to the linker.
Code:
-rpath,/home/user/linuxcnc_trajectory_planner/lib
sets the runtime library search path for the executable

Now these are added here and here we have to use
Code:
${SRC_DIR}
as this is the cmakelists.txt current directory.
Relative from here the filepath is compiled with it.

I hope this solves the problem.
The following user(s) said Thank You: Aciera

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

Time to create page: 0.307 seconds
Powered by Kunena Forum