GithubHelp home page GithubHelp logo

Question about docker build environment: CMake version for docker build seems to be different than my installed version. Environment variable? about isaac_ros_base HOT 2 OPEN

rbonghi avatar rbonghi commented on May 26, 2024
Question about docker build environment: CMake version for docker build seems to be different than my installed version. Environment variable?

from isaac_ros_base.

Comments (2)

jakoblabs avatar jakoblabs commented on May 26, 2024 1

I ended up adding this into 'Dockerfile.isaac' script to fix the issue.

#Install required dependencies
RUN apt-get update && apt-get install --reinstall distro-info
RUN apt install apt-utils

bug fix associated with 'Invalid Version '0.23ubuntu1' (6/26/2023)

RUN pip install --upgrade --user setuptools==58.3.0

Set the CMake version

ENV CMAKE_VERSION 3.26.4

Download and install specific CMake version

RUN wget "https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}.tar.gz" &&
tar -xzvf "cmake-${CMAKE_VERSION}.tar.gz" &&
cd "cmake-${CMAKE_VERSION}" &&
./bootstrap &&
make &&
make install

#Remove /usr/bin/cmake
RUN rm -f /usr/bin/cmake

Set the default CMake version

RUN ln -s /usr/local/bin/cmake /usr/bin/cmake

from isaac_ros_base.

jakoblabs avatar jakoblabs commented on May 26, 2024

Here is a quick update: even after I updated to cmake 3.26.4, when running in isaac_ros_base/example directory:

docker build -t isaac-ros-base/packages:latest -f Dockerfile.isaac .

It still throws the error:

Starting >>> isaac_ros_common
Starting >>> isaac_ros_test
--- stderr: isaac_ros_common
CMake Error at CMakeLists.txt:9 (cmake_minimum_required):
CMake 3.23.2 or higher is required. You are running version 3.16.3


Failed <<< isaac_ros_common [0.64s, exited with code 1]

I did look in CMakeLists.txt and it is requiring a version later than CMake3.23.2.
However I do not understand why docker build still seems to have 3.16.3 in the shell environment, when I did update to 3.26.4

Thanks again for your help!
Bob

from isaac_ros_base.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.