We had somehow similar plroblem with VS 2005 and so are stuck on to 2003.
Try to patch toplevel OSG cmakelists with the patch included
then when you install, it should put release runtime libs in install/bin
(under vs7 are msvcr71.dll msvcp71.dll mfc71.dll)

hope it helps


Geoff ha scritto:
Ok, I am having a problem creating a stand alone DLL that wraps some
functionality of OpenSceneGraph so that I can use it via COM in my
CodeGear C++ Builder app.

I have created the dll, and have been successful in using it on my
development machine, but only in debug mode and only on that machine.

My question is, is there a proper way to create a DLL in Visual Studio
2005, using C++, and encapsulating it so that it can be deployed onto
other machines? Any help would be greatly appretiated as I have
exhausted my knowledge and the deadline is fast approaching.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt      (revision 9070)
+++ CMakeLists.txt      (working copy)
@@ -229,6 +229,11 @@
                 SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "/debug /INCREMENTAL:NO")
             ENDIF(NOT OSG_MSVC_DEBUG_INCREMENTAL_LINK)
         ENDIF(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 
4 AND ${CMAKE_PATCH_VERSION} LESS 7)
+        IF(EXISTS "${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake")
+                       SET(CMAKE_INSTALL_MFC_LIBRARIES 1)
+                       INCLUDE(InstallRequiredSystemLibraries)
+                 ENDIF(EXISTS 
"${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake")
+
     ENDIF(MSVC)
 ENDIF(WIN32)
 
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to