Anders Backman
2010-03-27 02:00:26 UTC
Anyone tried to build osg 2.8.2 with visual studio 2010?
Seems that there quite some files missing:
#include <iterator>
Lots of errors related to:
back_insert() not part of std::
These are the files where I had to add #include <iterator>
include/osg/NodeTrackerCallback
include/osgGA/NodeTrackerManipulator
src/osg/GraphicsContext.cpp
src/osgDB/DatabasePager.cpp
src/osgPlugins/ive/Text.cpp
src/osgPlugins/ive/Text3D.cpp
src/osgPlugins/osgText/IO_TextBase.cpp
src/osgShadow/ConvexPolyhedron.cpp
src/osgText/String.cpp
src/osgUtil/DelaunayTriangulator.cpp
src/osgUtil/Optimizer.cpp
src/osgUtil/SceneView.cpp
src/osgUtil/Simplifier.cpp
src/osgUtil/TriStripVisitor.cpp
src/osgViewer/View.cpp
Also, something I havent been able to solve, I get an error when I install
OpenThreads, anyone experienced something like this?
Im using VS2010 RC.
3>------ Build started: Project: INSTALL, Configuration: Release Win32
------
3> CMake Error at src/OpenThreads/win32/cmake_install.cmake:50 (FILE):
3> file INSTALL cannot find
3>
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll".
3> Call Stack (most recent call first):
3> src/OpenThreads/cmake_install.cmake:36 (INCLUDE)
3> src/cmake_install.cmake:32 (INCLUDE)
3> cmake_install.cmake:36 (INCLUDE)
3>
3>
3> -- Install configuration: "Release"
3> -- Up-to-date:
C:/projects/agx_dependencies/lib/pkgconfig/openscenegraph.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/pkgconfig/openthreads.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/OpenThreads.lib
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
-DBUILD_TYPE=Release -P cmake_install.cmake
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: :VCEnd" exited with code 1.
========== Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped ==========
/Anders
--
Seems that there quite some files missing:
#include <iterator>
Lots of errors related to:
back_insert() not part of std::
These are the files where I had to add #include <iterator>
include/osg/NodeTrackerCallback
include/osgGA/NodeTrackerManipulator
src/osg/GraphicsContext.cpp
src/osgDB/DatabasePager.cpp
src/osgPlugins/ive/Text.cpp
src/osgPlugins/ive/Text3D.cpp
src/osgPlugins/osgText/IO_TextBase.cpp
src/osgShadow/ConvexPolyhedron.cpp
src/osgText/String.cpp
src/osgUtil/DelaunayTriangulator.cpp
src/osgUtil/Optimizer.cpp
src/osgUtil/SceneView.cpp
src/osgUtil/Simplifier.cpp
src/osgUtil/TriStripVisitor.cpp
src/osgViewer/View.cpp
Also, something I havent been able to solve, I get an error when I install
OpenThreads, anyone experienced something like this?
Im using VS2010 RC.
3>------ Build started: Project: INSTALL, Configuration: Release Win32
------
3> CMake Error at src/OpenThreads/win32/cmake_install.cmake:50 (FILE):
3> file INSTALL cannot find
3>
"C:/projects/agx_dependencies/build/x86/osg/bin/Release/../../bin/ot11-OpenThreads.dll".
3> Call Stack (most recent call first):
3> src/OpenThreads/cmake_install.cmake:36 (INCLUDE)
3> src/cmake_install.cmake:32 (INCLUDE)
3> cmake_install.cmake:36 (INCLUDE)
3>
3>
3> -- Install configuration: "Release"
3> -- Up-to-date:
C:/projects/agx_dependencies/lib/pkgconfig/openscenegraph.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/pkgconfig/openthreads.pc
3> -- Up-to-date: C:/projects/agx_dependencies/lib/OpenThreads.lib
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: The command ""C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
-DBUILD_TYPE=Release -P cmake_install.cmake
3>C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
MSB3073: :VCEnd" exited with code 1.
========== Build: 2 succeeded, 1 failed, 77 up-to-date, 0 skipped ==========
/Anders
--