https://github.com/mit-gfx/diff_pd_public
Tip revision: 1594aa07a6983ff9a9c107e9f0d83d07fa99c8d1 authored by Tao Du on 11 March 2022, 18:28:42 UTC
Updated TOG link.
Updated TOG link.
Tip revision: 1594aa0
install.sh
cd external/
mkdir -p pbrt_build
cd pbrt_build
cmake ../pbrt-v3
make -j4
cd ../../
# Generate python binding.
cd cpp/core/src
swig -c++ -python py_diff_pd_core.i
# Compile c++ code.
cd ../../
mkdir -p build
cd build
if [ $# -eq 0 ]
then
cmake -DPARDISO_AVAILABLE=OFF ..
else
cmake -DPARDISO_AVAILABLE=ON ..
fi
make -j4
./diff_pd_demo
# Python binding.
cd ../core/src/
mv py_diff_pd_core.py ../../../python/py_diff_pd/core
mv ../../build/libpy_diff_pd_core.so ../../../python/py_diff_pd/core/_py_diff_pd_core.so
# Log absolute path.
cd ../../../
root_path=$(pwd)
printf "root_path = '%s'\n" "$root_path" > python/py_diff_pd/common/project_path.py