Last active
January 23, 2024 08:34
-
-
Save stwind/7613e4add9566173ea7a5320c5f9ec3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Start docker | |
docker run -ti -m 4g --rm ubuntu:23.10 bash | |
## Inside docker | |
### Install deps | |
apt-get -yqq update && DEBIAN_FRONTEND=noninteractive apt-get install -yqq --no-install-recommends build-essential libjemalloc-dev pkg-config libtbb-dev libblosc-dev python3-dev python3-pip python3-pybind11 pipx cmake wget unzip | |
export PATH=$PATH:/root/.local/bin && pipx install conan && conan profile detect --force | |
cat << EOF > /root/conanfile.txt | |
[requires] | |
boost/1.83.0 | |
[generators] | |
CMakeDeps | |
CMakeToolchain | |
EOF | |
conan install /root --output-folder=/root/build --build=missing | |
### Build OpenVDB | |
wget https://github.com/AcademySoftwareFoundation/openvdb/archive/refs/tags/v11.0.0.tar.gz -O /root/openvdb-v11.0.0.tar.gz && tar -zxf /root/openvdb-v11.0.0.tar.gz -C /root | |
cd /root/openvdb-11.0.0 | |
cmake -B build -DCMAKE_TOOLCHAIN_FILE=/root/build/conan_toolchain.cmake -DOPENVDB_BUILD_PYTHON_MODULE=ON -DOPENVDB_BUILD_VDB_RENDER=ON . | |
cmake --build build | |
### Verify | |
wget -qc --show-progress https://artifacts.aswf.io/io/aswf/openvdb/models/sphere.vdb/1.0.0/sphere.vdb-1.0.0.zip && unzip -nqq dragon.vdb-1.0.0.zip | |
./openvdb-11.0.0/build/openvdb_cmd/vdb_print/vdb_print -l -m dragon.vdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment