Open-Smartwatch / open-smartwatch-os

The Open-Smartwatch Operating System.
https://open-smartwatch.github.io
GNU General Public License v3.0
998 stars 163 forks source link

String.h conflicts with string.h #300

Closed ameharoo closed 2 years ago

ameharoo commented 2 years ago

What is not working?

The emulator does not compile due to case-insensitive filesystem on Windows. Conflict between string.h and String.h. in file emulator/lib/ArduinoJson/src/ArduinoJson/Strings/Adapters/RamString.hpp:26:21

How to reproduce this

Steps to reproduce the behavior:

  1. Build emulator.run target by MSYS MinGW on Windows 10 21H2.
  2. See error

What should happen instead?

Including string.h instead String.h.

Environment

Additional context

Maybe change the name of String.h to something else?

simonmicro commented 2 years ago

So the problem is that we want to include string.h, but Windows instead includes String.h? Could you post the build error?

Problem is, that the emulator MUST overwrite the Arduino-File String.h with its custom implementation and well, the name is therefore fixed... Maybe you can add a flag to be case sensitive?

simonmicro commented 2 years ago

Closing this issue, as I need at least some logs, otherwise I can't do anything...