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

issue compiling ethernet_test #32

Open
Chubs159 opened this issue Dec 5, 2020 · 0 comments
Open

issue compiling ethernet_test #32

Chubs159 opened this issue Dec 5, 2020 · 0 comments

Comments

@Chubs159
Copy link

Chubs159 commented Dec 5, 2020

been having a bit of an issue trying to compile the example ethernet_test. Bellow is the full error when I try to compile the sketch for an arduino uno.

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

In file included from C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:39:0,

             from C:\Users\TEST\Documents\Arduino\libraries\E131\examples\Ethernet_Test\Ethernet_Test.ino:22:

C:\Users\TEST\Documents\Arduino\libraries\E131/utility/util.h:14:5: error: expected ')' before '<<' token

((x)<< 8 & 0x00FF0000UL) |

 ^~

In file included from C:\Users\TEST\Documents\Arduino\libraries\E131\examples\Ethernet_Test\Ethernet_Test.ino:22:0:

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:106:3: error: 'e131_packet_t' does not name a type

} e131_packet_t;

^~~~~~~~~~~~~

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:141:5: error: 'e131_packet_t' does not name a type; did you mean 'e131_listen_t'?

 e131_packet_t   pbuff1;     /* Packet buffer */

 ^~~~~~~~~~~~~

 e131_listen_t

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:145:5: error: 'e131_packet_t' does not name a type; did you mean 'e131_listen_t'?

 e131_packet_t   *pwbuff;    /* Pointer to working packet buffer */

 ^~~~~~~~~~~~~

 e131_listen_t

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:158:5: error: 'e131_packet_t' does not name a type; did you mean 'e131_listen_t'?

 e131_packet_t *packet;              /* Pointer to last valid packet */

 ^~~~~~~~~~~~~

 e131_listen_t

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h: In member function 'uint16_t E131::parsePacket()':

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:211:27: error: 'pwbuff' was not declared in this scope

         udp.readBytes(pwbuff->raw, size);

                       ^~~~~~

In file included from C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:39:0,

             from C:\Users\TEST\Documents\Arduino\libraries\E131\examples\Ethernet_Test\Ethernet_Test.ino:22:

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:219:34: error: 'packet' was not declared in this scope

             universe = htons(packet->universe);

                              ^

C:\Users\TEST\Documents\Arduino\libraries\E131/utility/util.h:5:22: note: in definition of macro 'htons'

#define htons(x) ( ((x)<< 8 & 0xFF00) | ((x)>> 8 & 0x00FF) )

                  ^

In file included from C:\Users\TEST\Documents\Arduino\libraries\E131\examples\Ethernet_Test\Ethernet_Test.ino:22:0:

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h: In member function 'e131_error_t E131::validate()':

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:239:22: error: 'pwbuff' was not declared in this scope

     if (memcmp_P(pwbuff->acn_id, ACN_ID, sizeof(pwbuff->acn_id)))

                  ^~~~~~

In file included from C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:39:0,

             from C:\Users\TEST\Documents\Arduino\libraries\E131\examples\Ethernet_Test\Ethernet_Test.ino:22:

C:\Users\TEST\Documents\Arduino\libraries\E131/utility/util.h:13:18: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z

#define htonl(x) ( ((x)<<24 & 0xFF000000UL) |

              ^

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:244:13: note: in expansion of macro 'htonl'

     if (htonl(pwbuff->root_vector) != VECTOR_ROOT)

         ^~~~~

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:244:19: error: 'pwbuff' was not declared in this scope

     if (htonl(pwbuff->root_vector) != VECTOR_ROOT)

               ^

C:\Users\TEST\Documents\Arduino\libraries\E131/utility/util.h:13:22: note: in definition of macro 'htonl'

#define htonl(x) ( ((x)<<24 & 0xFF000000UL) |

                  ^

In file included from C:\Users\TEST\Documents\Arduino\libraries\E131\examples\Ethernet_Test\Ethernet_Test.ino:22:0:

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:244:40: error: expected primary-expression before '!=' token

     if (htonl(pwbuff->root_vector) != VECTOR_ROOT)

                                    ^~

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:246:9: error: expected primary-expression before 'if'

     if (htonl(pwbuff->frame_vector) != VECTOR_FRAME)

     ^~

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:246:9: error: expected ')' before 'if'

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:248:13: error: 'pwbuff' was not declared in this scope

     if (pwbuff->dmp_vector != VECTOR_DMP)

         ^~~~~~

C:\Users\TEST\Documents\Arduino\libraries\E131/E131.h:250:13: error: 'pwbuff' was not declared in this scope

     if (pwbuff->property_values[0] != 0)

         ^~~~~~

exit status 1

Error compiling for board Arduino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

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

1 participant