Mercurial > mxe-octave
comparison doc/index.html @ 647:e62e7f0d2650
new package: openscenegraph (by Martin Lambers)
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Wed, 20 Jan 2010 00:44:12 +0100 |
parents | c90c776f9832 |
children | cd4bb34b43a2 |
comparison
equal
deleted
inserted
replaced
646:43205e8dd3e1 | 647:e62e7f0d2650 |
---|---|
358 </p> | 358 </p> |
359 <pre>make CROSS=<span class="target">i686-pc-mingw32</span>-</pre> | 359 <pre>make CROSS=<span class="target">i686-pc-mingw32</span>-</pre> |
360 <p> | 360 <p> |
361 That's it! | 361 That's it! |
362 </p> | 362 </p> |
363 | |
364 <h3>Step 5d: Cross compile your Project (OSG)</h3> | |
365 | |
366 <p> | |
367 Using static OpenSceneGraph libraries requires a few changes to your source: | |
368 </p> | |
369 <ul> | |
370 <li> | |
371 Define <code>OSG_LIBRARY_STATIC</code> | |
372 </li> | |
373 <li> | |
374 Use the macro | |
375 <code>USE_GRAPHICSWINDOW()</code> | |
376 to explicitly reference your graphics system | |
377 </li> | |
378 <li> | |
379 Use the macro | |
380 <code>USE_OSGPLUGIN(<plugin>)</code> | |
381 to explicitly reference any plugin you might want to use | |
382 </li> | |
383 </ul> | |
384 <p> | |
385 Look at <code>examples/osgstaticviewer/osgstaticviewer.cpp</code> in the | |
386 OpenSceneGraph source distribution for an example. This example can be | |
387 compiled with | |
388 </p> | |
389 <pre>i686-pc-mingw32-g++ -DOSG_LIBRARY_STATIC \ | |
390 -o osgstaticviewer.exe examples/osgstaticviewer/osgstaticviewer.cpp \ | |
391 `i686-pc-mingw32-pkg-config --cflags openscenegraph-osgViewer openscenegraph-osgPlugins` \ | |
392 `i686-pc-mingw32-pkg-config --static --libs openscenegraph-osgViewer openscenegraph-osgPlugins`</pre> | |
363 | 393 |
364 <h3>Further Steps</h3> | 394 <h3>Further Steps</h3> |
365 | 395 |
366 <p> | 396 <p> |
367 If you need further assistance, | 397 If you need further assistance, |