|
楼主 |
发表于 2013-4-23 17:32:21
|
显示全部楼层
liuzhiyu123 发表于 2013-4-23 15:53
完全搞不懂您要做什么了。。。。最终要确定的东西 就是您读取的数据转换为osg场景可渲染的数据 或者 封装 ...
我找到的编译方法
Creating the OSG plugin
Copy FindCityGML.cmake and FindXerces.cmake from libcitygml/CMakeModules to $(OSG_SRC_DIR)/CMakeModules
Copy all files from libcitygml/test/osgplugin/ to $(OSG_SRC_DIR)/src/osgPlugins/citygml
Add the following line to $(OSG_SRC_DIR)/src/osgPlugins/CMakeLists.txt
ADD_SUBDIRECTORY(citygml)
go back to main OpenSceneGraph directory, re-run cmake to generate new makefiles (including the one for the libcitygml plugin), then make and sudo make install. Test by loading a citygml file with osgviewer. It should now open.
Caution: with this method, CityGML files are identified by a .citygml extension. Files with .gml extensions will not load.
试着做了一遍,在编译osg里面没有出现有关citygml的插件让你输入include 或lib 的地方,是不是cmake.list还有哪里需要修改的么 |
|