Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: Docker: install build-essential apt package (IDFGH-9402) #10772

Closed
wants to merge 1 commit into from

Commits on Feb 15, 2023

  1. tools: Docker: install build-essential apt package

    Before this change, it was not possible to build an application with
    target `linux` in Docker.
    
    For example, building `examples/build_system/cmake/linux_host_app`:
    
    ```
    docker run -t -e IDF_TARGET="linux" -v "$PWD/examples/build_system/cmake/linux_host_app:/app/linux_host_app" -w "/app/linux_host_app" espressif/idf:v5.0 /bin/bash -c 'git config --global --add safe.directory "*" && idf.py build'
    ```
    
    results in the following error:
    
    ```
    CMake Error at /opt/esp/idf/tools/cmake/build.cmake:129 (enable_language):
      No CMAKE_CXX_COMPILER could be found.
    ```
    
    This commit adds the `build-essential` package to the list of apt
    packages to install, which allows the example above to build
    successfully.
    
    Signed-off-by: Nick Miller <nick@golioth.io>
    ncmiller committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    97c00c7 View commit details
    Browse the repository at this point in the history