-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Kelso wrote:
> I'm trying to write some Makefiles to build OSG programs.  I'd like to
> handle non-standard installation locations of OSG.  Is there an envvar
> like OSGROOT, or an OSG equivalent to PRODUCER_INC_DIR/PRODUCER_LIB_DIR
> that I can use so my Makefiles can find the OSG libs and include files?

Typically the onus is on the program compiling against the library to
find the library if it is installed in a non-standard place (somewhere
other than /usr).  The best way to do this is to make your build tool
configure your build to compile or link against the version of OSG you want.

The GNU Autotools provide a nice way to solve this problem with the
- --with-package=/path/to/blah option.

If all you're using is GNU Make though you could use an environment
variable which if it's not set uses some sane default and if it is set
uses the path specified (although I wouldn't recommend this, a script as
someone else pointed out is probably the most user-friendly way to solve
this problem).

http://www.gnu.org/software/make/manual/make.html#Conditionals

- --
Philip Lowman
Simulation Development Engineer, Modeling and Simulation Technology
General Dynamics Land Systems
http://www.gdls.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3rc1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE/l6ee0tOktX6RKkRAj+lAJ4vTHH6qMn5bD+HH5i+NjT0ARasFACfYU4F
slx/37/dSdeT1fD4PSLJnfU=
=8zHI
-----END PGP SIGNATURE-----
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to