Last active
February 26, 2023 22:26
-
-
Save sladg/2d7ac8f537e12040a1ee1204009614c4 to your computer and use it in GitHub Desktop.
Build PotreeConverter via Conda. Compatible with Linux (use fork for MacOS)
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
# meta.yaml (use conda build ./path-to-directory-with-this-file | |
package: | |
name: potreeconverter | |
version: 2.1.1 | |
source: | |
git_url: https://github.com/potree/PotreeConverter.git | |
git_rev: 2.1.1 | |
build: | |
number: 0 | |
requirements: | |
build: | |
- cmake | |
- gdal | |
- pdal | |
run: | |
- gdal | |
- pdal | |
# -------------------------------------------------------- | |
# build.sh (same directory) | |
#!/bin/bash | |
# RECIPE_DIR, PREFIX, SRC_DIR, and BUILD_PREFIX are all defined by conda-build | |
cmake -B ${SRC_DIR}/build ${SRC_DIR} | |
make -C ${SRC_DIR}/build -j $(nproc) | |
cp ${SRC_DIR}/build/PotreeConverter ${PREFIX}/bin | |
cp ${SRC_DIR}/build/liblaszip.so ${PREFIX}/lib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment