Hi,

I am having trouble compiling OSG trunk after doing svn update:

% svn update
At revision 8909.
...
[ 14%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/FileUtils.o
/home/john/external.el4/OpenSceneGraph/trunk/src/osgDB/FileUtils.cpp: In function `void appendInstallationLibraryFilePaths(osgDB::FilePathList&)': /home/john/external.el4/OpenSceneGraph/trunk/src/osgDB/FileUtils.cpp:371: error: expected primary-expression before '/' token /home/john/external.el4/OpenSceneGraph/trunk/src/osgDB/FileUtils.cpp:371: error: `usr' was not declared in this scope /home/john/external.el4/OpenSceneGraph/trunk/src/osgDB/FileUtils.cpp:371: error: `local' was not declared in this scope /home/john/external.el4/OpenSceneGraph/trunk/src/osgDB/FileUtils.cpp:371: error: `lib64' was not declared in this scope /home/john/external.el4/OpenSceneGraph/trunk/src/osgDB/FileUtils.cpp:371: error: `osgPlugins' was not declared in this scope /home/john/external.el4/OpenSceneGraph/trunk/src/osgDB/FileUtils.cpp:371:24: too many decimal points in number
make[2]: *** [src/osgDB/CMakeFiles/osgDB.dir/FileUtils.o] Error 1
make[1]: *** [src/osgDB/CMakeFiles/osgDB.dir/all] Error 2
make: *** [all] Error 2
Exit 2

The problem seems to be that the string contained by OSG_DEFAULT_LIBRARY_PATH is not limited by quotation marks:

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(OSG_DEFAULT_LIBRARY_PATH);   <---- Line 371
#endif
}


Best regards,
John


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to