mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
### Description Upgrade cmake version to 3.24 because I need to use a new feature that is only provided in that version and later. Starting from cmake 3.24, the [FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html#module:FetchContent) module and the [find_package()](https://cmake.org/cmake/help/latest/command/find_package.html#command:find_package) command now support integration capabilities, which means calls to "FetchContent" can be implicitly redirected to "find_package", and vice versa. Users can use a cmake variable to control the behavior. So, we don't need to provide such a build option. We can delete our "onnxruntime_PREFER_SYSTEM_LIB" build option and let cmake handle it. And it would be easier for who wants to use vcpkg. ### Motivation and Context Provide a unified package management method, and get aligned with the community. This change is split from #13523 for easier review.
26 lines
828 B
Bash
26 lines
828 B
Bash
#!/bin/bash
|
|
DEBIAN_FRONTEND=noninteractive
|
|
apt-get update && apt-get install -y --no-install-recommends \
|
|
wget \
|
|
zip \
|
|
ca-certificates \
|
|
build-essential \
|
|
curl \
|
|
libcurl4-openssl-dev \
|
|
libssl-dev \
|
|
python3-dev
|
|
|
|
# Dependencies: conda
|
|
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh -O ~/miniconda.sh --no-check-certificate && /bin/bash ~/miniconda.sh -b -p /opt/miniconda
|
|
rm ~/miniconda.sh
|
|
/opt/miniconda/bin/conda clean -ya
|
|
|
|
pip install numpy
|
|
pip install packaging
|
|
pip install "wheel>=0.35.1"
|
|
rm -rf /opt/miniconda/pkgs
|
|
|
|
# Dependencies: cmake
|
|
wget --quiet https://github.com/Kitware/CMake/releases/download/v3.24.3/cmake-3.24.3-linux-x86_64.tar.gz
|
|
tar zxf cmake-3.24.3-linux-x86_64.tar.gz
|
|
rm -rf cmake-3.24.3-linux-x86_64.tar.gz
|