[6] | 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.7-3 |
---|
| 10 | - this itself has 3rd party dependencies available |
---|
| 11 | as a downloadable bundle |
---|
| 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 | |
---|
| 42 | NETCDF_DIR : root of NetCDF binary package with needed subdirs |
---|
| 43 | /lib and /include |
---|
| 44 | |
---|
| 45 | CPPUNIT : root of c++ unit testing framework with needed subdirs |
---|
| 46 | /lib and /include |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | 3) For Visual Studio .NET, |
---|
| 50 | |
---|
| 51 | (i) Open the solution in visualstudio subdir. |
---|
| 52 | (ii) Open Menu Tools|Options|Projects|VC++Directories and add a |
---|
| 53 | path to $(NETCDF_DIR)/bin and $(OSG_ROOT)/bin. |
---|
| 54 | (iii) Build the solution |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | 4) For Mac OSX |
---|
| 58 | |
---|
| 59 | Run make in swwreader and swollen directories. |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | 5) For Linux |
---|
| 63 | |
---|
| 64 | Makefiles not yet written |
---|
| 65 | |
---|