注意:Qt5.14和Qt5.15的版本问题,造成我在编译“MeshLab-2022.02”的时候,出现错误,比如: C2039 “SkipEmptyParts”: 不是 “Qt” 的成员
因此,选择编译低一个版本的“MeshLab-2021.10”。
1、下载meshlab
https://github.com/cnr-isti-vclab/meshlab/releases
2、下载vcglib
https://github.com/cnr-isti-vclab/vcglib/releases
需要保证版本的时间与meshlab版本时间一致。
3、将vcglib对应解压到meshlab的src文件夹中
4、cmake编译
5、打开工程后,ALL_BUILD点击生成
6、在release下将meshlab设为启动项目,执行后即可。
出现的问题:
This application failed to start because it could not finf or load the qt platform plugin windows
解决办法:
https://blog.youkuaiyun.com/weixin_44819948/article/details/119408193
参考中的方法三。
没用的踩坑记录:
1、注意Qt 需要安装Qt scripts组件,否则在编译externals的最后一个文件时候,会出现错误
Project ERROR: Unknown module(s) in QT: script
2、error C2338: <hash_map> is deprecated and will be REMOVED. Please use <unordered_map>. You can define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS to acknowledge that you have received this warning.
https://blog.youkuaiyun.com/oyhb_1992/article/details/80214338
参考评论