Coopdis / easyMesh

Library to create a simple mesh network on Arduino/esp8266
MIT License
527 stars 123 forks source link

cannot compile start here example #16

Open jasonmarkham opened 8 years ago

jasonmarkham commented 8 years ago

while compiling i am getting this error i tried to change module selection but still cannot compile it . ! any one had this error ?

C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/include/ip_addr.h:56:128: error: invalid operands of types 'ip_addr*' and 'int' to binary 'operator>>'

define IP2STR(addr) (uint8_t)(addr & 0xFF), (uint8_t)((addr >> 8) & 0xFF), (uint8_t)((addr >> 16) & 0xFF), (uint8_t)((addr >> 24) & 0xFF)

                                                                                                                            ^

C:\Users\Documents\Arduino\libraries\easyMesh-master\src\easyMeshAP.cpp:40:19: note: in expansion of macro 'IP2STR'

               IP2STR( &ipInfo.netmask ) );

               ^

exit status 1 Error compiling for board NodeMCU 0.9 (ESP-12 Module).

hubshi commented 8 years ago
  1. Remove your esp8266 package from the Boards Manager,
  2. Close Arduino IDE
  3. Delete this folder : %AppData%\Local\Arduino15\packages\esp8266\
  4. Delete this folder : %AppData%\Local\Arduino15\staging\packages
  5. Open Arduino IDE
  6. Install Esp8266 package from Boards Manager

I hope it will work

RudyFiero commented 8 years ago

Or if you want the long version https://github.com/Coopdis/easyMesh/issues/15

jasonmarkham commented 8 years ago

Thanks for your guide , it worked fine now !

Kudos to you !

On Thu, Oct 27, 2016 at 11:41 PM, Attiq Aamir notifications@github.com wrote:

  1. Remove your esp8266 package from the Boards Manager,
  2. Close Arduino IDE
  3. Delete this folder : %AppData%\Local\Arduino15\packages\esp8266\
  4. Delete this folder : %AppData%\Local\Arduino15\staging\packages
  5. Open Arduino IDE
  6. Install Esp8266 package from Boards Manager

I hope it will work

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Coopdis/easyMesh/issues/16#issuecomment-256778253, or mute the thread https://github.com/notifications/unsubscribe-auth/ABSFxUcEF19Lks95iemAlZhI1XgJbzZyks5q4RqXgaJpZM4KizwT .

Always consider your responsibility towards a cleaner world, Go Green and recycle, use alternative energy .

Jason Markham

JasonKits Visit my webpage at http://freesolarenergy.1colony.com Visit my webshop at http://jasonkits.bigcartel.com

Tattvamaso commented 7 years ago

Hi all, this is my first post on Git so have mercy:) I cannot compile "starthere" because of a lot of undefined stuff e.g. meshSentCb. I thought I knew why: there is a typo in eashMeshConnection.cpp, But changing that into easy (y instead of h ) didn solve the issue. Running Ubuntu 16.04 64 bit and Arduino 1.6.13. All other suggestions as only one lib and correct SimpleList.h are done. It seems like there is missing a referral but I cannot find to what. PArt of the debug: easyMeshSTA.cpp:29: undefined reference to easyMesh::meshSentCb(void*)' ~/Arduino/libraries/easyMesh/easyMeshSTA.cpp:29: undefined reference toeasyMesh::meshReconCb(void, signed char)' libraries/easyMesh/easyMeshSTA.cpp.o: In function `easyMesh::scanTimerCallback(void)': ~Arduino/libraries/easyMesh/easyMeshSTA.cpp:87: undefined reference to `easyMesh::meshDisconCb(void*)'

What am I missing? Rob