Skip to content

Commit 7c8ed56

Browse files
authored
Merge pull request #132 from matthias-mayr/pr_installation
Updates installation instructions.
2 parents a6297ff + 430a43a commit 7c8ed56

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

ci/install_dart_latest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ fi
1111

1212
git clone git://github.com/dartsim/dart.git
1313
cd dart
14+
git checkout v6.10.1
1415
mkdir build
1516
cd build
1617
if [ "$PYTHON_TESTS" = "ON" ]; then
@@ -21,7 +22,6 @@ fi
2122
make -j4
2223
sudo make install
2324
if [ "$PYTHON_TESTS" = "ON" ]; then
24-
make dartpy -j4
2525
sudo make install-dartpy
2626
fi
2727
sudo ldconfig

docs/installation.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ sudo apt-get install liburdfdom-dev liburdfdom-headers-dev
5757
cd /path/to/tmp/folder
5858
git clone git://github.com/dartsim/dart.git
5959
cd dart
60-
git checkout release-6.9
60+
git checkout v6.10.1
6161

6262
mkdir build
6363
cd build
64-
cmake -DDART_ENABLE_SIMD=ON ..
64+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
6565
make -j4
6666
sudo make install
6767
```
@@ -84,11 +84,11 @@ brew install urdfdom
8484
cd /path/to/tmp/folder
8585
git clone git://github.com/dartsim/dart.git
8686
cd dart
87-
git checkout release-6.9
87+
git checkout v6.10.1
8888

8989
mkdir build
9090
cd build
91-
cmake -DDART_ENABLE_SIMD=ON ..
91+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
9292
make -j4
9393
sudo make install
9494
```
@@ -109,7 +109,7 @@ cd /path/to/tmp/folder
109109
git clone https://github.com/mosra/corrade.git
110110
cd corrade
111111
mkdir build && cd build
112-
cmake ..
112+
cmake -DCMAKE_BUILD_TYPE=Release ..
113113
make -j
114114
sudo make install
115115

@@ -119,9 +119,9 @@ git clone https://github.com/mosra/magnum.git
119119
cd magnum
120120
mkdir build && cd build
121121
# Ubuntu
122-
cmake -DWITH_AUDIO=ON -DWITH_DEBUGTOOLS=ON -DWITH_GL=ON -DWITH_MESHTOOLS=ON -DWITH_PRIMITIVES=ON -DWITH_SCENEGRAPH=ON -DWITH_SHADERS=ON -DWITH_TEXT=ON -DWITH_TEXTURETOOLS=ON -DWITH_TRADE=ON -DWITH_GLFWAPPLICATION=ON -DWITH_WINDOWLESSGLXAPPLICATION=ON -DWITH_OPENGLTESTER=ON -DWITH_ANYAUDIOIMPORTER=ON -DWITH_ANYIMAGECONVERTER=ON -DWITH_ANYIMAGEIMPORTER=ON -DWITH_ANYSCENEIMPORTER=ON -DWITH_MAGNUMFONT=ON -DWITH_OBJIMPORTER=ON -DWITH_TGAIMPORTER=ON -DWITH_WAVAUDIOIMPORTER=ON .. # this will enable almost all features of Magnum that are not necessarily needed for robot_dart (please refer to the documentation of Magnum for more details on selecting only the ones that you need)
122+
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_AUDIO=ON -DWITH_DEBUGTOOLS=ON -DWITH_GL=ON -DWITH_MESHTOOLS=ON -DWITH_PRIMITIVES=ON -DWITH_SCENEGRAPH=ON -DWITH_SHADERS=ON -DWITH_TEXT=ON -DWITH_TEXTURETOOLS=ON -DWITH_TRADE=ON -DWITH_GLFWAPPLICATION=ON -DWITH_WINDOWLESSGLXAPPLICATION=ON -DWITH_OPENGLTESTER=ON -DWITH_ANYAUDIOIMPORTER=ON -DWITH_ANYIMAGECONVERTER=ON -DWITH_ANYIMAGEIMPORTER=ON -DWITH_ANYSCENEIMPORTER=ON -DWITH_MAGNUMFONT=ON -DWITH_OBJIMPORTER=ON -DWITH_TGAIMPORTER=ON -DWITH_WAVAUDIOIMPORTER=ON .. # this will enable almost all features of Magnum that are not necessarily needed for robot_dart (please refer to the documentation of Magnum for more details on selecting only the ones that you need)
123123
# Mac OSX
124-
cmake -DWITH_AUDIO=ON -DWITH_DEBUGTOOLS=ON -DWITH_GL=ON -DWITH_MESHTOOLS=ON -DWITH_PRIMITIVES=ON -DWITH_SCENEGRAPH=ON -DWITH_SHADERS=ON -DWITH_TEXT=ON -DWITH_TEXTURETOOLS=ON -DWITH_TRADE=ON -DWITH_GLFWAPPLICATION=ON -DWITH_WINDOWLESSCGLAPPLICATION=ON -DWITH_OPENGLTESTER=ON -DWITH_ANYAUDIOIMPORTER=ON -DWITH_ANYIMAGECONVERTER=ON -DWITH_ANYIMAGEIMPORTER=ON -DWITH_ANYSCENEIMPORTER=ON -DWITH_MAGNUMFONT=ON -DWITH_OBJIMPORTER=ON -DWITH_TGAIMPORTER=ON -DWITH_WAVAUDIOIMPORTER=ON .. # this will enable almost all features of Magnum that are not necessarily needed for robot_dart (please refer to the documentation of Magnum for more details on selecting only the ones that you need)
124+
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_AUDIO=ON -DWITH_DEBUGTOOLS=ON -DWITH_GL=ON -DWITH_MESHTOOLS=ON -DWITH_PRIMITIVES=ON -DWITH_SCENEGRAPH=ON -DWITH_SHADERS=ON -DWITH_TEXT=ON -DWITH_TEXTURETOOLS=ON -DWITH_TRADE=ON -DWITH_GLFWAPPLICATION=ON -DWITH_WINDOWLESSCGLAPPLICATION=ON -DWITH_OPENGLTESTER=ON -DWITH_ANYAUDIOIMPORTER=ON -DWITH_ANYIMAGECONVERTER=ON -DWITH_ANYIMAGEIMPORTER=ON -DWITH_ANYSCENEIMPORTER=ON -DWITH_MAGNUMFONT=ON -DWITH_OBJIMPORTER=ON -DWITH_TGAIMPORTER=ON -DWITH_WAVAUDIOIMPORTER=ON .. # this will enable almost all features of Magnum that are not necessarily needed for robot_dart (please refer to the documentation of Magnum for more details on selecting only the ones that you need)
125125
make -j
126126
sudo make install
127127

