janick / WT32-SqLn

Getting started with Wireless Tag's WT32-SC01 Plus using SquareLine Studio and LVGL
MIT License
84 stars 11 forks source link

Failed build #4

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.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?

janick commented 1 year ago

Other than setting the target to 'esp32s3', I have no idea.

ClemensEy commented 1 year ago

I had this error gone after i reinstalled the esp idf with the version 5.2

janick commented 1 year ago

Other than re-installing IDF, you can also try

$ cd components/LovyanGFX
$ git checkout 1.1.5
$ cd ../..
janick commented 1 year ago

I just switched laptops and ran into the same issue with a fresh IDF install. Using v5.0.2 seems to fix the problem.

However, it is indeed an error in the Lovyan library which is fixed in later releases. I've updatyed the LovyanGFX submodule to 1.1.7