Skip to content

[BUG] Installation fails with "error: cmd has incomplete type" in inverter.cpp #127

@csabo80

Description

@csabo80

Hello,
I am trying to install the addon (EASUN inverter), but the installation fails during the build process with a compilation error.
It seems like there is an issue with the C++ source code in the 'inverter-cli' part of the build.
Here are the exact error logs from my Home Assistant Supervisor log:
6.081 /opt/inverter-cli/inverter.cpp: At global scope:
6.081 /opt/inverter-cli/inverter.cpp:248:41: error: cmd has incomplete type
6.081 248 | void cInverter::ExecuteCmd(const string cmd) {
6.081
6.081 /usr/include/c++/14/bits/stringfwd.h:72:11:
note: declaration of 'std::string' (aka 'class std::__cxx11::basic_string'")
6.081 72 | class basic_string:
6.081
6.232 make[2]: *** [CMakeFiles/inverter_poller.dir/build.make:93: CMakeFiles/inverter-poller.dir/inverter.cpp.o] Error 1
6.234 make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/inverter_poller.dir/all] Error 2
6.238 make: *** [Makefile:91: all] Error 2
ERROR: failed to build: failed to solve: process "/bin/bash -o pipefail -c cd /opt/inverter-cli && mkdir bin && cmake && make && mv inverter-poller bin/" did not complete successfully: exit code: 2
Could you please look into this issue? Thank you for your work on this addon!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions