Hi Cesar,

on a linux machine do:

cd $OSG_OP_OT_ROOT (e.g. "~/OSG_OP_OT-1.1")
cd OpenThreads
make static
cd ../Producer
make static
cd ../OpenSceneGraph
make static

g++ -o YourProgram YourSources.cpp
$OSG_OP_OT_ROOT/OpenSceneGraph/lib/Linux32/Linux32/libosg.a [...]

You may need to link a lot of static libs (osg, osgUtil, osgDB,
osgPlugins/osgdb_XYZ, Producer, OpenThreads) manually but it works.
I can't say anything about doing this on Windows with VC.
Rudi 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cesar Ismael
Mendoza
Sent: Wednesday, September 27, 2006 12:41 PM
To: osg-users@openscenegraph.net
Subject: [osg-users] Static Linking OpenSceneGraph 1.1

Hi all,

I sent out an email about this the other day, but my request got lost in
the rush.  Could someone direct me as to how to compile OSG for static
linking?

Cesar
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to