| 1 | <!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en"> |
|---|
| 2 | <html> |
|---|
| 3 | <head> |
|---|
| 4 | <meta http-equiv="Content-Type" |
|---|
| 5 | content="text/html; charset=iso-8859-1"> |
|---|
| 6 | <meta name="GENERATOR" |
|---|
| 7 | content="Mozilla/4.77 [en] (X11; U; Linux 2.4.3-20mdk i686) [Netscape]"> |
|---|
| 8 | <title>Compilation dependencies</title> |
|---|
| 9 | </head> |
|---|
| 10 | <body text="#000000" bgcolor="#ffffff" link="#0000ff" vlink="#990066" |
|---|
| 11 | alink="#ff0000"> |
|---|
| 12 | <img src="images/OpenSceneGraphBanner_Distribution.jpg"> |
|---|
| 13 | <table> |
|---|
| 14 | <tbody> |
|---|
| 15 | <tr> |
|---|
| 16 | <td><a href="index.html">Index</a></td> |
|---|
| 17 | <td><a href="introduction.html">Introduction</a></td> |
|---|
| 18 | <td><a href="contents.html">Contents</a></td> |
|---|
| 19 | <td><a href="install.html">Install</a></td> |
|---|
| 20 | <td><a href="dependencies.html">Dependencies</a></td> |
|---|
| 21 | <td><a href="examples.html">examples</a></td> |
|---|
| 22 | <td><a href="data.html">Data</a></td> |
|---|
| 23 | <td><a href="osgviewer.html">Viewer</a></td> |
|---|
| 24 | <td><a href="stereo.html">Stereo</a></td> |
|---|
| 25 | <td><a href="osgdem.html">osgdem</a></td> |
|---|
| 26 | <td><a href="plan.html">Plan</a></td> |
|---|
| 27 | <td><a href="documentation.html">Reference Guides</a></td> |
|---|
| 28 | </tr> |
|---|
| 29 | </tbody> |
|---|
| 30 | </table> |
|---|
| 31 | <h2> <a name="Scene graph dependencies"></a><u>Scene graph dependencies</u></h2> |
|---|
| 32 | The OpenSceneGraph is composed of core scene graph libraries, plugins |
|---|
| 33 | libraries and demo programs. The core scene graph libraries (osg, |
|---|
| 34 | osgDB, osgUtil, |
|---|
| 35 | osgText, osgParticle, osgSim) are only dependent upon OpenGL and |
|---|
| 36 | Standard |
|---|
| 37 | C++ so should compile straight out of the box on most systems. To run |
|---|
| 38 | the |
|---|
| 39 | examples one will also need to compile osgProducer which adds the |
|---|
| 40 | dependency |
|---|
| 41 | of Producer, and if true type text is required then the freetype |
|---|
| 42 | library |
|---|
| 43 | will be required. The plugins which are used to read and write various |
|---|
| 44 | file |
|---|
| 45 | formats have their own sets of dependencies listed below, some have no |
|---|
| 46 | dependencies |
|---|
| 47 | at all. A plugin is only needed if you need to load that specific file |
|---|
| 48 | format, |
|---|
| 49 | so it is not critical if you don't have all the required dependencies. <br> |
|---|
| 50 | <br> |
|---|
| 51 | Under UNIX you can take advantage of flexibility in the build system |
|---|
| 52 | that allows you to manually define the external dependencies that are |
|---|
| 53 | installed on your system. To override the default dependencies |
|---|
| 54 | copy the Make/dependencies file to a directory of choosing, and then |
|---|
| 55 | point to this file by setting the OSG_DEPENDENCIES environmental |
|---|
| 56 | variable to point to this file. Then edit this file to reflect |
|---|
| 57 | which dependencies are present. i.e<br> |
|---|
| 58 | <br> |
|---|
| 59 | cd /home/osguser/OpenSceneGraph<br> |
|---|
| 60 | cp Make/dependencies my_custom_osg_dependencies<br> |
|---|
| 61 | export |
|---|
| 62 | OSG_DEPENDENCIES=/home/osguser/OpenSceneGraph/my_custom_osg_dependencies<br> |
|---|
| 63 | myfavorite-editor my_custom_osg_dependencies<br> |
|---|
| 64 | <br> |
|---|
| 65 | When editing the file, simple change the no to yes, and visa-versa |
|---|
| 66 | where apporpriate.<br> |
|---|
| 67 | <br> |
|---|
| 68 | <hr> |
|---|
| 69 | <h3> <a name="Windows dependency arhives"></a><u>Windows dependency |
|---|
| 70 | archives</u></h3> |
|---|
| 71 | To make life easier for Windows users, we have put together a .zip |
|---|
| 72 | archives with all the required dependencies which can be download and |
|---|
| 73 | installed somewhere in you system. You'll need to set VisualStudio to |
|---|
| 74 | pick up on the include and |
|---|
| 75 | libs, and the PATH set to pick up in the dll's. Alternatively, a more |
|---|
| 76 | hacky |
|---|
| 77 | but simpler solution is to unpack this archive inside you |
|---|
| 78 | OpenSceneGraph distribution, |
|---|
| 79 | so that all the include files drop into OpenSceneGraph/include, and the |
|---|
| 80 | libs drop into OpenSceneGraph/lib, and all the dll's drop into |
|---|
| 81 | OpenSceneGraph/bin, this way VisualStudio will pick up the files |
|---|
| 82 | simpler through the paths set up inside the workspace and project |
|---|
| 83 | files. The archives can be downloaded here: . . |
|---|
| 84 | <ul> |
|---|
| 85 | <li> freetype, libpng, libungif, libtiff, libjpeg & zlib |
|---|
| 86 | includes, |
|---|
| 87 | libs and dll.</li> |
|---|
| 88 | <ul> |
|---|
| 89 | <i><a |
|---|
| 90 | href="http://www.openscenegraph.org/download/dependencies/OsgWin32Dependencies.zip">http://www.openscenegraph.org/download/dependencies/OsgWin32Dependencies.zip<br> |
|---|
| 91 | <br> |
|---|
| 92 | </a></i> |
|---|
| 93 | </ul> |
|---|
| 94 | <hr> |
|---|
| 95 | <h3> <a name="Core library dependencies"></a><u>Core library |
|---|
| 96 | dependencies</u></h3> |
|---|
| 97 | <br> |
|---|
| 98 | <ul> |
|---|
| 99 | <li>src/osgDB + src/osgPlugin/txp + src/osgProducer all depend upon |
|---|
| 100 | OpenThreads library :</li> |
|---|
| 101 | <br> |
|---|
| 102 | <ul> |
|---|
| 103 | <i><a href="http://openthreads.sourceforge.net">http:://openthreads.sourceforge.net</a></i> |
|---|
| 104 | </ul> |
|---|
| 105 | <br> |
|---|
| 106 | <li>src/osgProducer - The osgProducer library depends upon, you |
|---|
| 107 | guessed it, Producer...</li> |
|---|
| 108 | <br> |
|---|
| 109 | <ul> |
|---|
| 110 | <i><a href="http://www.andesengineering.com/Producer">http://www.andesengineering.com/Producer</a></i> |
|---|
| 111 | </ul> |
|---|
| 112 | <br> |
|---|
| 113 | <li>src/osgTerrain - The optional osgTerrain library depends upon |
|---|
| 114 | GDAL to load large scale imagery and DEM's.</li> |
|---|
| 115 | <br> |
|---|
| 116 | <ul> |
|---|
| 117 | <i><a href="http://www.remotesensing.org/gdal/">http://www.remotesensing.org/gdal/</a></i> |
|---|
| 118 | </ul> |
|---|
| 119 | </ul> |
|---|
| 120 | </ul> |
|---|
| 121 | <ul> |
|---|
| 122 | <hr> |
|---|
| 123 | <h3> <a name="Plug-in dependencies"></a><u>Plug-in dependencies</u></h3> |
|---|
| 124 | Follows is the list of dependencies which some of the osgPlugins |
|---|
| 125 | require, note the core osg and viewer do not need the following |
|---|
| 126 | dependencies, you |
|---|
| 127 | only need the following if you require each specific plugin. Note, the |
|---|
| 128 | flt, |
|---|
| 129 | 3ds, pic, tga, do not have any dependencies other than Standard C++ so |
|---|
| 130 | will |
|---|
| 131 | compile straight of the bag. Under Linux the majority of the |
|---|
| 132 | dependencies |
|---|
| 133 | below come as standard with distributions so you may not need to |
|---|
| 134 | download |
|---|
| 135 | them at all. Its best to try out a straight compile of the osg, if you |
|---|
| 136 | get |
|---|
| 137 | missing includes/libs errors then chase up the below. <br> |
|---|
| 138 | <ul> |
|---|
| 139 | <br> |
|---|
| 140 | <li> src/osgPlugins/freetype</li> |
|---|
| 141 | <br> |
|---|
| 142 | The osgText library supports true |
|---|
| 143 | type fonts via the freetype library. |
|---|
| 144 | <ul> |
|---|
| 145 | <i><a href="http://www.freetype.org/">http://www.freetype.org/</a></i> |
|---|
| 146 | </ul> |
|---|
| 147 | <br> |
|---|
| 148 | <li> src/osgTerrain & src/osgPlugins/gdal</li> |
|---|
| 149 | <br> |
|---|
| 150 | The GDAL plugin uses GDAL to load large scale imagery and DEM's. |
|---|
| 151 | <ul> |
|---|
| 152 | <i><a href="http://www.remotesensing.org/gdal/">http://www.remotesensing.org/gdal/</a></i> |
|---|
| 153 | </ul> |
|---|
| 154 | <br> |
|---|
| 155 | <li> src/osgPlugins/pfb</li> |
|---|
| 156 | <br> |
|---|
| 157 | There is a Performer plugin in this distribution for converting from |
|---|
| 158 | Performer to OSG and from OSG to Performer. This plugin requires |
|---|
| 159 | Performer to be installed and therefore is not compiled by default. If |
|---|
| 160 | you have Performer (available under Linux and IRIX) then edit |
|---|
| 161 | src/osgPlugins/Make to compile under the plugin. |
|---|
| 162 | Performer can be downloaded from : |
|---|
| 163 | <ul> |
|---|
| 164 | <i><a href="http://www.sgi.com/">http://www.sgi.com/</a></i> |
|---|
| 165 | </ul> |
|---|
| 166 | <br> |
|---|
| 167 | <li> src/osgPlugins/png</li> |
|---|
| 168 | <br> |
|---|
| 169 | The png plugin depends upon the libpng and zlib (for compression) |
|---|
| 170 | libraries, if you don't already have it installed, you'll need to |
|---|
| 171 | download, compile |
|---|
| 172 | and install it. Project home pages are: |
|---|
| 173 | <ul> |
|---|
| 174 | <i><a href="http://www.libpng.org/pub/png/libpng.html">http://www.libpng.org/pub/png/libpng.html</a></i> |
|---|
| 175 | <br> |
|---|
| 176 | <i><a href="http://www.info-zip.org/pub/infozip/zlib/">http://www.info-zip.org/pub/infozip/zlib/</a></i> |
|---|
| 177 | </ul> |
|---|
| 178 | <br> |
|---|
| 179 | <li> src/osgPlugins/gif</li> |
|---|
| 180 | <br> |
|---|
| 181 | The gif plugin depends upon the libungif library, if you don't already |
|---|
| 182 | have it installed, you'll need to download, compile and install it. |
|---|
| 183 | Project home page is: |
|---|
| 184 | <ul> |
|---|
| 185 | <i><a href="http://prtr-13.ucsc.edu/%7Ebadger/software/libungif/">http://prtr-13.ucsc.edu/~badger/software/libungif/</a></i> |
|---|
| 186 | </ul> |
|---|
| 187 | Ftp download at : |
|---|
| 188 | <ul> |
|---|
| 189 | <i><a href="ftp://prtr-13.ucsc.edu/pub/libungif/">ftp://prtr-13.ucsc.edu/pub/libungif/</a></i> |
|---|
| 190 | </ul> |
|---|
| 191 | <br> |
|---|
| 192 | <li> src/osgPlugins/jpeg</li> |
|---|
| 193 | <br> |
|---|
| 194 | The jpeg plugin depends upon the libjpeg library, if you don't already |
|---|
| 195 | have it installed, you'll need to download, compile and install it. |
|---|
| 196 | Project home page is: |
|---|
| 197 | <ul> |
|---|
| 198 | <i><a href="http://www.ijg.org/">http://www.ijg.org/</a></i> |
|---|
| 199 | </ul> |
|---|
| 200 | <br> |
|---|
| 201 | <li> src/osgPlugins/tiff</li> |
|---|
| 202 | <br> |
|---|
| 203 | The tiff plugin depends upon the libtiff library, if you don't already |
|---|
| 204 | have it installed, you'll need to download, compile and install it. |
|---|
| 205 | Project home page is: |
|---|
| 206 | <ul> |
|---|
| 207 | <i><a href="http://www.libtiff.org">http://www.libtiff.org</a></i> |
|---|
| 208 | </ul> |
|---|
| 209 | <br> |
|---|
| 210 | <li> src/osgPlugins/zip</li> |
|---|
| 211 | <br> |
|---|
| 212 | The zip compressed archive plugin depends upon the unzip executable |
|---|
| 213 | being available on your system. If it is not then you'll be able to |
|---|
| 214 | find binaries at: |
|---|
| 215 | <ul> |
|---|
| 216 | <i><a href="http://www.freesoftware.com/pub/infozip/">http://www.freesoftware.com/pub/infozip/</a></i> |
|---|
| 217 | </ul> |
|---|
| 218 | <br> |
|---|
| 219 | <li> src/osgPlugins/tgz</li> |
|---|
| 220 | <br> |
|---|
| 221 | The tgz compressed archive plugin depends upon the unzip executable |
|---|
| 222 | being available on your system. If it is not then you'll be able to |
|---|
| 223 | find binaries at: |
|---|
| 224 | <ul> |
|---|
| 225 | <i><a href="http://www.gzip.org/">http://www.gzip.org/</a></i> <br> |
|---|
| 226 | <a href="ftp://prep.ai.mit.edu/pub/gnu/tar/">ftp://prep.ai.mit.edu/pub/gnu/tar/</a> |
|---|
| 227 | </ul> |
|---|
| 228 | <br> |
|---|
| 229 | <li> src/osgPlugins/osgtgz</li> |
|---|
| 230 | <br> |
|---|
| 231 | Has the same dependencies as the tgz plugin above. |
|---|
| 232 | </ul> |
|---|
| 233 | </ul> |
|---|
| 234 | <br> |
|---|
| 235 | <br> |
|---|
| 236 | </body> |
|---|
| 237 | </html> |
|---|