forked from topology-tool-kit/topology-tool-kit.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallation-windows-sources.html
More file actions
426 lines (357 loc) · 15 KB
/
installation-windows-sources.html
File metadata and controls
426 lines (357 loc) · 15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The Topology ToolKit">
<meta name="author" content="The Topology ToolKit">
<meta name="keywords" content="TTK, Topology ToolKit, Topological Data
Analysis, Visualization, Reeb graph, Reeb Space, Morse-Smale complex, contour
tree, persistence diagram, persistence curve, continuous scatterplot, fiber
surface, contour forests, jacobi set, mandatory critical points, topological
simplification, VTK, ParaView, Python" />
<title>TTK - the Topology ToolKit - Topological Data Analysis and
Visualization</title>
<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Theme CSS -->
<link href="css/clean-blog.min.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'
);
ga('create', 'UA-88087813-1', 'auto');
ga('send', 'pageview');
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-88087813-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type =
'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl'
: 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- End Google Analytics -->
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle"
data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
Menu <i class="fa fa-bars"></i>
</button>
<a class="navbar-brand" href="index.html">
TTK Home</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling
-->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="examples/index.html" target="new">Examples</a>
</li>
<li>
<a href="tutorials.html">Videos</a>
</li>
<li>
<a href="downloads.html">Downloads</a>
</li>
<li>
<a href="installation.html">Installation</a>
</li>
<li>
<a href="documentation.html">Documentation</a>
</li>
<li>
<a href="events.html">Events</a>
</li>
<li>
<a href="contribute.html">Contribute</a>
</li>
<li>
<a href="contact.html">Contact</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
<header class="intro-header"
style="background-image: url('img/morseHills.png')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="page-heading">
<h1>Topology ToolKit</h1>
<hr class="small">
<span class="subheading">Windows Installation</span>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
Please find below generic instructions for the installation of TTK
from sources, under Windows.<br><br>
TTK is also supported on other operating systems:<br>
·
<a href="installation-linux-sources.html">
Linux installation instructions</a> (default target platform);
<br>
·
<a href="installation-osx-sources.html">
MacOS installation instructions</a>.<br><br>
If you are an advanced user and you do not wish to install ParaView
(TTK's main user interface), you still have the possibility to install
TTK without ParaView and VTK support (although we highly recommend to
activate them).<br> In that case, simply download TTK as described in
section 1, install the dependencies as detailed in section 2 and
finally, directly jump to section 5 (<i>"Installing TTK"</i>). <br>
Examples showing how to use TTK libraries from your own C++ code can
be found
<a target="new"
href="https://github.com/topology-tool-kit/ttk/tree/dev/examples/c%2B%2B"
>on this page</a>.<br>
<br>
<b>Most users will want to activate TTK's ParaView support.</b>
<br><br>
<!--
·
<a href="installation-windows-0.9.7.html">TTK 0.9.7 with ParaView 5.6.0</a>.<br>-->
<!-- ·
<a href="installation-windows-0.9.6.html">TTK 0.9.6 with ParaView
5.5.2</a>.<br>-->
<p><h3>0. Disclaimer and troubleshooting</h3>
Installing software from source can be challenging (in particular under Windows).
<br>
Since build chains can vary quite drastically from one system to another, the instructions below may require adjustments for your system.
<br>
In case of building issues, we recommend to check the following Windows installation script examples for
<a href="https://github.com/topology-tool-kit/ttk-paraview/blob/v5.13.0/.github/workflows/package.yml#L122" target="new">ParaView</a>
and
<a target="new" href="https://github.com/topology-tool-kit/ttk/blob/stable/.github/workflows/package.yml#L358">TTK</a>.
We use these scripts on a daily basis for building automatically ParaView and TTK under Windows, for the automatic tests of TTK's continuous integration.
<p><h3>1. Installing the dependencies</h3>
<ul>
<li> <a href="https://cmake.org/download" target="new">CMake</a> (tested
with 3.10.0) </li>
<li> <a href="https://www.anaconda.com/products/individual"
target="new">Anaconda3</a></li>
</ul>
Please ensure that you have no other Python installation already in
your system and check the "Add Anaconda to the Windows PATH
Environment variable" box during the Anaconda installation
process. This will help TTK to find all its dependencies at build and
run-time.
<br>
Once everything is installed, please open an Anaconda Prompt and type
<pre>
<code>conda install -c conda-forge clangxx=18 qt-main python=3.10</code>
<code>conda install -c conda-forge eigen glew graphviz libboost-devel llvm-openmp ninja qhull scikit-learn spectralib sqlite zfp zlib</code>
</pre>
to install the dependencies.
You may need to add the <code>QT_PLUGIN_PATH</code> environment
variable: make it point to the <code>\Library\plugins</code>
subdirectory of your Anaconda installation. In a similar manner,
the <code>PYTHONPATH</code> environment variable must also point to
the <code>Lib</code> Anaconda installation subdirectory.
</p>
<p><h3>2. Download TTK</h3>
Download TTK's source code archive <code>ttk-1.3.0.zip</code> from the
<a target="new" href="downloads.html">download page</a> and decompress
it in a specific folder of your choice.
</p>
<p><h3>3. Download ParaView</h3>
Download ParaView's source code archive <code>ttk-paraview-5.13.0.zip</code> from
<a target="new"
href="https://github.com/topology-tool-kit/ttk-paraview/archive/v5.13.0.zip">GitHub</a>
and decompress it in a specific folder of your choice.
</p>
<p><h3>4. Installing ParaView</h3>
From your chosen folder, open a command line prompt and run the following commands to configure ParaView with CMake:
<br>
<pre><code>
set CC=clang-cl.exe
set CXX=clang-cl.exe
cd ttk-paraview-5.13.0
mkdir build
cd build
cmake-gui ..
</code></pre>
Click on the "Configure" button and select the Ninja generator.
Click on the "Generate" button. Then, close the CMake window<br>
Next, from the command line prompt (still in the build directory), enter the following command:
<pre><code>
cmake . --build --target install --config Release --parallel
</code></pre>
Change the <code>PATH</code> environment variable to
include:
<code>C:\Program Files (x86)\ParaView\bin</code>,
<br>
<code>CMAKE_PREFIX_PATH</code> to include
<code>C:\Program Files (x86)\ParaView\lib\cmake</code>,
<br>
and <code>PYTHONPATH</code> to include
<code>C:\Program Files (x86)\ParaView\bin\Lib\site-packages</code>,
</p>
<p><h3>5. Installing TTK</h3>
From your chosen folder, open a command line prompt and run the following commands to configure TTK with CMake:
<br>
<pre><code>
set CMAKE_PREFIX_PATH=%CONDA_ROOT%\Library\lib\cmake;%CONDA_ROOT%\Library\share\eigen3\cmake;%CONDA_ROOT%\Library\share\Qull\cmake;%CONDA_ROOT%\Library\cmake;%ProgramFiles%\TTK-ParaView\lib\cmake;
set CC=clang-cl.exe
set CXX=clang-cl.exe
cd ttk-1.3.0
mkdir build
cd build
cmake-gui ..
</code></pre>
<br>
Click on the "Configure" button and select the Ninja generator.
If you are an advanced user and you do not wish to activate TTK's ParaView
support, set the CMake variable <code>TTK_BUILD_PARAVIEW_PLUGINS</code> to
<code>OFF</code>.
Examples showing how to use TTK libraries from your
own VTK code can be found
<a target="new"
href="https://github.com/topology-tool-kit/ttk/tree/dev/examples/vtk-c%2B%2B"
>on this page</a>.<br><br>
If you are an advanced user and you do not even wish to activate TTK's VTK
support, set the CMake variables
<!-- NOT NEEDED AFTER RELEASE 1.2.0 -->
<code>TTK_BUILD_STANDALONE_APPS</code> and
<!-- END OF NOT NEEDED -->
<code>TTK_BUILD_VTK_WRAPPERS</code> to <code>OFF</code>.
Examples showing how to use TTK libraries from your own
C++ code can be found
<a target="new"
href="https://github.com/topology-tool-kit/ttk/tree/dev/examples/c%2B%2B"
>on this page</a>.<br><br>
Click on the "Generate" button. Then, close the CMake window<br>
Next, from the command line prompt (still in the build directory), enter the following command:
<pre><code>
cmake . --build --target install --config Release --parallel
</code></pre>
Change the <code>PATH</code> environment variable to
include <code>C:\Program Files (x86)\ttk\bin</code>,
<br>
<code>CMAKE_PREFIX_PATH</code> to include
<code>C:\Program Files (x86)\ttk\lib\cmake</code>,
<br>
<code>PV_PLUGIN_PATH</code> to include
<code>C:\Program Files (x86)\ttk\bin\plugins</code>,
<br>
and <code>PYTHONPATH</code> to include
<code>C:\Program Files (x86)\ttk\bin\Lib\site-packages</code>,
<br>
<br>
If you got to this point without (too many) errors, then
congratulations!<br> You have just successfully installed TTK on your
Windows system!
<br>
The simplest way to test it is to open ParaView with
a <code>cmd.exe</code> command-line prompt and
type <code>paraview</code> in it.
</p>
<p>
At this point, you should see the following TTK startup screen:<br> <br>
<a href="img/ttkStartup.jpg" target="new">
<img align='center'width="95%" src="img/ttkStartup.jpg">
</a>
<br><br>
On this screen, clicking on the "Example Visualizations" link should bring you
to the TTK built-in example screen:
<br> <br>
<a href="img/ttkExamples.jpg" target="new">
<img align='center'width="95%" src="img/ttkExamples.jpg">
</a>
<br><br>
From there, clicking on one of the three buttons should generate one of the
following three visualizations:<br><br>
<a href="img/gallery/builtinExample1.jpg" target="new">
<img align='center'width="95%" src="img/gallery/builtinExample1.jpg" >
</a>
<br><br>
<a href="img/gallery/builtinExample2.jpg" target="new">
<img align='center'width="95%" src="img/gallery/builtinExample2.jpg" >
</a>
<br><br>
<a href="img/gallery/builtinExample3.jpg" target="new">
<img align='center'width="95%" src="img/gallery/builtinExample3.jpg" >
</a>
<br><br>
If this is the case, congratulations!<br> You have just successfully installed
TTK on your system!</p>
<p>
Now, please visit our <a href="tutorials.html">tutorial</a> page to watch video
tutorials showing how to use TTK with ParaView with concrete examples and how
to
use it from your own Python or C++ code or how to extend TTK by writing up your
own module!
</p>
</div>
</div>
</div>
<hr>
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<p class="copyright text-muted">
Contact: <a href="mailto:topology.tool.kit@gmail.com">
topology.tool.kit@gmail.com</a><br>
Updated on Sep. 26, 2024.</p>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
<script src="vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Contact Form JavaScript -->
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/contact_me.js"></script>
<!-- Theme JavaScript -->
<script src="js/clean-blog.min.js"></script>
</body>
</html>