当前位置:网站首页>OpenSceneGraph3.5.1编译
OpenSceneGraph3.5.1编译
2022-08-09 01:05:00 【妙为】
OSG系列文章目录
前言
1.git(不是必须)使用git得到的[源码下载]
2.osg3.5.1源码(osg3.5.1源码下载地址)是3.5.1版本的
3.osg依赖的三方库3rdParty
上面一个是full,一个是small,随便选一个,我这里选的full
small和full最大区别:感觉full多了boost库
4.osg依赖的数据:OpenSceneGraph-Data-3.4.0.zip
5.CMake下载,我这里用的3.21.4版本
6.vs2019(VS017也可以)
我这里用的vs2019
一、使用cmake 编译osg3.5.1
cmake报错:
CMake Deprecation Warning at CMakeLists.txt:7 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at CMakeLists.txt:38 (cmake_policy):
The OLD behavior for policy CMP0008 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:45 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
大概意思:
1.cmake最小版本需要2.8.12,否则有些特性将忽略
解决:打开OpenSceneGraph-OpenSceneGraph-3.5.1文件夹下的CMakeLists.txt
加入:cmake_minimum_required (VERSION 3.21.4)
2.缺少gdal_i.lib、gif.lib、libxml2.lib
下载OpenSceneGraph-Data-3.4.0.zip并解压到OpenSceneGraph-OpenSceneGraph-3.5.1同级目录
2.编译OpenSceneGraph.sln
3. 生成lib和dll
4.注意
在生成debug版本的时候,没有出错,但是在生成release版本的时候报错了:
解决方法
1.找到Plugins osg deprecated osgviewer工程
边栏推荐
猜你喜欢
在Ubuntu/Linux环境下使用MySQL:修改数据库sql_mode,可解决“this is incompatible with sql_mode=only_full_group_by”问题
4-2 Matplotlib库 基本使用(绘制折线图)
5-5 Seaborn库FacetGrid结构图
全新Swagger3.0教程,OAS3快速配置指南,实现API接口文档自动化!
入门数据库Days6
【学习-目标检测】目标检测之——YOLO v3
【C语言刷题】链表中快慢指针的应用
Non-major graduates, five-faced Ali: Four rounds of technical + HR have already taken an offer
睿智的目标检测61——Tensorflow2 Focal loss详解与在YoloV4当中的实现
ICMP差错报告报文数据字段
随机推荐
【学习-目标检测】目标检测之—FPN+Cascade+Libra
js 实现数字跳动
【元胞自动机】基于元胞自动机模拟社会力因素下的灾害人员疏散应急仿真附matlab代码
生成一系列随机字符串的文件
《Go语言学习:基本变量与类型》
【科研-学习-pytorch】7-梯度、激活函数和loss
Sencha Touch页面跳转创建返回上一级按钮的设计思路
CondConv--动态卷积思想
jetson nano 开机闪一下然后黑屏
【Fiddler】Fiddler实现mock测试(模拟接口数据)
JSON basics, transfer JSON data, and introduce four mainstream frameworks, jackson, gson, fastjson, and json-lib!
momerymap mmap 存储映射I/O
微信企业号开发之获取公共域名
【图像增强】基于Step和Polynomial 滤波实现图像增强附matlab代码
观察者模式
远程控制项目遇到的bug
轻量级网络ESPNet系列 空洞卷积简介
4-10 Matplotlib 多图布局
在Ubuntu/Linux环境下使用MySQL:解决com.mysql.jdbc.PacketTooBigException: Packet for query is too large的问题
在Ubuntu/Linux环境下使用MySQL:修改数据库sql_mode,可解决“this is incompatible with sql_mode=only_full_group_by”问题