VisualStudio2022编译FreeCAD | 您所在的位置:网站首页 › freecad闪退 › VisualStudio2022编译FreeCAD |
1.下载并安装VisualStudio 2022和CMake
VisualStudio的版本要不低于Visual Studio2019 2.安装Qt5.15.2自行百度 3.下载FreeCAD源码和依赖包源码:https://github.com/FreeCAD/FreeCAD/tags 依赖包:LibPack-0.20 Version 2.6 https://github.com/FreeCAD/FreeCAD-LibPack/releases/tag/2.6 ![在这里插入图片描述](https://img-blog.csdnimg.cn/ad6de2a53d19403d94d1f4cb98044ea4.png 注意依赖包的版本,版本不对无法编译
将源码和依赖包解压到文件夹FreeCAD,并新建build,如下图所示:
这个时可能会报错: 1.控制台可能会有如下错误: This application failed to start because it could not find or load the Qt platform plugin "window" in "" 解决方案: 通过windows的命令提示符,进入到Qt安装环境的bin目录(我用的是msvc2019_64版本), 输入命令:windeployqt.exe +执行程序路径 我这里启动的Debug,所以用的FreeCAD_d.exe 2.错误2: Qt WebEngine resources not found 将LIBPACK下的resources文件夹拷贝至build\bin的同级目录 参考: 1.https://blog.csdn.net/qq_27278957/article/details/117076651?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-117076651-blog-46842029.pc_relevant_recovery_v2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-117076651-blog-46842029.pc_relevant_recovery_v2&utm_relevant_index=4 2. https://zhuanlan.zhihu.com/p/453584599 3. |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |