Freetype合并编译:Windows/Linux

简介: Freetype合并编译:Windows/Linux

昨天修改代码,发现freetype,更新了WINDOWS,还要更新LINUX。这可有点麻烦啊。万一哪天忘记了怎么办?


当初下载freetype的时候,发现下载的在LINUX不能编译,原来要下载LINUX版本才能编译。

为什么呢?因为WINDOWS下编译使用VS2010。

有人说为何不用Cygwin?一个freetype要使用Cygwin,实在是有点小题大作。

VS2010是必须安装的。

 为什么要分开呢?因为Windows比Linux多一个回车。



 吾决定统一源码。步骤如下:


源码以Windows为基础。因为Linux可以使用命令行进行操作。

除了builds/VS2010目录,其他全部使用Linux。

编译时,先把src/include复制一份以备份。

使用递归,把\r(0x0D)处理掉。这个可参考吾其他博文。

进行正常编译。

删除src/include目录。

把备份目录名字改回来。这样在比较代码时会发现完全一样。

 有人问,最后编译好了吗?当然。

目录
相关文章
|
1月前
|
安全 Linux 网络安全
Metasploit Pro 4.22.8-2025080401 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.8-2025080401 (Linux, Windows) - 专业渗透测试框架
57 0
|
25天前
|
安全 Linux iOS开发
Tenable Nessus 10.9.3 (macOS, Linux, Windows) - 漏洞评估解决方案
Tenable Nessus 10.9.3 (macOS, Linux, Windows) - 漏洞评估解决方案
148 0
Tenable Nessus 10.9.3 (macOS, Linux, Windows) - 漏洞评估解决方案
|
25天前
|
安全 Linux 生物认证
Nexpose 8.18.0 for Linux & Windows - 漏洞扫描
Nexpose 8.18.0 for Linux & Windows - 漏洞扫描
36 0
Nexpose 8.18.0 for Linux & Windows - 漏洞扫描
|
26天前
|
安全 Linux iOS开发
SonarQube Server 2025 Release 4.2 (macOS, Linux, Windows) - 代码质量、安全与静态分析工具
SonarQube Server 2025 Release 4.2 (macOS, Linux, Windows) - 代码质量、安全与静态分析工具
101 0
SonarQube Server 2025 Release 4.2 (macOS, Linux, Windows) - 代码质量、安全与静态分析工具
|
29天前
|
NoSQL IDE MongoDB
Studio 3T 2025.14 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.14 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
109 0
Studio 3T 2025.14 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
1月前
|
编解码 Ubuntu Linux
时隔半年,Linux 性能重新超越 Windows 11
用户可以访问 OpenBenchmarking.org 页面查看 Windows 和 Linux 之间所有 103 项基准测试的完整结果。
50 0
|
1月前
|
Ubuntu Linux Shell
手把手教你安装适用于Linux的Windows子系统——Ubuntu
重启完成,你看看重新打开Ubuntu是不是发生了变化,等待几分钟,系统配置完成,根据提示设置用户名和密码即可
|
1月前
|
SQL 安全 Linux
Metasploit Pro 4.22.8-2025073001 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.8-2025073001 (Linux, Windows) - 专业渗透测试框架
84 0
|
2月前
|
NoSQL IDE MongoDB
Studio 3T 2025.13 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.13 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
113 0