本文记录在Windows下编译安装FreeCAD 0.21的流程。
一、下载代码与依赖
1.1 下载代码
git clone https://github.com/FreeCAD/FreeCAD.git
cd cd ./FreeCAD/
git checkout -b FreeCAD-0-21 origin/releases/FreeCAD-0-21
1.2 下载依赖
从GitHub下载FreeCAD LibPack-0.21 Version 2.10。
二、编译安装
按照下表配置CMake,并完成构建与生成,
| Where is the source code | D:\YouQuan\CaeFrameworks\FreeCAD |
| Where to build the binaries | D:\YouQuan\CaeFrameworks\FreeCAD\BUILD\FreeCAD-0.21 |
| CMAKE_INSTALL_PREFIX | D:/YouQuan/CaeFrameworks/FreeCAD/INSTALL/FreeCAD-0.21 |
| FREECAD_LIBPACK_DIR | D:/YouQuan/CaeFrameworks/FreeCAD/LibPack-0.21-V2.10 |
打开FreeCAD.sln,构建"ALL_BUILD"完成FreeCAD编译;构建"INSTALL"完成FreeCAD安装。
参考资料
FreeCAD
https://github.com/FreeCAD/FreeCAD
FreeCAD-LibPack
https://github.com/FreeCAD/FreeCAD-LibPack
FreeCAD Documention: Compile on Windows
https://wiki.freecad.org/Compile_on_Windows
FreeCAD编译、安装、开发环境
https://blog.csdn.net/qq_26221775/article/details/106172142?spm=1001.2014.3001.5502






![[字符串和内存函数]strcat字符串函数的详解和模拟](https://img-blog.csdnimg.cn/9e25d385ee3e450da4e1dbf632a0a78c.png)












