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

Build error in dev branch #445

Closed
xoseperez opened this issue Jan 20, 2018 · 4 comments
Closed

Build error in dev branch #445

xoseperez opened this issue Jan 20, 2018 · 4 comments
Assignees
Milestone

Comments

@xoseperez
Copy link
Owner

Originally reported by: Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04)


Compiling .pioenvs\nodemcu-lolin\lib065\SPI\SPI.o
.piolibdeps\ESP Async WebServer\src\WebHandlers.cpp: In member function 'AsyncStaticWebHandler& AsyncStaticWebHandl
er::setLastModified(tm*)':
.piolibdeps\ESP Async WebServer\src\WebHandlers.cpp:67:64: error: 'strftime' was not declared in this scope

strftime (result,30,"%a, %d %b %Y %H:%M:%S %Z", last_modified);
^
.piolibdeps\ESP Async WebServer\src\WebHandlers.cpp: In member function 'AsyncStaticWebHandler& AsyncStaticWebHandl
er::setLastModified(time_t)':
.piolibdeps\ESP Async WebServer\src\WebHandlers.cpp:73:60: error: 'gmtime' was not declared in this scope
return setLastModified((struct tm *)gmtime(&last_modified));
^
.piolibdeps\ESP Async WebServer\src\WebHandlers.cpp: In member function 'AsyncStaticWebHandler& AsyncStaticWebHandl
er::setLastModified()':
.piolibdeps\ESP Async WebServer\src\WebHandlers.cpp:78:25: error: 'time' was not declared in this scope
if(time(&last_modified) == 0) //time is not yet set
^
*** [.pioenvs\nodemcu-lolin\lib154\ESP Async WebServer\WebHandlers.o] Error 1
[ERROR] Took 16.53 seconds

@xoseperez
Copy link
Owner Author

Mmmm.... I'm using the new NTPClientLib in dev branch and it loads the original Time library which has an incompatibility with the ESPAsyncWebServer library on windows machines, only...

It happened before (see issue #6). Will change it to use my Time library fork again.

@xoseperez
Copy link
Owner Author

Latest version in dev should build using PlatformIO.

@xoseperez
Copy link
Owner Author

Original comment by Marek Forkasiewicz (Bitbucket: fork04, GitHub: fork04):


problem with platformio revision in :

https://github.com/me-no-dev/ESPAsyncWebServer#313f337

error: unable to stat just-written file espressif8266_library.json: No such file or directory
fatal: Could not reset index file to revision '313f337'.
Error: VCS: Could not process command ['git', 'reset', '--hard', '313f337']

@xoseperez
Copy link
Owner Author

That looks like a PlatformIO problem. Try removing the library from the .piolibdeps folder and run pio again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant