查看: 2527|回复: 1

SVN上下载的最新的OSG编译出错

[复制链接]

该用户从未签到

发表于 2012-12-30 11:48:27 | 显示全部楼层 |阅读模式
SVN上下载的最新的OSG编译出错,看了下是插件 Plugins ogr 有点问题,有哪个大神遇到过吗?
------ 已启动生成: 项目: Plugins ogr, 配置: Release Win32 ------
     正在创建库 J:/osgnewset/OpenSceneGraph/vs2010/lib/osgPlugins-3.1.4/osgdb_ogr.lib 和对

象 J:/osgnewset/OpenSceneGraph/vs2010/lib/osgPlugins-3.1.4/osgdb_ogr.exp
ReaderWriterOGR.obj : error LNK2001: 无法解析的外部符号 "public: virtual char * __thiscall

OGRGeometry::exportToGML(void)const " (?exportToGML@OGRGeometry@@UBEPADXZ)
ReaderWriterOGR.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall

OGRPolygon::Centroid(class OGRPoint *)const " (?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z)
J:\osgnewset\OpenSceneGraph\vs2010\bin\osgPlugins-3.1.4\osgdb_ogr.dll : fatal error

LNK1120: 2 个无法解析的外部命令
------ 已启动生成: 项目: Plugins ogr, 配置: Debug Win32 ------
     正在创建库 J:/osgnewset/OpenSceneGraph/vs2010/lib/osgPlugins-3.1.4/osgdb_ogrd.lib 和对

象 J:/osgnewset/OpenSceneGraph/vs2010/lib/osgPlugins-3.1.4/osgdb_ogrd.exp
ReaderWriterOGR.obj : error LNK2001: 无法解析的外部符号 "public: virtual char * __thiscall

OGRGeometry::exportToGML(void)const " (?exportToGML@OGRGeometry@@UBEPADXZ)
ReaderWriterOGR.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall

OGRPolygon::Centroid(class OGRPoint *)const " (?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z)
J:\osgnewset\OpenSceneGraph\vs2010\bin\osgPlugins-3.1.4\osgdb_ogrd.dll : fatal error

LNK1120: 2 个无法解析的外部命令
------ 已启动生成: 项目: Plugins osg deprecated osg, 配置: Release Win32 ------
  AlphaFunc.cpp
  AnimationPath.cpp
  AutoTransform.cpp
  Billboard.cpp
  BlendColor.cpp
  BlendEquation.cpp
  BlendFunc.cpp
  Box.cpp
  Camera.cpp
  CameraView.cpp
  Capsule.cpp
  ClearNode.cpp
  ClipNode.cpp
  ClipPlane.cpp
  ClusterCullingCallback.cpp
  ColorMask.cpp
  ColorMatrix.cpp
  CompositeShape.cpp
  Cone.cpp
  ConvexPlanarOccluder.cpp
  正在生成代码...
  正在编译...
  CoordinateSystemNode.cpp
  CullFace.cpp
  Cylinder.cpp
  Depth.cpp
  Drawable.cpp
  EllipsoidModel.cpp
  Fog.cpp
  FragmentProgram.cpp
  FrontFace.cpp
  Geode.cpp
  Geometry.cpp
  Group.cpp
  HeightField.cpp
  Image.cpp
  ImageSequence.cpp
  LibraryWrapper.cpp
  Light.cpp
  LightModel.cpp
  LightSource.cpp
  LineStipple.cpp
  正在生成代码...
  正在编译...
  LineWidth.cpp
  LOD.cpp
  Material.cpp
  Matrix.cpp
  MatrixTransform.cpp
  Node.cpp
  NodeCallback.cpp
  Object.cpp
  OccluderNode.cpp
  OcclusionQueryNode.cpp
  PagedLOD.cpp
  Point.cpp
  PointSprite.cpp
  PolygonMode.cpp
  PolygonOffset.cpp
  PositionAttitudeTransform.cpp
  Program.cpp
  Projection.cpp
  ProxyNode.cpp
  Scissor.cpp
  正在生成代码...
  正在编译...
  Sequence.cpp
  ShadeModel.cpp
  Shader.cpp
  ShapeDrawable.cpp
  Sphere.cpp
  StateAttribute.cpp
  StateSet.cpp
  Stencil.cpp
  Switch.cpp
  TessellationHints.cpp
  TexEnv.cpp
  TexEnvCombine.cpp
  TexEnvFilter.cpp
  TexGen.cpp
  TexGenNode.cpp
  TexMat.cpp
  Texture.cpp
  Texture1D.cpp
  Texture2D.cpp
  Texture3D.cpp
  正在生成代码...
  正在编译...
  TextureCubeMap.cpp
  TextureRectangle.cpp
  TransferFunction.cpp
  Transform.cpp
  Uniform.cpp
  VertexProgram.cpp
  Viewport.cpp
  正在生成代码...
  osgdb_deprecated_osg.vcxproj -> J:\osgnewset\OpenSceneGraph\vs2010\bin\osgPlugins-

