bullet3/build_cmake_pybullet_double.sh

16 lines
407 B
Bash
Raw Normal View History

2016-10-21 22:54:39 +00:00
#!/bin/sh
2018-01-08 22:48:58 +00:00
if [ -e CMakeCache.txt ]; then
rm CMakeCache.txt
fi
mkdir -p build_cmake
2016-10-21 22:54:39 +00:00
cd build_cmake
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=ON -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release .. || exit 1
make -j $(command nproc 2>/dev/null || echo 12) || exit 1
cd examples
cd pybullet
2018-01-08 22:48:58 +00:00
if [ -e pybullet.dylib ]; then
ln -f -s pybullet.dylib pybullet.so
2018-01-08 22:48:58 +00:00
fi
echo "Completed build of Bullet."