1 | |
---|
2 | |
---|
3 | BUILDING FROM SOURCE |
---|
4 | |
---|
5 | 1) The pyVolution Visualizer has several dependencies. |
---|
6 | |
---|
7 | OpenSceneGraph, OpenThreads, and Producer |
---|
8 | - http://openscenegraph.sourceforge.net |
---|
9 | - available as a bundle, OSG_OP_OT-0.9.8 |
---|
10 | - OpenSceneGraph has 3rd party dependencies, these are |
---|
11 | available as a downloadable .zip for Windows. |
---|
12 | - ensure you can run the examples that come with OSG |
---|
13 | prior to building the viewer |
---|
14 | |
---|
15 | NetCDF - a self-describing binary file format I/O library |
---|
16 | - http://my.unidata.ucar.edu/content/software/netcdf/index.html |
---|
17 | - require the header file netcdf.h and the library proper to |
---|
18 | link against |
---|
19 | |
---|
20 | cppUnit - a unit testing framework for C++ |
---|
21 | - http://cppunit.sourceforge.net |
---|
22 | - this is optional |
---|
23 | |
---|
24 | |
---|
25 | 2) Set environment variables: |
---|
26 | |
---|
27 | OSG_ROOT : root of your OpenSceneGraph installation |
---|
28 | conforming to following layout |
---|
29 | |
---|
30 | OSG_ROOT |
---|
31 | /OpenThreads |
---|
32 | /lib |
---|
33 | /win32 (for VisualStudio builds) |
---|
34 | /include |
---|
35 | /Producer |
---|
36 | /lib |
---|
37 | /include |
---|
38 | /OpenSceneGraph |
---|
39 | /lib |
---|
40 | /include |
---|
41 | /3rdParty (Windows only) |
---|
42 | |
---|
43 | NETCDF_DIR : root of NetCDF binary package with needed subdirs |
---|
44 | /lib and /include |
---|
45 | |
---|
46 | CPPUNIT : root of c++ unit testing framework with needed subdirs |
---|
47 | /lib and /include |
---|
48 | |
---|
49 | |
---|
50 | 3) Compilation |
---|
51 | |
---|
52 | |
---|
53 | WINDOWS |
---|
54 | |
---|
55 | (i) Open the solution in visualstudio subdir. |
---|
56 | (ii) Open Menu Tools|Options|Projects|VC++Directories and add a |
---|
57 | path to $(NETCDF_DIR)/bin and $(OSG_ROOT)/bin. |
---|
58 | (iii) Build the solution |
---|
59 | |
---|
60 | |
---|
61 | Mac OSX |
---|
62 | |
---|
63 | Run make in top-level OSG_ROOT directory. |
---|
64 | |
---|
65 | |
---|
66 | Linux |
---|
67 | |
---|
68 | Makefiles not yet written |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | 4) The binary swollen (swollen.exe on Windows) lives in the distribution's |
---|
73 | bin directory. Test the build with any of the sample datasets in the |
---|
74 | distribution's data subdirectory, e.g., |
---|
75 | "cd bin; ./swollen ../data/laminar.sww" |
---|
76 | |
---|
77 | |
---|
78 | |
---|