build_cmake_pybullet_double.sh 407 B

123456789101112131415
  1. #!/bin/sh
  2. if [ -e CMakeCache.txt ]; then
  3. rm CMakeCache.txt
  4. fi
  5. mkdir -p build_cmake
  6. cd build_cmake
  7. cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=ON -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release .. || exit 1
  8. make -j $(command nproc 2>/dev/null || echo 12) || exit 1
  9. cd examples
  10. cd pybullet
  11. if [ -e pybullet.dylib ]; then
  12. ln -f -s pybullet.dylib pybullet.so
  13. fi
  14. echo "Completed build of Bullet."