当前位置:网站首页>Scons编译IMGUI
Scons编译IMGUI
2022-06-12 06:50:00 【柯哀的眼】
1、安装python
2、通过pip安装scons
python -m pip install scons3、安装Cmake
注意安装时勾选环境变量,这里不多赘述
4、 下载GLFW源码版并编译
Download | GLFW
https://www.glfw.org/download.html
要用cmake自己编译的,官方自己编译的版本scons没法用会报错
无法解析的外部符号__imp_realloc之类的

编译glfw的过程参考这篇文章
解决 glfw3.lib(input.obj) : error LNK2019: 无法解析的外部符号 __imp_strspn,函数 glfwUpdateGamepadMappings 中引用了该符号_ppdyhappy的博客-CSDN博客_glfw3.lib环境:vs2019 communityglfw3.3.2问题描述:因为想只用lib库编译代码,不想最终输出带上一堆dll文件,所以在vs做了如下图所示的设置:重新编译时出现如题类似的错误,查找资料这里想到可能也是最初建立glfw3.3.2编译工程时配置cmake时出现什么错误,所以对glfw3.3.2的cmake配置做如下图所示的修改:勾掉 USE_MSVC_RUNTIME_LIBRARY_DLL 这项,再次生成工程--->编译,得到新的lib文件,使用该文件,问题解决https://blog.csdn.net/ppdyhappy/article/details/108010297cmake如果不会用可以自己百度,核心地方就是要勾掉USE_MSVC_RUNTIME_LIBRARY_DLL
否则scons编译就会出现如上错误
5、下载IMGUI
Release v1.87 · ocornut/imgui (github.com)
https://github.com/ocornut/imgui/releases/tag/v1.87参考视频:
跟着视频就可以编译出来vs版本的,这里我推荐大家先试一试,没问题的话咱们再着手编译scons的。
6、创建scons的文件

其中Global.h跟ImGuiDemo.cpp和SConstruct都是我自己写的,可以看到我使用的64位
剩下的都是刚刚下载的imgui粘贴过来的

ImGuiDemo.cpp我是直接复制的官方的例子,这里就不截图展示了
7、还需要安装vulkan
并把路径按照我的方式配置好就行
注意就是头文件路径跟lib路径,还要加上相关lib名字
边栏推荐
- 库里扛起了勇士对凯尔特人的第四场
- CL210OpenStack操作的故障排除--章節實驗
- sql server2019安装到这步无法进行下一步了,如何解决?
- Recommend 17 "wheels" to improve development efficiency
- Meituan won the first place in fewclue in the small sample learning list! Prompt learning+ self training practice
- Node. Detailed installation tutorial of CPM and cnpm (including error resolution)
- Descscheduler secondary scheduling makes kubernetes load more balanced
- 六月集训 第九日——位运算
- Solution: content type 'application/x-www-form-urlencoded; charset=UTF-8‘ not supported
- The difference between get and post and the code implementation of message board
猜你喜欢

张驰课堂:2022年CAQ中质协六西格玛考试时间通知

Postman splice replacement parameter loop call interface

【图像去噪】基于高斯滤波、均值滤波、中值滤波、双边滤波四种滤波实现椒盐噪声图像去噪附matlab代码

VSCode常用插件

数据库全量SQL分析与审计系统性能优化之旅

Reentrantlock underlying AQS source code analysis

Codeforces Round #793 (Div. 2) A B C
![Leetcode: offer 60 Points of N dice [math + level DP + cumulative contribution]](/img/2b/41bd6a213892062f4c12721b5d4e8d.png)
Leetcode: offer 60 Points of N dice [math + level DP + cumulative contribution]

Category 7

Troubleshooting of cl210openstack operation -- Chapter experiment
随机推荐
Set [list] to find out the subscript of repeated elements in the list (display the position of the subscript)
MySQL multiple SQL batch operations (crud) in JDBC
An error occurred while downloading the remote file The errormessage
SQL Server 2019 installation error. How to solve it
Are you still using like+% for MySQL fuzzy query?
Curry carries the fourth game of the warriors against the Celtics
[data clustering] data set, visualization and precautions are involved in this column
The difference between get and post and the code implementation of message board
【图像去噪】基于非局部欧几里德中值 (NLEM) 实现图像去噪附matlab代码
ConVIRT论文详解(医疗图片)
Descscheduler secondary scheduling makes kubernetes load more balanced
SQL language
LeetCode-1490. Clone n-ary tree
SQL injection read / write file
NOI openjudge 计算2的N次方
June training day 6 - sliding window
Database syntax related problems, solve a correct syntax
SQL injection based on error reporting
The fifth day of June training - double pointer
2021 RoboCom 世界机器人开发者大赛-本科组(初赛)
https://www.bilibili.com/video/BV1cS4y1778o