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

Compiling Problems under Windows #42

Open
daveschafer opened this issue Apr 7, 2019 · 0 comments
Open

Compiling Problems under Windows #42

daveschafer opened this issue Apr 7, 2019 · 0 comments

Comments

@daveschafer
Copy link

Ok, so this is not really an issue with your code (worked like a charm after I figured out the problem).
It's more a help for other people having the same issue.

Under Windows 10 I've got a lot of issues while compiling the code. No problems with Ubuntu though.
Most of the Problems had to do something with the Time.h/time.h library like

error: 'strcpy_P' was not declared in this scope
error: 'strftime' was not declared in this scope

I found the solution here:
Example doesn't compile because Time.h

Apparently, Windows is sometimes not case sensitive and mixes up different time.h/Time.h libraries. To fix these compiling errors:

  1. Rename the lib:
  • Go to: disk:\Users\username.platformio\packages\toolchain-xtensa\xtensa-lx106-elf\include
  • Rename time.h to _time.h.
  1. Find all occurrences of WebHandlerImpl.h in your Windows. Replace #include <time.h> with #include <_time.h>
  • There's also one occurence in libc_replacements.c which you've got to replace
  1. Build your project. (Recommended restart platformio before the build).
  2. Remember that you've changed this library or rename it back after compiling this project

Issues was already mentioned once here: #34

Hope this will help someone in the future

@daveschafer daveschafer changed the title Compiling Problems under Compiling Problems under Windows Apr 7, 2019
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