Константин Росляков
unread,Jul 24, 2023, 2:18:45 PM7/24/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Machinekit
Hello everyone. I am developing my own application in Qt Creator in C++.
Before this, I worked with the HAL library from LinuxCNC. However, I
needed the function hal_create_thread. But I don't understand how to
connect it because it's not in the library (LIBS +=
-L/home/armada/linuxcnc-dev/lib/ -llinuxcnchal). Everything else is
there, like hal_init etc. Maybe it is set in another library or is not
available in the final build for the user. I noticed Machinekit-HAL,
there is a similar library, but in the header file there is also a
function (hal_create_xthread) that is not present in LinuxCNC at all,
but it would be interesting for me. As it would be nice to distribute
processes on different cores of the processor. I seemed to have built
Machinekit-HAL both locally and globally, and also installed the ready
one from the repository. But I can't find the library to connect it to
my project, i.e. even hal_init doesn't work from Machinekit-HAL. The
question is how to properly attach the library to the C++ qmake project.
With LinuxCNC I did it like this: #LIBS += -llinuxcnchal and the
function hal_init, but hal_create_thread did not work. If anyone knows
how to do this with Machinekit-HAL, I would be grateful.