3.1.4\osgdb_deprecated_osg.dll
------ 已启动生成: 项目: Plugins ac, 配置: Release Win32 ------
  Building Custom Rule J:/osgnewset/OpenSceneGraph/src/osgPlugins/ac/CMakeLists.txt
  CMake does not need to re-run because J:\osgnewset\OpenSceneGraph\vs2010\src\osgPlugins

\ac\CMakeFiles\generate.stamp is up-to-date.
  Exception.cpp
  Geode.cpp
  ac3d.cpp
  正在生成代码...
  osgdb_ac.vcxproj -> J:\osgnewset\OpenSceneGraph\vs2010\bin\osgPlugins-3.1.4\osgdb_ac.dll
------ 已启动生成: 项目: Plugins ac, 配置: Debug Win32 ------
  Building Custom Rule J:/osgnewset/OpenSceneGraph/src/osgPlugins/ac/CMakeLists.txt
  CMake does not need to re-run because J:\osgnewset\OpenSceneGraph\vs2010\src\osgPlugins

\ac\CMakeFiles\generate.stamp is up-to-date.
  Exception.cpp
  Geode.cpp
  ac3d.cpp
  正在生成代码...
  osgdb_ac.vcxproj -> J:\osgnewset\OpenSceneGraph\vs2010\bin\osgPlugins-3.1.4\osgdb_acd.dll
------ 已启动生成: 项目: Plugins x, 配置: Release Win32 ------
  Building Custom Rule J:/osgnewset/OpenSceneGraph/src/osgPlugins/x/CMakeLists.txt
  CMake does not need to re-run because J:\osgnewset\OpenSceneGraph\vs2010\src\osgPlugins

\x\CMakeFiles\generate.stamp is up-to-date.
  ReaderWriterDirectX.cpp
  directx.cpp
  mesh.cpp
  types.cpp
  正在生成代码...
  osgdb_x.vcxproj -> J:\osgnewset\OpenSceneGraph\vs2010\bin\osgPlugins-3.1.4\osgdb_x.dll
------ 已启动生成: 项目: Plugins x, 配置: Debug Win32 ------
  Building Custom Rule J:/osgnewset/OpenSceneGraph/src/osgPlugins/x/CMakeLists.txt
  CMake does not need to re-run because J:\osgnewset\OpenSceneGraph\vs2010\src\osgPlugins

\x\CMakeFiles\generate.stamp is up-to-date.
  ReaderWriterDirectX.cpp
  directx.cpp
  mesh.cpp
  types.cpp
  正在生成代码...
  osgdb_x.vcxproj -> J:\osgnewset\OpenSceneGraph\vs2010\bin\osgPlugins-3.1.4\osgdb_xd.dll
------ 已启动生成: 项目: Examples osgreflect, 配置: Debug Win32 ------
  osgreflect.cpp
  example_osgreflect.vcxproj -> J:\osgnewset\OpenSceneGraph\vs2010\bin\osgreflectd.exe
========== 生成: 成功 10 个,失败 2 个,最新 518 个,跳过 0 个 =====
错误:
@@@@@@@@@@@@@@@@@@@@
错误        2        error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall

OGRPolygon::Centroid(class OGRPoint *)const " (?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z)       

J:\osgnewset\OpenSceneGraph\vs2010\src\osgPlugins\ogr\ReaderWriterOGR.obj        Plugins ogr
错误        5        error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall

OGRPolygon::Centroid(class OGRPoint *)const " (?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z)       

J:\osgnewset\OpenSceneGraph\vs2010\src\osgPlugins\ogr\ReaderWriterOGR.obj        Plugins ogr
错误        1        error LNK2001: 无法解析的外部符号 "public: virtual char * __thiscall

OGRGeometry::exportToGML(void)const " (?exportToGML@OGRGeometry@@UBEPADXZ)        J:

\osgnewset\OpenSceneGraph\vs2010\src\osgPlugins\ogr\ReaderWriterOGR.obj        Plugins ogr
错误        4        error LNK2001: 无法解析的外部符号 "public: virtual char * __thiscall

OGRGeometry::exportToGML(void)const " (?exportToGML@OGRGeometry@@UBEPADXZ)        J:

\osgnewset\OpenSceneGraph\vs2010\src\osgPlugins\ogr\ReaderWriterOGR.obj        Plugins ogr
错误        3        error LNK1120: 2 个无法解析的外部命令        J:\osgnewset\OpenSceneGraph

\vs2010\bin\osgPlugins-3.1.4\osgdb_ogr.dll        Plugins ogr
错误        6        error LNK1120: 2 个无法解析的外部命令        J:\osgnewset\OpenSceneGraph

\vs2010\bin\osgPlugins-3.1.4\osgdb_ogrd.dll        Plugins ogr

该用户从未签到

发表于 2013-1-4 09:29:01 | 显示全部楼层
您用的gdal库貌似有问题?或者版本太古老了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表