-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
736443c
commit 82c32a8
Showing
4 changed files
with
12 additions
and
76 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,17 @@ | ||
set -x | ||
|
||
brew install cmake eigen fcl tinyxml tinyxml2 urdfdom assimp boost numpy fmt | ||
python -m pip install numpy pytest | ||
brew install binutils pybind11 | ||
python -m pip install --upgrade pip | ||
pip3 install numpy | ||
|
||
brew install dartsim --only-dependencies | ||
pip3 install dartpy | ||
|
||
# Remove previous attempts | ||
sudo rm -rf /opt/magnum | ||
sudo rm -rf /opt/dart | ||
sudo rm -rf /opt/robot_dart | ||
|
||
# Make temp folder | ||
#rm -rf temp_robot_dart | ||
mkdir -p temp_robot_dart | ||
cd temp_robot_dart | ||
|
||
# DART | ||
git clone -b v6.12.1 --single-branch --depth 1 https://github.com/dartsim/dart.git | ||
cd dart && git checkout v6.12.1 | ||
mkdir -p build && cd build | ||
cmake -DDART_BUILD_DARTPY=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/dart .. | ||
make -j8 | ||
sudo make install | ||
cd ../.. | ||
pwd | ||
|
||
export LD_LIBRARY_PATH=/opt/dart/lib:$LD_LIBRARY_PATH | ||
sudo ln -s /opt/dart/lib/python3.9 /opt/dart/lib/python3 # a bit hacky... | ||
export PYTHONPATH=/opt/dart/lib/python3/site-packages:$PYTHONPATH | ||
|
||
# Magnum related | ||
git clone --depth 1 https://github.com/mosra/corrade.git | ||
cd corrade | ||
mkdir -p build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/magnum .. | ||
make -j8 | ||
sudo make install | ||
cd ../.. | ||
pwd | ||
|
||
git clone --depth 1 https://github.com/mosra/magnum.git | ||
cd magnum | ||
mkdir -p build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/magnum -DMAGNUM_WITH_AUDIO=ON -DMAGNUM_WITH_DEBUGTOOLS=ON -DMAGNUM_WITH_GL=ON -DMAGNUM_WITH_MESHTOOLS=ON -DMAGNUM_WITH_PRIMITIVES=ON -DMAGNUM_WITH_SCENEGRAPH=ON -DMAGNUM_WITH_SHADERS=ON -DMAGNUM_WITH_TEXT=ON -DMAGNUM_WITH_TEXTURETOOLS=ON -DMAGNUM_WITH_TRADE=ON -DMAGNUM_WITH_GLFWAPPLICATION=ON -DMAGNUM_WITH_WINDOWLESSGLXAPPLICATION=ON -DMAGNUM_WITH_WINDOWLESSEGLAPPLICATION=OFF -DMAGNUM_WITH_OPENGLTESTER=ON -DMAGNUM_WITH_ANYAUDIOIMPORTER=ON -DMAGNUM_WITH_ANYIMAGECONVERTER=ON -DMAGNUM_WITH_ANYIMAGEIMPORTER=ON -DMAGNUM_WITH_ANYSCENEIMPORTER=ON -DMAGNUM_WITH_MAGNUMFONT=ON -DMAGNUM_WITH_OBJIMPORTER=ON -DMAGNUM_WITH_TGAIMPORTER=ON -DMAGNUM_WITH_WAVAUDIOIMPORTER=ON -DMAGNUM_WITH_GL_INFO=ON -DMAGNUM_WITH_AL_INFO=ON -DMAGNUM_WITH_EGLCONTEXT=OFF .. | ||
make -j8 | ||
sudo make install | ||
cd ../.. | ||
pwd | ||
|
||
git clone --depth 1 https://github.com/mosra/magnum-plugins.git | ||
cd magnum-plugins | ||
mkdir -p build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/magnum -DMAGNUM_WITH_ASSIMPIMPORTER=ON -DMAGNUM_WITH_DDSIMPORTER=ON -DMAGNUM_WITH_JPEGIMPORTER=ON -DMAGNUM_WITH_OPENGEXIMPORTER=ON -DMAGNUM_WITH_PNGIMPORTER=ON -DMAGNUM_WITH_TINYGLTFIMPORTER=ON -DMAGNUM_WITH_STBTRUETYPEFONT=ON .. | ||
make -j | ||
sudo make install | ||
cd ../.. | ||
|
||
git clone --depth 1 https://github.com/mosra/magnum-integration.git | ||
cd magnum-integration | ||
mkdir -p build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/magnum -DMAGNUM_WITH_DART=ON -DMAGNUM_WITH_EIGEN=ON -DMAGNUM_WITH_BULLET=ON -DMAGNUM_WITH_GLM=OFF .. | ||
make -j | ||
sudo make install | ||
cd ../.. | ||
pwd | ||
|
||
export PATH=/opt/magnum/bin:$PATH | ||
export LD_LIBRARY_PATH=/opt/magnum/lib:$LD_LIBRARY_PATH | ||
|
||
pwd | ||
cd ../ | ||
pwd | ||
rm -rf temp_robot_dart | ||
cd .. | ||
pwd | ||
|
||
# RobotDART | ||
./waf configure --prefix /opt/robot_dart --python --dart /opt/dart --corrade_install_dir /opt/magnum --magnum_install_dir /opt/magnum --magnum_plugins_install_dir /opt/magnum --magnum_integration_install_dir /opt/magnum | ||
./waf configure --prefix /opt/robot_dart --python | ||
./waf -j8 | ||
./waf examples -j8 | ||
sudo ./waf install | ||
|