I had some problems building vpb under vs 7.1, some seems related to some linkage missing and one starnge compile problem (needed symbol)

here is the patch I' m currently using
I did test this with 2-3 wekks ago svn not really the latest one.
If some cna help you, I can send to submission

(these are extracted with tortoise patch command)

Hope it helps

Luigi

Paul Martz wrote:

I've just checked and the required methods do exist in osgTerrain.
Could it be that osgTerrain and osgDB aren't being linked in during debug build for some reason? Could it be that OSG was not built with debug? Perhaps the VPB's Cmake cache needs updating against the debug version of OSG.

The Debug build isn't linking against these libraries, for some reason. The
release build does.

If no one else is running into this, I'll just disregard it -- I don't
really need to run debug VPB.
  -Paul

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



Index: applications/osgdem/CMakeLists.txt
===================================================================
--- applications/osgdem/CMakeLists.txt  (revision 914)
+++ applications/osgdem/CMakeLists.txt  (working copy)
@@ -1,7 +1,7 @@
 #this file is automatically generated 
 
 INCLUDE_DIRECTORIES( ${GDAL_INCLUDE_DIR} ${OSG_INCLUDE_DIR} )
-SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGVIEWER_LIBRARY )
+SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGDB_LIBRARY 
OSGVIEWER_LIBRARY OSGTERRAIN_LIBRARY)
 
 SET(TARGET_SRC osgdem.cpp )
 
Index: applications/vpbcache/CMakeLists.txt
===================================================================
--- applications/vpbcache/CMakeLists.txt        (revision 914)
+++ applications/vpbcache/CMakeLists.txt        (working copy)
@@ -1,7 +1,7 @@
 #this file is automatically generated 
 
 INCLUDE_DIRECTORIES( ${GDAL_INCLUDE_DIR} ${OSG_INCLUDE_DIR} )
-SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGVIEWER_LIBRARY )
+SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGDB_LIBRARY 
OSGVIEWER_LIBRARY OSGTERRAIN_LIBRARY)
 
 SET(TARGET_SRC vpbcache.cpp )
 
Index: applications/vpbextrusion/CMakeLists.txt
===================================================================
--- applications/vpbextrusion/CMakeLists.txt    (revision 914)
+++ applications/vpbextrusion/CMakeLists.txt    (working copy)
@@ -1,7 +1,7 @@
 #this file is automatically generated 
 
 INCLUDE_DIRECTORIES( ${GDAL_INCLUDE_DIR} ${OSG_INCLUDE_DIR} )
-SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGTERRAIN_LIBRARY 
OSGGA_LIBRARY OSGVIEWER_LIBRARY )
+SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGDB_LIBRARY 
OSGTERRAIN_LIBRARY OSGGA_LIBRARY OSGUTIL_LIBRARY OSGVIEWER_LIBRARY )
 
 SET(TARGET_SRC vpbextrusion.cpp)
 
Index: applications/vpbheightfieldmapping/CMakeLists.txt
===================================================================
--- applications/vpbheightfieldmapping/CMakeLists.txt   (revision 914)
+++ applications/vpbheightfieldmapping/CMakeLists.txt   (working copy)
@@ -1,7 +1,7 @@
 #this file is automatically generated 
 
 INCLUDE_DIRECTORIES( ${GDAL_INCLUDE_DIR} ${OSG_INCLUDE_DIR} )
-SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGTERRAIN_LIBRARY 
OSGGA_LIBRARY OSGVIEWER_LIBRARY )
+SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGDB_LIBRARY 
OSGTERRAIN_LIBRARY OSGGA_LIBRARY OSGUTIL_LIBRARY OSGVIEWER_LIBRARY )
 
 SET(TARGET_SRC vpbheightfieldmapping.cpp)
 
Index: applications/vpbinfo/CMakeLists.txt
===================================================================
--- applications/vpbinfo/CMakeLists.txt (revision 914)
+++ applications/vpbinfo/CMakeLists.txt (working copy)
@@ -1,7 +1,7 @@
 #this file is automatically generated 
 
 INCLUDE_DIRECTORIES( ${GDAL_INCLUDE_DIR} ${OSG_INCLUDE_DIR} )
-SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OSG_LIBRARY OSGTERRAIN_LIBRARY 
OSGVIEWER_LIBRARY )
+SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY OPENTHREADS_LIBRARY OSG_LIBRARY 
OSGTERRAIN_LIBRARY OSGVIEWER_LIBRARY )
 
 SET(TARGET_SRC vpbinfo.cpp )
 
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt      (revision 914)
+++ CMakeLists.txt      (working copy)
@@ -122,6 +122,10 @@
 IF(NOT DEFINED LIB_POSTFIX)
     SET(LIB_POSTFIX "")
 ENDIF(NOT DEFINED LIB_POSTFIX)
+
+IF(MSVC)
+       ADD_DEFINITIONS(-Dvsnprintf=_vsnprintf)
+ENDIF(MSVC)    
     
 #SET(OUTPUT_BINDIR ${PROJECT_BINARY_DIR}/bin/${CMAKE_SYSTEM_NAME})
 SET(OUTPUT_BINDIR ${PROJECT_BINARY_DIR}/bin)
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to