码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • OpenSceneGraph3.5.1编译


    OSG系列文章目录

    文章目录

    • OSG系列文章目录
    • 前言
    • 一、使用cmake 编译osg3.5.1
    • 2.编译OpenSceneGraph.sln
    • 3. 生成lib和dll
    • 4.注意

    前言

    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工程

    在这里插入图片描述

  • 相关阅读:
    SAP 内表数据转换为JSON格式
    第四篇:精通Docker构建:Dockerfile的艺术与策略
    方形平板振动克拉尼图形可视化计算MATLAB程序(Chladni Patterns)
    撸完这个springboot项目,我对boot轻车熟路!【源码+视频都开源】【强烈建议收藏】
    MATLAB算法实战应用案例精讲-【优化算法】小龙虾优化算法(COA)(附MATLAB代码实现)
    Leetcode79单词搜索
    阿里妈妈API接口;item_search - 按关键字或网址搜索商品
    使用Eclipse maven创建spring boot应用程序
    ArcMap时间滑块绘制遥感影像的动态变化过程
    个人网站建设方案书
  • 原文地址:https://blog.csdn.net/aoxuestudy/article/details/126195749
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号