sukesh-ak / ESP32-TUX

ESP32-TUX - ESP32 / ESP32-XX Touch UX Template using LVGL to get you started
https://tux.sukesh.me
MIT License
235 stars 55 forks source link

Failed build #25

Closed igormoochnick closed 1 year ago

igormoochnick commented 1 year ago

Most likely I'm missing a step but, after doing:

bringing all submodules in
idf.py set-target esp32
idf menu-config [WT32-SC01-Plus,4Mb]
idf.py build

I get the following error:

/Dev/CNC/WT32-SqLn/components/LovyanGFX/src/lgfx/v1/misc/pixelcopy.cpp: In constructor 'lgfx::v1::pixelcopy_t::pixelcopy_t(const void*, lgfx::v1::color_depth_t, lgfx::v1::color_depth_t, bool, const void*, uint32_t)':
/Dev/CNC/WT32-SqLn/components/LovyanGFX/src/lgfx/v1/misc/pixelcopy.cpp:39:25: error: member 'lgfx::v1::pixelcopy_t::<anonymous>' is used uninitialized [-Werror=uninitialized]
   39 |     , src_mask  ( (1 << src_bits) - 1 )
      |                         ^~~~~~~~
/Dev/CNC/WT32-SqLn/components/LovyanGFX/src/lgfx/v1/misc/pixelcopy.cpp:40:25: error: member 'lgfx::v1::pixelcopy_t::<anonymous>' is used uninitialized [-Werror=uninitialized]
   40 |     , dst_mask  ( (1 << dst_bits) - 1 )
      |                         ^~~~~~~~
cc1plus: some warnings being treated as errors
[702/1148] Building CXX object esp-idf/...yanGFX.dir/src/lgfx/v1/LGFXBase.cpp.objninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /Dev/CNC/WT32-SqLn/build/log/idf_py_stderr_output_44835 and /Dev/CNC/WT32-SqLn/build/log/idf_py_stdout_output_44835

Any suggestions?

sukesh-ak commented 1 year ago

Did you check the video walkthrough on the steps required available in the readme?

igormoochnick commented 1 year ago

Yes. Followed video exactly My OS: Mac Ventura 13.0.1 (22A400) Python 3.8.10

igormoochnick commented 1 year ago

I have a feeling that the Lovyan package has changed and the dependency brings a wrong version

sukesh-ak commented 1 year ago

I have a feeling that the Lovyan package has changed and the dependency brings a wrong version

I will check during the weekend 🤞🏼

EmbeddedTec commented 1 year ago

Which version if ESP-IDF are you using? I ran into the same problem using ESP-IDF v5.1-dev-3619-g57b6be22a7

It compiles without errors using the release version ESP-IDF v5.0.1

sukesh-ak commented 1 year ago

Always use release branch since main is moving target which has build issues sometimes.