thunderace / ESP_WebConfig

6 stars 5 forks source link

Error compiling #4

Open biohazardxxx opened 9 years ago

biohazardxxx commented 9 years ago

Hi, I can't make it to compile this with the Arduino IDE. I'm on ESP staging version 1.6.5-1160-gef26c5f

Arduino: 1.6.5 (Windows 8.1), Board: "Generic ESP8266 Module, Serial, 160 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS)"

ESP_WebConfig.cpp.o: In function reset()': C:\PROGRAMMING\arduino-1.6.5/ESP_WebConfig.ino:21: undefined reference toserver' ESP_WebConfig.cpp.o: In function _M_destroy': c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1926: undefined reference toadminEnabled' ESP_WebConfig.cpp.o: In function std::_Function_base::_Base_manager<setup::{lambda()#2}>::_M_manager(std::_Any_data&, std::_Function_base::_Base_manager<setup::{lambda()#2}> const&, std::_Manager_operation)': c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1954: undefined reference toticker' c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1954: undefined reference to tickHandler()' c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1954: undefined reference toUDPNTPClient' c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1954: undefined reference to loadConfig()' c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1954: undefined reference toconfigureWifi()' c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1954: undefined reference to loadConfig()' c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1954: undefined reference toconfigureWifi()' ESP_WebConfig.cpp.o: In function setup': C:\PROGRAMMING\arduino-1.6.5/ESP_WebConfig.ino:42: undefined reference toadminTimeOut' C:\PROGRAMMING\arduino-1.6.5/ESP_WebConfig.ino:45: undefined reference to tick' C:\PROGRAMMING\arduino-1.6.5/ESP_WebConfig.ino:47: undefined reference toconfig' C:\PROGRAMMING\arduino-1.6.5/ESP_WebConfig.ino:47: undefined reference to firstStart' ESP_WebConfig.cpp.o: In function_M_init_functor': c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:1987: undefined reference to refresh' ESP_WebConfig.cpp.o: In functionfunction<setup()::__lambda0, void>': c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:2452: undefined reference to dateTime' c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:2452: undefined reference toNTPRefresh()' ESP_WebConfig.cpp.o: In function ~function': c:\users\Bio\appdata\roaming\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional:2174: undefined reference toNTPRefresh()' ESP_WebConfig.cpp.o: In function setup': C:\PROGRAMMING\arduino-1.6.5/ESP_WebConfig.ino:56: undefined reference toNTPRefresh()' Page_General.cpp.o:(.text+0xc): undefined reference to config' Page_General.cpp.o: In functionsend_devicename_value_html()': C:\Users\Bio\AppData\Local\Temp\build3796484844306567753.tmp/Page_General.cpp:165: undefined reference to config' C:\Users\Bio\AppData\Local\Temp\build3796484844306567753.tmp/Page_General.cpp:170: undefined reference toconfig' C:\Users\Bio\AppData\Local\Temp\build3796484844306567753.tmp/Page_General.cpp:170: undefined reference to text_html_type' C:\Users\Bio\AppData\Local\Temp\build3796484844306567753.tmp/Page_General.cpp:170: undefined reference tosaveConfig()' Page_General.cpp.o: In function send_general_html()': C:\Users\Bio\AppData\Local\Temp\build3796484844306567753.tmp/Page_General.cpp:188: undefined reference tosaveConfig()' C:\Users\Bio\AppData\Local\Temp\build3796484844306567753.tmp/Page_General.cpp:188: undefined reference to configureWifi()' Page_Style.css.cpp.o:(.text+0x0): undefined reference totext_css_type' collect2.exe: error: ld returned 1 exit status Error compiling.

thunderace commented 9 years ago

See README.md : Warning In order to build this with the Arduino IDE, you have to add this on top of ESP_Webconfig.ino (thx to RattyDAVE) .....

biohazardxxx commented 9 years ago

yes

thunderace commented 9 years ago

Sorry i saw your pull request after. I close this one.

biohazardxxx commented 9 years ago

This is still an issue. As wrote even with the includes it is not possible to compile for me. Is my ESP arduino version the right one? Or does it need to be the development version?

thunderace commented 9 years ago

I'm using the 1.6.5-1160-gef26c5f version too but with Makefile and command line (https://github.com/thunderace/Esp8266-Arduino-Makefile). I can't test now with Arduino IDE (i have only linux headless for now).