项目场景:
在windows11环境下编译BambuStudio项目。
问题描述
从GitHub上获取项目代码(https://github.com/bambulab/BambuStudio),在windows11环境下编译BambuStudio项目,编译失败。
错误1:构建BambuStudio_dep项目报错。
错误2:执行cmake报错Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
version “3.3.0”);
原因分析:
错误1:需要提前安装Perl,并且构建项目时保持外网可访问,否则会导致依赖的包下载失败。
错误2:BambuStudio_dep项目生产失败导致。
解决方案:
1,按照此文档步骤执行:https://github.com/bambulab/BambuStudio/wiki/Windows-Compile-Guide;
2,构建项目时保持外网可访问;
3,部分错误是补丁下载失败导致的,可找到对应项目的cmake文件,注释掉相关内容。(参考文档https://www.bilibili.com/read/cv28511816/)如图: