- Posts: 19306
- Thank you received: 0
7i77 5i25 hm2_pci unloaded
So any problem you are having is likely to be caused by being in a uspace system.
At the bottom of section 6.2 linuxcnc.org/docs/2.7/html/hal/comp.html#_options there is an entry that is relevant _only_ when compiling in Uspace. Perhaps that is something you need to add items to?
Please Log in to join the conversation.
I try to do this:
The error returned from Lcnc is :
These because libmodbus is userspace library and not realtime library so K1MbServer.c it must be userspace component ....
I not uderstand wery well: on ubuntu 10.04 Lcnc is installed on root directory .... on ubuntu14.04 Lcnc is installed on linuxcnc-dev directory in Home directory .... so the most logical conclusion is that there is permission problems ... libmodbus and math.h is in root dir /usr/include..... linuxcnc on /home/linuxcnc-dev .... I'm pretty sure that if I leave math.h and put rtmath.h instead the error about "floor" disappear ....
So the question is .... How can correctly link the library used on my comp?? I have just make a symlink of libmodbus.so on /home/linuxcnc-dev/lib .... but it not works...
Regards
Giorgio
Please Log in to join the conversation.
option extra_link_args "…" - (default: "") This option is ignored if the option userspace (see above) is set to no. When linking a userspace component, the arguments given are inserted in the link line. Note that because compilation takes place in a temporary directory, "-L." refers to the temporary directory and not the directory where the .comp source file resides.
so:
gcc -Os -g -I. -I/home/k1/linuxcnc-dev/src/include -DUSPACE -fno-fast-math -mieee-fp -fno-unsafe-math-optimizations -DRTAPI -D_GNU_SOURCE -Drealtime -D__MODULE__ -I/home/k1/linuxcnc-dev/include -Wframe-larger-than=2560 -DSIM -fPIC -URTAPI -U__MODULE__ -DULAPI -Os -lm -ldl -L/usr/local/include/modbus -lmodbus -o K1MbServer /tmp/tmp0wIaJv/konembserver.c -Wl,-rpath,/home/k1/linuxcnc-dev/lib -L/home/k1/linuxcnc-dev/lib -llinuxcnchal
/*********** -lm -ldl -L/usr/local/include/modbus -lmodbus*************/
the commented row .. the link is search in /tmp/.... or in the right place on /usr/include...???
Regards
giorgio
Please Log in to join the conversation.
