sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
524 stars 246 forks source link

Error trying to compile V1 2020 watch #319

Closed kaman112 closed 2 years ago

kaman112 commented 2 years ago

Hi, I followed your youtube tutorial however I cannot get it to compile successfully for V1 it comes up with the following messages: Linking .pio\build\t-watch2020-v1\firmware.elf xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory *** [.pio\build\t-watch2020-v1\firmware.elf] Error 1

I did successfully compile V2 as a test and tried V3 but it also failed

Any ideas?

liamharrison commented 2 years ago

even if you get the current master to build it makes (my) the watch reboot-loop

commit 5b53a24 (a few days before) builds with no problems

more edit: ^^^^ this also reboot loops had to go to some mid april commit

Crsarmv7l commented 2 years ago

even if you get the current master to build it makes (my) the watch reboot-loop

commit 5b53a24 (a few days before) builds with no problems

more edit: ^^^^ this also reboot loops had to go to some mid april commit

Weird. I only got my watch in Aug/Sep and it built fine then with no bootloop. Built a more recent one yesterday (Oct I think), and it reboots with serial monitor, something it didn't do before. I haven't tested extensively yet, but there doesn't seem to be a bootloop just the one reboot if I start or stop serial monitor.

sharandac commented 2 years ago

PlatformIO have some strange bugs. under windows. It sounds like this ... too long and to much files for the command line to compile. It is a know bug. and the question is, witch OS is in use?

liamharrison commented 2 years ago

PlatformIO have some strange bugs. under windows. It sounds like this ... too long and to much files for the command line to compile. It is a know bug. and the question is, witch OS is in use?

It was windows where it failed (if I remove files from the build to shorten the cmdline it completes). same build completed on linux. (still resulted in a non-functioning watch firmware, but that's a different matter)

Edit: TO BE CLEAR... the "CreateProcess: No such file or directory" specifically relates to a bug in xtensa-esp32-elf-g++ handling of the long build command line and is not a bug in this project. To get the FW to build on Windows, comment out some apps you don't need in main.c

Crsarmv7l commented 2 years ago

To get the FW to build on Windows, comment out some apps you don't need in main.c

Ah that explains why I dont have the issue. I always pair down significantly

kaman112 commented 2 years ago

Hi all,

I have tried again with Linux and I get similar issues for both it and Windows the xtensa issues seem to have gone but I consistently seem to have some issue with lvgl.
Early in the build it flags "WarningCould not find the package with "lvgl/lvgl @ = 7.7.2 requirements for your system

In file included from src/app/FindPhone/FindPhone.cpp:25:0: src/config.h:25:22: fatal error: lvgl.h: No such file or directory

Do I need to add a lvgl.h file to a particular folder that currently does not contain it?

Hopefully this makes sense.

liamharrison commented 2 years ago

Hi all,

I have tried again with Linux and I get similar issues for both it and Windows the xtensa issues seem to have gone but I consistently seem to have some issue with lvgl. Early in the build it flags "WarningCould not find the package with "lvgl/lvgl @ = 7.7.2 requirements for your system

In file included from src/app/FindPhone/FindPhone.cpp:25:0: src/config.h:25:22: fatal error: lvgl.h: No such file or directory

Do I need to add a lvgl.h file to a particular folder that currently does not contain it?

Hopefully this makes sense.

You can use platformio to install lvgl... pio lib install "lvgl/lvgl@^7.11.0" (I've chosen 7.11.0 because I think the latest version doesn't work)

MoorPoor commented 2 years ago

Thanks. Copy & pasting 7.11.0 from git in the lib folder (.pio/libdeps/t-watch2020-vXY) worked also for me.

-- Twatch 2020 v1

kaman112 commented 2 years ago

Hi all,

I have successfully managed to build V1 with version 7.11.0 and using a linux OS to avoid the xtensa issues which is great, however I now face the same problems mentioned in this thread https://github.com/sharandac/My-TTGO-Watch/issues/322

I also tried using an earlier version (from around July to test and it still seems to have the continuous reboot issue.

So I guess I should close this thread as 7.11.0 and linux seems to solve these particular issues, thanks for all the assistance.