From 81dab253d541acfe11698a1ea341b9cfda6a4d6c Mon Sep 17 00:00:00 2001 From: Bogdan Burlacu Date: Fri, 31 May 2024 00:23:58 +0200 Subject: [PATCH] update env, deps & cmake --- CMakeLists.txt | 3 +++ environment.yml | 4 +++- script/dependencies.sh | 48 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 53 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e2cc92..ec1dff6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,10 @@ find_package(Ceres CONFIG) find_package(Eigen3 REQUIRED) find_package(FastFloat REQUIRED) find_package(Threads REQUIRED) +find_package(byte-lite REQUIRED) +find_package(span-lite REQUIRED) find_package(lbfgs REQUIRED) +find_package(libassert REQUIRED) find_package(mdspan REQUIRED) find_package(operon REQUIRED) find_package(outcome REQUIRED) diff --git a/environment.yml b/environment.yml index 340bf9e..bbb82fe 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,6 @@ channels: - conda-forge dependencies: - cxx-compiler - - clangxx - cmake - eigen - git @@ -13,3 +12,6 @@ dependencies: - pybind11 - scikit-build - xxhash + - zstd + - zstd-static + - zlib diff --git a/script/dependencies.sh b/script/dependencies.sh index 0975161..592dfdc 100755 --- a/script/dependencies.sh +++ b/script/dependencies.sh @@ -210,10 +210,56 @@ cmake --install build popd rm -rf mdspan +# span-lite +git clone https://github.com/martinmoene/span-lite.git +pushd span-lite +git checkout 50f55c59d1b66910837313c40d11328d03447a41 +mkdir build +cmake -S . -B build -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} +cmake --install build +popd +rm -rf span-lite + +# byte-lite +git clone https://github.com/martinmoene/byte-lite.git +pushd byte-lite +git checkout dd5b3827f7cd74c1f399d1ec2c063982d3442a99 +cmake -S . -B build -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} +cmake --install build +popd +rm -rf byte-lite + +# cpptrace +git clone https://github.com/jeremy-rifkin/cpptrace.git +pushd cpptrace +cmake -S . -B build \ + -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \ + -DCPPTRACE_USE_EXTERNAL_ZSTD=1 \ + -DCPPTRACE_GET_SYMBOLS_WITH_LIBDWARF=0 +cmake --build build +cmake --install build +popd +rm -rf cpptrace + +# libassert +git clone https://github.com/jeremy-rifkin/libassert.git +pushd libassert +git checkout v2.0.2 +mkdir build +cmake -S . -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIBASSERT_USE_EXTERNAL_CPPTRACE=1 \ + -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} +cmake --build build +cmake --install build +popd +rm -rf libassert + ## operon +[ -d operon ] && rm -rf operon git clone https://github.com/heal-research/operon.git pushd operon -git checkout d01b92cfa42e9e3059c1cbb4a8bc5cf5bacc8a96 +git checkout 4a93f98af108dbb98eb1cc10efe0f057b723293c mkdir build cmake -S . -B build --preset build-${PLATFORM} \ -DCMAKE_BUILD_TYPE=Release \