查看: 3884|回复: 5

新人求助:osgDotNet编译问题~

[复制链接]

该用户从未签到

发表于 2010-6-17 03:57:21 | 显示全部楼层 |阅读模式
最近在做一个三维显示和重构项目,这是一个osgDotNet下实现的读取高度图生成地形的简单例子。



一直用的是以前网上下载的osgDotNet的一老版本的库,苦于少了osgDB.net.dll库文件,最近想实现加载模型的功能遇到了麻烦~自己尝试着编译下载的osgDotNet-generator-0.8.1文件一直没能成功,在此希望广大兄弟们指点一二~或者有编译过的能否留个联系方式。谢谢~

该用户从未签到

 楼主| 发表于 2010-6-17 07:47:56 | 显示全部楼层
1# feiliang
下面是它的快速安装帮助:
Quick Setup
-----------
Steps to Build and Run the Code Generator
   1. Set environment variable OPENSCENEGRAPH_X86_DIR to the location of
   your OpenSceneGraph x86 install directory. This is the same directory
   as CMAKE_INSTALL_PREFIX when building with CMake's "Visual Studio 8
   2005" generated build system.
   2. (Optional) If x64 wrappers are desired, also set the
   OPENSCENEGRAPH_X64_DIR to the location of your OpenSceneGraph x64
   install directory. This is the same directory as CMAKE_INSTALL_PREFIX
   when building with CMake's "Visual Studio 8 2005 Win64" generated
   build system.
   3. Run Visual Studio, open Generator.sln and build.
   4. In the Visual Studio project settings under Debugging, add the
   OPENSCENEGRAPH_X86_DIR to the execution path by setting the
   Environment string to
      PATH=$(OPENSCENEGRAPH_X86_DIR)\bin;$(PATH)
   5. Run the executable via Debug > Start Without Debugging.
Steps to Build the Wrappers
   1. Open the generated solution file in output\x86-build\OsgDotNet.sln
   (or output\x64-build\OsgDotNet.sln for x64).
   2. Select the Debug or Release configuration and build the
   solution. The wrapper assemblies (for x86) are output to the debug
   and release subdirectories of output\x86-build\bin.
到第五步Debug > Start Without Debugging时弹出错误如下:

该用户从未签到

 楼主| 发表于 2010-6-17 07:53:21 | 显示全部楼层
2# feiliang
补充:不知道什么原因,官网下载的osgDotNet-x64-2.0.0-0.8.1库与下载的OpenSceneGraph-2.0的库不匹配,估计是版本的问题。所以才不得以自己编译,期待有高手帮忙~

该用户从未签到

发表于 2010-6-17 09:50:34 | 显示全部楼层
请不要重复发帖,此外我看不到您的图

该用户从未签到

 楼主| 发表于 2010-6-17 23:25:36 | 显示全部楼层
4# array
首先,对Array说声对不起~因为之前那个帖子感觉问题没说明白~目前问题已经解决,谢谢osgchina的兄弟们~还是想说,.Net下开发osg程序应该还是会有一定的可行性和价值的!加油。。。

该用户从未签到

发表于 2010-6-18 08:38:49 | 显示全部楼层
目前问题已经解决,谢谢osgchina的兄弟们
那么您能否把自己的解决方案介绍一下呢?这样才可以形成良性的交流氛围~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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