Hi Robert,attached are two patches to the cmake files and one tweak to Date.cpp to make it compile under Mac OS X.
Cheers and have a good Easter, /ulrich
vpb-patch.tar.gz
Description: GNU Zip compressed data
Index: src/vpb/Date.cpp
===================================================================
--- src/vpb/Date.cpp (revision 904)
+++ src/vpb/Date.cpp (working copy)
@@ -17,6 +17,10 @@
#include <time.h>
+// for struct stat
+#include <sys/types.h>
+#include <sys/stat.h>
+
using namespace vpb;
bool Date::setWithDateOfLastModification(const std::string& filename)
Index: src/vpb/CMakeLists.txt
===================================================================
--- src/vpb/CMakeLists.txt (revision 904)
+++ src/vpb/CMakeLists.txt (working copy)
@@ -79,7 +79,7 @@
LINK_EXTERNAL(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIBRARY}
${GDAL_LIBRARY})
ENDIF(WIN32)
-LINK_WITH_VARIABLES(${LIB_NAME} OSG_LIBRARY OSGUTIL_LIBRARY OSGSIM_LIBRARY
OSGTERRAIN_LIBRARY OSGDB_LIBRARY OSGFX_LIBRARY OSGVIEWER_LIBRARY
OPENTHREADS_LIBRARY)
+LINK_WITH_VARIABLES(${LIB_NAME} OSG_LIBRARY OSGUTIL_LIBRARY OSGSIM_LIBRARY
OSGTERRAIN_LIBRARY OSGDB_LIBRARY OSGFX_LIBRARY OSGVIEWER_LIBRARY
OSGTEXT_LIBRARY OSGGA_LIBRARY OPENTHREADS_LIBRARY)
LINK_CORELIB_DEFAULT(${LIB_NAME} ${CMAKE_THREAD_LIBS_INIT} ${MATH_LIBRARY} )
INCLUDE(ModuleInstall OPTIONAL)
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 904)
+++ CMakeLists.txt (working copy)
@@ -220,7 +220,7 @@
# This needs to be run very last so other parts of the scripts can take
# advantage of this.
IF(NOT VPB_CONFIG_HAS_BEEN_RUN_BEFORE)
- SET(VOB_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether
this is the first time running CMake or if CMake has been configured before")
+ SET(VPB_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether
this is the first time running CMake or if CMake has been configured before")
ENDIF(NOT VPB_CONFIG_HAS_BEEN_RUN_BEFORE)
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
