Hi Robert,
Sorry, I thought it would have been clear from my first e-mail. I'll try
again.
FileUtils.cpp in osgDB has this code.
static void appendInstallationLibraryFilePaths(osgDB::FilePathList&
filepath)
{
#ifdef OSG_DEFAULT_LIBRARY_PATH
// Append the install prefix path to the library search path if
configured
filepath.push_back(ADDQUOTES(OSG_DEFAULT_LIBRARY_PATH));
#endif
}
osgDB's CMakeLists.txt has this line:
ADD_DEFINITIONS(-DOSG_DEFAULT_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib${LIB_POSTFIX}/${OSG_PLUGINS})
This means that the install path configured at build time will be
searched for plugins. This does not make sense for prebuilt binaries
because the install location will likely be different on different
machines. I propose removing the function
appendInstallationLibraryFilePaths, and also the line in CMakeLists
since it is only this function that makes use of it.
Mark
Robert Osfield wrote:
On Mon, Mar 23, 2009 at 7:37 PM, Mark Sciabica <msciab...@itracs.com
<mailto:msciab...@itracs.com>> wrote:
Thanks for the reply. I'll be upgrade CMake for my next build of
OSG. But do you have any comment on the final paragraph of my
e-mail? Embedding the install path configured when OSG is built
only makes sense if OSG is not distributed in binary form.
You'll need to be far more specific about what you are talking about
for me to comment.
Robert.
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org