summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-01-19 23:44:12 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-01-19 23:44:12 (GMT)
commitca29f29a20aed53b0bccb8c8d042d3e62904f3a3 (patch)
treea0841a4635270c402b25bbee99c7d7cc90095540 /doc
parent6b869dd904927bde57d6acdf1ebdeebe2da9584c (diff)
downloadmxe-ca29f29a20aed53b0bccb8c8d042d3e62904f3a3.zip
mxe-ca29f29a20aed53b0bccb8c8d042d3e62904f3a3.tar.gz
mxe-ca29f29a20aed53b0bccb8c8d042d3e62904f3a3.tar.bz2
new package: openscenegraph (by Martin Lambers)
Diffstat (limited to 'doc')
-rw-r--r--doc/index.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/index.html b/doc/index.html
index f9db6be..ae70dd6 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -361,6 +361,36 @@ AR=$(CROSS)ar</pre>
That's it!
</p>
+ <h3>Step 5d: Cross compile your Project (OSG)</h3>
+
+ <p>
+ Using static OpenSceneGraph libraries requires a few changes to your source:
+ </p>
+ <ul>
+ <li>
+ Define <code>OSG_LIBRARY_STATIC</code>
+ </li>
+ <li>
+ Use the macro
+ <code>USE_GRAPHICSWINDOW()</code>
+ to explicitly reference your graphics system
+ </li>
+ <li>
+ Use the macro
+ <code>USE_OSGPLUGIN(&lt;plugin&gt;)</code>
+ to explicitly reference any plugin you might want to use
+ </li>
+ </ul>
+ <p>
+ Look at <code>examples/osgstaticviewer/osgstaticviewer.cpp</code> in the
+ OpenSceneGraph source distribution for an example. This example can be
+ compiled with
+ </p>
+ <pre>i686-pc-mingw32-g++ -DOSG_LIBRARY_STATIC \
+ -o osgstaticviewer.exe examples/osgstaticviewer/osgstaticviewer.cpp \
+ `i686-pc-mingw32-pkg-config --cflags openscenegraph-osgViewer openscenegraph-osgPlugins` \
+ `i686-pc-mingw32-pkg-config --static --libs openscenegraph-osgViewer openscenegraph-osgPlugins`</pre>
+
<h3>Further Steps</h3>
<p>