osg和osgearth编译

更新时间:2023-10-19 23:47:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

Ubuntu12.04下osg,osgearth编译全步骤

1. 安装文件夹拷贝到/home目录下

2. su -命令切换到root,然后检测Linux环境是否是Linux64位

3. 检测ffmpeg是否存在,若存在则移除ffmpeg

4. 检测QT是否存在,若存在则移除QT

删除QT

5. 更新源和直接用命令安装其他依赖的软件

更新源: apt-get update -y

apt-get upgrade -y

安装依赖软件: apt-get install gcc –y

apt-get install g++ -y

apt-get install yasm–y

apt-get install cmake–y

apt-get install cmake-gui–y

apt-get install curses-gui–y

apt-get install cmake-curses-gui–y

apt-get build-depopenscenegraph–y

apt-get install libboost1.48-all-dev –y

apt-get install gtk-2.0 –y

apt-get install libgtkglext1-dev –y

6. 修复boost头文件位置

cp–r /usr/include/boost /usr/local/include/

7. 安装QT

进入qt安装包所在目录,开始安装

配置环境变量:

(1)gedit/etc/profile 打开配置文件,在末尾中添加:

OSG_FILE_PATH=/home/GeoVisEnvironmentUbuntu/osg/OpenSceneGraph-Data-3.0.0 QTDIR=/opt/Qt5.4.0/5.4/gcc_64

PATH=/opt/Qt5.4.0/Tools/QtCreator/bin:$QTDIR/bin:$PATH export OSG_FILE_PATH export QTDIR export PATH

(2)gedit/etc/ld.so.conf.d/libc.conf,在末尾添加:

本文来源:https://www.bwwdw.com/article/iuwf.html

Top