- Posts: 6
- Thank you received: 0
Pokeys_homecomp EncoderSearch / Encoder Arm Topic: Pos_Fb Following errors
3 years 3 weeks ago #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
Code:
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 to join the conversation.
3 years 3 weeks ago #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
Please Log in to join the conversation.
3 years 2 weeks ago #282797
by dibor
Hi.
I did exact as shown in the page 10 "Updated Install Instructions"
Driver compiled without any error.
pokeys.comp file was downloaded also from page 10.
90-usb-pokeys.rules has been created and loaded.
I get error message when I run "loadusr pokeys"
Thank you.
I did exact as shown in the page 10 "Updated Install Instructions"
Driver compiled without any error.
pokeys.comp file was downloaded also from page 10.
90-usb-pokeys.rules has been created and loaded.
I get error message when I run "loadusr pokeys"
Thank you.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
3 years 2 weeks ago #282814
by tommylight
Replied by tommylight on topic Pokeys
Probably:
sudo halcompile --install pokeys.comp
sudo halcompile --install pokeys.comp
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
3 years 2 weeks ago #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 to join the conversation.
3 years 2 weeks ago #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 to join the conversation.
Time to create page: 0.864 seconds
