build fails with cmake error

  • Dears,


    Try to build Librelec , but build fails with below error


    ---------------------------------------------

    Error when bootstrapping CMake:

    Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.

    Please specify one using environment variable CXX.

    The C++ flags are "-march=native -O2 -Wall -pipe -I/LE/LibreELEC.tv/build.LibreELEC-H6.aarch64-9.80-devel/toolchain/include -Wno-format-security".

    They can be changed using the environment variable CXXFLAGS.

    See cmake_bootstrap.log for compilers attempted.


    Sorry i forgot to install g++ compiler, installed then build went successfully after i edit

    LibreELEC.tv/build.LibreELEC-H6.aarch64-9.80-devel/toolchain/bin/host-g++


    to put /usr/bin/g++ on it.


    #!/bin/sh

    /LE/LibreELEC.tv/build.LibreELEC-H6.aarch64-9.80-devel/toolchain/bin/ccache /usr/bin/g++ "[email protected]"

  • Da Flex

    Approved the thread.