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
|
2018-07-17 09:06:30 +00:00
|
|
|
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=ON -DUSE_DOUBLE_PRECISION=ON -DBT_USE_EGL=ON -DCMAKE_BUILD_TYPE=Release .. || exit 1
|
2018-01-08 23:07:14 +00:00
|
|
|
make -j $(command nproc 2>/dev/null || echo 12) || exit 1
|
2017-01-16 19:17:32 +00:00
|
|
|
cd examples
|
|
|
|
cd pybullet
|
2018-01-08 22:48:58 +00:00
|
|
|
if [ -e pybullet.dylib ]; then
|
2018-01-08 23:05:20 +00:00
|
|
|
ln -f -s pybullet.dylib pybullet.so
|
2018-01-08 22:48:58 +00:00
|
|
|
fi
|
2019-02-11 16:51:07 +00:00
|
|
|
if [ -e pybullet_envs ]; then
|
|
|
|
rm pybullet_envs
|
|
|
|
fi
|
|
|
|
if [ -e pybullet_data ]; then
|
|
|
|
rm pybullet_data
|
|
|
|
fi
|
|
|
|
if [ -e pybullet_utils ]; then
|
|
|
|
rm pybullet_utils
|
|
|
|
fi
|
|
|
|
ln -s ../../../examples/pybullet/gym/pybullet_envs .
|
|
|
|
ln -s ../../../examples/pybullet/gym/pybullet_data .
|
|
|
|
ln -s ../../../examples/pybullet/gym/pybullet_utils .
|
2018-01-08 23:07:14 +00:00
|
|
|
echo "Completed build of Bullet."
|