forkineye / E131

E1.31 (sACN) library for Arduino with ESP8266 support
127 stars 44 forks source link

Error compiling for Arduino Uno #33

Closed Kendo42 closed 3 years ago

Kendo42 commented 3 years ago

I have had trouble compiling the example Ethernet_Test code. The error messages are as follows.

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

In file included from E:\Users\James K\Documents\Arduino\libraries\E131/E131.h:39:0,

                 from C:\Users\JAMESK~1\AppData\Local\Temp\arduino_modified_sketch_617994\sketch_feb27c.ino:3:

E:\Users\James K\Documents\Arduino\libraries\E131/utility/util.h:6:5: error: expected ')' before '>>' token

 ((x)>> 8 & 0x00FF) )

     ^~

In file included from C:\Users\JAMESK~1\AppData\Local\Temp\arduino_modified_sketch_617994\sketch_feb27c.ino:3:0:

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

 } e131_packet_t;

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

E:\Users\James K\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

E:\Users\James K\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

E:\Users\James K\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

E:\Users\James K\Documents\Arduino\libraries\E131/E131.h: In member function 'uint16_t E131::parsePacket()':

E:\Users\James K\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 E:\Users\James K\Documents\Arduino\libraries\E131/E131.h:39:0,

                 from C:\Users\JAMESK~1\AppData\Local\Temp\arduino_modified_sketch_617994\sketch_feb27c.ino:3:

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

                 universe = htons(packet->universe);

                                  ^

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

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

                      ^

In file included from C:\Users\JAMESK~1\AppData\Local\Temp\arduino_modified_sketch_617994\sketch_feb27c.ino:3:0:

E:\Users\James K\Documents\Arduino\libraries\E131/E131.h:219:51: error: expected primary-expression before ';' token

                 universe = htons(packet->universe);

                                                   ^

E:\Users\James K\Documents\Arduino\libraries\E131/E131.h:219:51: error: expected ')' before ';' token

E:\Users\James K\Documents\Arduino\libraries\E131/E131.h:221:65: error: expected ')' before ';' token

                 retval = htons(packet->property_value_count) - 1;

                                                                 ^

E:\Users\James K\Documents\Arduino\libraries\E131/E131.h: In member function 'e131_error_t E131::validate()':

E:\Users\James K\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 E:\Users\James K\Documents\Arduino\libraries\E131/E131.h:39:0,

                 from C:\Users\JAMESK~1\AppData\Local\Temp\arduino_modified_sketch_617994\sketch_feb27c.ino:3:

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

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

                   ^

E:\Users\James K\Documents\Arduino\libraries\E131/utility/util.h:14:22: note: in definition of macro 'htonl'

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

                      ^

In file included from C:\Users\JAMESK~1\AppData\Local\Temp\arduino_modified_sketch_617994\sketch_feb27c.ino:3:0:

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

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

                                        ^~

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

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

         ^~

E:\Users\James K\Documents\Arduino\libraries\E131/E131.h:246:9: error: expected ')' before 'if'

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

         if (pwbuff->dmp_vector != VECTOR_DMP)

             ^~~~~~

E:\Users\James K\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.