Skip to content

Arduino with Mozilla IoT WebThingAdapter can not compile due to undefined reference to action_generator,BasicJsonDocument #104

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

Closed
Wakav opened this issue Mar 22, 2020 · 0 comments

Comments

@Wakav
Copy link

Wakav commented Mar 22, 2020

I am trying to compile default example mentioned in https://github.com/mozilla-iot/webthing-arduino but I see this strange error:

c:/users/reza/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\Demo2.ino.cpp.o:C:\Users\Reza\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.1\cores\esp8266/WString.h:230: undefined reference to `action_generator(ArduinoJson6140_0000010::BasicJsonDocument)' collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board WeMos D1 R1.*

I changed different versions of ESP8266 libraries from 2.5 to 2.6.3 but no success. Everything is standard and downloaded from repositories without any change. Also I removed Arduino from windows and deleted all of it's dependencies from C:\Users\Reza\AppData\Local folder and then reinstalled it. I tried portable version of arduino too.

It's getting more strange after using the same configuration and libraries in my Raspberry Pi 3 B+ (Raspbian OS) and this code has been compiled and successfully uploaded to my ESP8266. I think configuration should be the causes of this problem. I can't develop and compile my arduino code using raspberry pi because it's very slow. that's the reason I need to use my windows PC.

I'm using these configurations

Windows 7: (Failed)

64bit and Arduino 1.8.12.

Raspberri Pi config : (Success)

Arm7l , Raspbian os and 32bit version of Arduino.

I've done plenty projects with arduino and I understand C++ Structure but I can't solve this problem. I spent hours of searching google for something but nothing found. Any help will be appreciated.

even a fresh install of windows has the same problem. I will tell what I've done :

  1. Installed Arduino
  2. Installed ESP8266 library with https://arduino.esp8266.com/stable/package_esp8266com_index.json from Board Manager
  3. Installed ESPAsyncWebServer from https://github.com/me-no-dev/ESPAsyncWebServer
  4. Installed required dependency library from https://github.com/me-no-dev/ESPAsyncTCP
  5. Installed webthing-arduino from library
  6. Installed ArduinoJson from library manager and also https://github.com/bblanchon/ArduinoJson (did not used them in the same time)
  7. WeMos D1 R1 has been selected as Board

but failed again... I tried it on 3 different computers even windows 10 and windows Server 2016.

@Wakav Wakav closed this as completed Mar 22, 2020
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