jnthas / clockwise

do-it-yourself, full-featured and smart wall clock device
https://clockwise.page
MIT License
304 stars 39 forks source link

Build fails with ESP-IDF 4.4.4 because of missing files #16

Closed derryx closed 1 year ago

derryx commented 1 year ago

Hi!

Building with ESP-IDF 4.4.4 fails. There seems to be some files missing in the tree: C:/Development/ESP32/clockwise/firmware/lib/cw-commons/WiFiController.h:3:10: fatal error: ImprovWiFiLibrary.h: No such file or directory

include "ImprovWiFiLibrary.h"

      ^~~~~~~~~~~~~~~~~~~~~

I am using the main branch.

jnthas commented 1 year ago

Hi @derryx. Thanks for noticing that. I just updated the submodules files. could you try to build it again please?

hallard commented 1 year ago

Not sure it's relevant, but I'm experiencing same issue here fresh IDF 4.4.4 installed from VSCode, Fresh clone with submodules of main branch and build try


idf_main.dir/main.cpp.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/main.cpp.obj -c /Users/charles/Devt/clockwise/main/main.cpp
In file included from /Users/charles/Devt/clockwise/main/../firmware/src/main.cpp:7,
                 from /Users/charles/Devt/clockwise/main/main.cpp:5:
/Users/charles/Devt/clockwise/firmware/lib/cw-commons/WiFiController.h:3:10: fatal error: ImprovWiFiLibrary.h: No such file or directory
 #include "ImprovWiFiLibrary.h"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

Checked also that ImprovWiFiLibrary.h is in components/Improv-WiFi-Library/src it is.

abrender commented 1 year ago

@derryx I have a bunch of changes that should fix this issue and enable the project to be compiled with the ESP-IDF platform.

jnthas commented 1 year ago

Thank you @abrender. I was trying to fix that issue with ImprovWiFiLibrary yesterday. You opened the first PR to your fork, I don't know if it was a mistake but I already applied the change you did there.

jnthas commented 1 year ago

Guys, it should be working now. Thanks @abrender again. I'm preparing a new release for today.

abrender commented 1 year ago

@jnthas I will add a github action/workflow that will automagically build the project with esp-idf on each pull request so that should hopefully help prevent breakages

jnthas commented 1 year ago

That's perfect

hallard commented 1 year ago

Just to let you know that now it's building fine, thanks for the fix.