Pokeys

More
10 Oct 2023 04:47 #282661 by dibor
Replied by dibor on topic Pokeys
Hello guys.
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
What I should to do ?

Thank you.

Please Log in or Create an account to join the conversation.

More
10 Oct 2023 11:20 #282682 by zarfld
Replied by zarfld on topic Pokeys
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
 
The following user(s) said Thank You: dibor

Please Log in or Create an account to join the conversation.

More
10 Oct 2023 17:47 #282693 by dibor
Replied by dibor on topic Pokeys
Thanks ALOT!!

Please Log in or Create an account to join the conversation.

More
11 Oct 2023 10:39 - 11 Oct 2023 12:11 #282736 by dibor
Replied by dibor on topic Pokeys
Hello.
loadusr command not found :(

Looks like I am absolutely NOOB :(

What I do wrong?
Last edit: 11 Oct 2023 12:11 by dibor.

Please Log in or Create an account to join the conversation.

More
11 Oct 2023 18:11 #282765 by zarfld
Replied by zarfld on topic Pokeys
Hi,

when do you get the message?
"loadusr command not found"

which config are you trying to load?
( did you have errors when compiling the comp file?)
which (version) of user-comp are you trying to load?

BR
Dominik

Please Log in or Create an account to join the conversation.

More
12 Oct 2023 04:28 #282797 by dibor
Replied by dibor on topic Pokeys
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.

Please Log in or Create an account to join the conversation.

More
12 Oct 2023 12:35 #282814 by tommylight
Replied by tommylight on topic Pokeys
Probably:
sudo halcompile --install pokeys.comp

Please Log in or Create an account to join the conversation.

More
12 Oct 2023 18:51 #282826 by dibor
Replied by dibor on topic Pokeys
Hi.
Sure, was compiled with sudo.

Please Log in or Create an account to join the conversation.

More
12 Oct 2023 22:20 #282836 by tommylight
Replied by tommylight on topic Pokeys

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?

Please Log in or Create an account to join the conversation.

More
16 Oct 2023 10:00 #283113 by dibor
Replied by dibor on topic Pokeys

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?
 

Hi.
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.117 seconds
Powered by Kunena Forum