Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How build with machinkit-hal and EMCApplication? #108

Open
summerlotus513 opened this issue Oct 20, 2021 · 4 comments
Open

How build with machinkit-hal and EMCApplication? #108

summerlotus513 opened this issue Oct 20, 2021 · 4 comments

Comments

@summerlotus513
Copy link

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

@claudiolorini
Copy link

claudiolorini commented Oct 20, 2021

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.

@claudiolorini
Copy link

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

@summerlotus513
Copy link
Author

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

@summerlotus513
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants