当前位置: 首页 > news >正文

win10 + cmake3.17 编译 giflib5.2.1

所有源文件已经打包上传csdn,大家可自行下载。


1. 下载giflib5.2.1,解压。

        下载地址:GIFLIB - Browse Files at SourceForge.net

2. 下载CMakeLists.txt 及其他依赖的文件

从github上的osg-3rdparty-cmake项目:

https://github.com/bjornblissing/osg-3rdparty-cmake/tree/master/giflib

下载giflib文件夹下的文件:

以上5个文件都要下载。或者可以下载整个项目的所有代码,然后取出对应这部分的代码。

下载以上5个文件后,拷贝到步骤1下载的giflib的源码目录中。

3. 修改CMakeLists.txt

用notepad++打开CMakeLists.txt,只需要在顶部添加一行代码即可:

set(GIFLIB_SOURCE_DIR "./")

4. 开始常规的cmake-gui编译流程(以下引自github: osg-3rdparty-cmake)

  1. Download the CMake scripts from this repository.
  2. Download the source for the dependencies you would like to use from their respective location as specified below.
  3. Start the CMake GUI and select the directory with the CMake scripts as your source directory. Use any desired output directory as binary directory.
  4. Press Configure inside the CMake GUI.
  5. Fill in the location of the downloaded sources of your desired dependencies and press "Configure" again. Repeat until there is no more errors and warnings in CMake.
  6. Press Generate inside the CMake GUI. This will generate solution file inside your binary directory.
  7. Open the solution file in your IDE.
  8. Build the ALL_BUILD project for both debug and release.
  9. Build the INSTALL project for both debug and release.

 5. 完毕

6. 编译结果

7. 编译结果下载

https://download.csdn.net/download/Strive_For_Future/88504621

http://www.lryc.cn/news/219321.html

相关文章:

  • 【rust/esp32】初识slint ui框架并在st7789 lcd上显示
  • 精通Nginx(05)-http工作机制、指令和内置变量
  • 用于 GaN-HEMT 功率器件仿真的 TCAD 方法论
  • Web3公链之Cosmos生态的项目Celestia
  • vue+prismjs 网页代码高亮插件
  • 【软件测试】其实远远不止需求文档这么简单
  • SAP-PP-常用TCODE
  • 第六章认识Node.js服务器开发
  • Ubuntu 增加服务 比如openfire
  • 海康Visionmaster-全局变量:全局变量关联流程中具体 模块结果的方法
  • Eureka介绍和使用
  • Incremental Object Detection via Meta-Learning【论文解析】
  • AI大模型时代网络安全攻防对抗升级,瑞数信息变革“下一代应用与数据安全”
  • 后端接口接收对象和文件集合,formdata传递数组对象
  • python json包
  • 基于 NGram 分词,优化 Es 搜索逻辑,并深入理解了 matchPhraseQuery 与 termQuery
  • PivotNet:Vectorized Pivot Learning for End-to-end HD Map Construction
  • 阿里云安全恶意程序检测
  • Xcode中如何操作Git
  • 浅述边缘计算场景下的云边端协同融合架构的应用场景示例
  • C++中禁止在栈中实例化的类
  • MsgPack和Protobuf
  • 自定义类型联合体
  • 【Shell 系列教程】Shell printf 命令( 六)
  • 2022年电工杯数学建模B题5G网络环境下应急物资配送问题求解全过程论文及程序
  • git reflog 恢复git reset --hard 回退的内容
  • kali Linux中更换为阿里镜像源
  • 【每日一题】移除链表元素(C语言)
  • stm32 ADC
  • linux网络服务综合项目