Pokeys
10 Oct 2023 04:47 #282661
by dibor
Hello guys.
I am a new in LinuxCNC.
Here latest LinuxCNC version.
Trying to compile pokeyslib but got errors
What I should to do ?
Thank you.
I am a new in LinuxCNC.
Here latest LinuxCNC version.
Trying to compile pokeyslib but got errors
PoKeysLibDevicePoKeys57Industrial.c: In function ‘PK57i_SearchDevice’:
PoKeysLibDevicePoKeys57Industrial.c:221:12: warning: implicit declaration of function ‘GetBroadcastAddresses’ [-Wimplicit-function-declaration]
addr = GetBroadcastAddresses();
^~~~~~~~~~~~~~~~~~~~~
PoKeysLibDevicePoKeys57Industrial.c:221:10: warning: assignment to ‘uint32_t *’ {aka ‘unsigned int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
addr = GetBroadcastAddresses();
^
PoKeysLibDevicePoKeys57Industrial.c:233:51: error: ‘SOCKADDR’ undeclared (first use in this function); did you mean ‘SOCK_RDM’?
if (sendto(txSocket, SendBuf, BufLen, 0, (SOCKADDR *)&remoteEP, sizeof(remoteEP)) == -1)
^~~~~~~~
SOCK_RDM
PoKeysLibDevicePoKeys57Industrial.c:233:51: note: each undeclared identifier is reported only once for each function it appears in
PoKeysLibDevicePoKeys57Industrial.c:233:61: error: expected expression before ‘)’ token
if (sendto(txSocket, SendBuf, BufLen, 0, (SOCKADDR *)&remoteEP, sizeof(remoteEP)) == -1)
^
PoKeysLibDevicePoKeys57Industrial.c:233:13: error: too few arguments to function ‘sendto’
if (sendto(txSocket, SendBuf, BufLen, 0, (SOCKADDR *)&remoteEP, sizeof(remoteEP)) == -1)
^~~~~~
In file included from PoKeysLibDevicePoKeys57Industrial.c:32:
/usr/include/x86_64-linux-gnu/sys/socket.h:152:16: note: declared here
extern ssize_t sendto (int __fd, const void *__buf, size_t __n,
^~~~~~
make: *** [<builtin>: PoKeysLibDevicePoKeys57Industrial.o] Error 1
Thank you.
Please Log in or Create an account to join the conversation.
10 Oct 2023 11:20 #282682
by zarfld
Hi,
i had the same proble some time ago, and i reported that to Matevz at polabs.
i got following answer:
Thank you for contacting me. The file PoKeysLibDevicePoKeys57Industrial.c was added in the last published version, but it was only used in a Windows environment. You can ommit this file during compile for now (remove it from the Makefile).
BR
Dominik
i had the same proble some time ago, and i reported that to Matevz at polabs.
i got following answer:
Thank you for contacting me. The file PoKeysLibDevicePoKeys57Industrial.c was added in the last published version, but it was only used in a Windows environment. You can ommit this file during compile for now (remove it from the Makefile).
BR
Dominik
The following user(s) said Thank You: dibor
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
12 Oct 2023 12:35 #282814
by tommylight
Replied by tommylight on topic Pokeys
Probably:
sudo halcompile --install pokeys.comp
sudo halcompile --install pokeys.comp
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19196
- Thank you received: 6434
12 Oct 2023 22:20 #282836
by tommylight
Replied by tommylight on topic Pokeys
This does not give us anything useful to be able to help, what is the exact error you are getting, especially the "debug" section?I get error message when I run "loadusr pokeys"
Please Log in or Create an account to join the conversation.
16 Oct 2023 10:00 #283113
by dibor
I did exact all steps as shown on the page 10 "Updated Install Instructions"
All steps over without any error.
When I run loadusr pokeys I got error message in the terminal - loadusr command not found.
In other words I can not to include the driver to the HAL.
Thank U
Hi.
I get error message when I run "loadusr pokeys"
This does not give us anything useful to be able to help, what is the exact error you are getting, especially the "debug" section?
I did exact all steps as shown on the page 10 "Updated Install Instructions"
All steps over without any error.
When I run loadusr pokeys I got error message in the terminal - loadusr command not found.
In other words I can not to include the driver to the HAL.
Thank U
Please Log in or Create an account to join the conversation.
Time to create page: 0.145 seconds