sittner / linuxcnc-ethercat

LinuxCNC EtherCAT HAL driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How build with machinkit-hal and EMCApplication?

summerlotus513 opened this issue · comments

How build with machinkit-hal and EMCApplication?
I want build it with machinekit-hal & emcapplication.
machinekit-hal & emcapplication already builded and work~
but when i want build linuxcnc-ethercat, there seems to be a dependency error of the library?
I changed the link library path to machinekit-hal and modified the library to -lhal, but it doesn't seem to work

can you be more specific? do you get something like this at linking time?

aarch64-linux-gnu-gcc -o lcec_conf lcec_conf.o lcec_conf_util.o lcec_conf_icmds.o -Wl,-rpath,/usr/lib -L/usr/lib -lhal -lexpat /usr/bin/ld: lcec_conf.o: undefined reference to symbol 'rtapi_shmem_delete' /usr/bin/ld: //usr/lib/libhalulapi.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status ...

i'm also trying to build lcec on mk-h&EMCApplication without 'ecdebianizing' the machine, and i've read that it should be possible, i think that zultron and others managed to have a working setup...
i'm slowly advancing and willing to write a quick howto documentation as far as i can make it work.

cloning zultron repo seems to do the trick:
https://github.com/zultron/linuxcnc-ethercat
or at least compile the package...

cloning zultron repo seems to do the trick: https://github.com/zultron/linuxcnc-ethercat or at least compile the package...

Really sorry
I went to try linuxcnc
When I try to compile on a host with machinkit installed, it reports an error

lcec_rtapi.h:23:10: fatal error: rtapi_stdint.h: No such file or directory

It is worth noting that the source code of machinekit does not contain rtapi_stdint.h, which seems to be a file only available in linuxcnc