如何配置osg编译使支持png图标加载显示

步骤如下:

1.下载osg代码

git clone https://github.com/openscenegraph/OpenSceneGraph.git

cd OpenSceneGraph

2.开始配置编译

mkdir build

cd build

cmake ... -DBUILD_OSG_PLUGINS_BY_DEFAULT=1 -DBUILD_OSG_PLUGIN_PNG=1

3.编译与安装

make

make install

4.在安装目录查看存在osgdb_png.so

/usr/local/lib/osgPlugins-3.7.0/osgdb_png.so

5.存在的话就可以正常加载placenode图标显示了。

相关推荐
扶尔魔ocy9 天前
【qt openGL入门笔记】OSG实现飞机模型在网格图上飞行并进行态势标绘(四)
qt·opengl·osg
扶尔魔ocy11 天前
【qt openGL入门笔记】OSG实现显示飞机模型飞行的点迹(二)
qt·opengl·osg
扶尔魔ocy11 天前
【qt openGL入门笔记】OSG实现飞机模型在网格图上飞行(三)
opengl·osg
扶尔魔ocy12 天前
【qt openGL入门笔记】OSG实现飞机模型在网格图上飞行
qt·opengl·osg
Being--2 个月前
搭建OsgEarth验证GIS数据发布服务的Agent
gis·agent·osgearth·ai落地
directx3d_beginner8 个月前
10,cookbook的lod示例
osg
directx3d_beginner8 个月前
8,将0级简模文件和精模文件同时放入pagedlod
osg
directx3d_beginner8 个月前
9,0级建模文件和0级精模文件写成根节点
osg
directx3d_beginner8 个月前
5,保存4个一级节点
osg
directx3d_beginner8 个月前
1, pagedlod和lod
osg