@@ -130,7 +130,7 @@ cd /path/to/tmp/folder
130130
git clone https://github.com/mosra/magnum-plugins.git
131131
cd magnum-plugins
132132
mkdir build && cd build
133-
cmake -DWITH_ASSIMPIMPORTER=ON -DWITH_DDSIMPORTER=ON -DWITH_JPEGIMPORTER=ON -DWITH_OPENGEXIMPORTER=ON -DWITH_PNGIMPORTER=ON -DWITH_TINYGLTFIMPORTER=ON .. # this will enable quite a few Magnum Plugins that are not necessarily needed for robot_dart (please refer to the documentation of Magnum for more details on selecting only the ones that you need)
133+
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_ASSIMPIMPORTER=ON -DWITH_DDSIMPORTER=ON -DWITH_JPEGIMPORTER=ON -DWITH_OPENGEXIMPORTER=ON -DWITH_PNGIMPORTER=ON -DWITH_TINYGLTFIMPORTER=ON -DWITH_STBTRUETYPEFONT=ON .. # this will enable quite a few Magnum Plugins that are not necessarily needed for robot_dart (please refer to the documentation of Magnum for more details on selecting only the ones that you need)
134134
make -j
135135
sudo make install
136136

@@ -139,7 +139,7 @@ cd /path/to/tmp/folder
139139
git clone https://github.com/mosra/magnum-integration.git
140140
cd magnum-integration
141141
mkdir build && cd build
142-
cmake -DWITH_DART=ON -DWITH_EIGEN=ON ..
142+
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_DART=ON -DWITH_EIGEN=ON ..
143143
make -j
144144
sudo make install
145145
```
@@ -153,6 +153,9 @@ The compilation of the library is straight-forward:
153153
- `./waf configure`
154154
- `./waf`
155155

156+
To build the examples, execute this:
157+
`./waf examples`
158+
156159
Now you can run the examples. For example, to run the arm example you need to type the following: `./build/arm` (or `./build/arm_plain` to run it without graphics).
157160

158161
### Installing the library
@@ -179,11 +182,12 @@ For the python bindings of DART, do:
179182
```bash
180183
cd dart
181184

182-
mkdir build_py # we need a different folder
183-
cd build_py
184-
cmake -DDART_BUILD_DARTPY=ON -DDART_ENABLE_SIMD=ON ..
185+
mkdir build
186+
cd build
187+
cmake -DDART_BUILD_DARTPY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
185188
make -j4
186189
sudo make install
190+
sudo make install-dartpy
187191
```
188192

189193
Then the compilation of robot_dart is almost identical as before:

0 commit comments

Comments
 (0)