Compilation error for matter projects
Posted: Sun Sep 15, 2024 8:46 pm
When I compile an example matter project, it compiles without an error. But when i make a custom matter project there is an error when compiling.
Code: Select all
In file included from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/app/data-model/Decode.h:23,
from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/app/data-model/DecodableList.h:21,
from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h:28,
from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp:20:
../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/app/data-model/Nullable.h:40:8: note: declaration of 'struct chip::app::DataModel::Nullable<chip::app::DataModel::List<const chip::app::Clusters::UnitTesting::SimpleEnum> >'
struct Nullable : protected std::optional<T>
^~~~~~~~
In file included from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/app/data-model/DecodableList.h:22,
from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h:28,
from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp:20:
../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/app/data-model/Encode.h:204:34: error: invalid use of incomplete type 'const struct chip::app::DataModel::Nullable<chip::app::DataModel::List<const chip::app::Clusters::UnitTesting::SimpleEnum> >'
return Encode(writer, tag, x.Value());
~~^~~~~
In file included from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/app/data-model/Decode.h:23,
from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/app/data-model/DecodableList.h:21,
from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h:28,
from ../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp:20:
../../../../../../esp/v4.4.8/esp-matter2/esp-matter/connectedhomeip/connectedhomeip/config/esp32/third_party/connectedhomeip/src/app/data-model/Nullable.h:40:8: note: declaration of 'struct chip::app::DataModel::Nullable<chip::app::DataModel::List<const chip::app::Clusters::UnitTesting::SimpleEnum> >'
struct Nullable : protected std::optional<T>
^~~~~~~~
At global scope:
cc1plus: error: unrecognized command line option '-Wno-unknown-warning-option' [-Werror]
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
ninja: build stopped: subcommand failed.
ninja failed with exit code 1