在windows上构建OpenCascade - SpringBreath
source link: https://www.cnblogs.com/SpringBreath/p/17014514.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在windows上构建OpenCascade
基于作者QuaoarsWorkshop的视频Open Cascade Lessons,讲的非常详细,观看需要魔法
什么是OCCT?. 首先,Open CASCADE Technology SDK 是一个几何建模库,或者更简单地说,它是一个几何内核。
- 下载源码和所需的第三方依赖
1.1 下载第三方库,Freeimage
、Freetype
、Tcl/Tk
打开https://dev.opencascade.org/resources/download/3rd-party-components进行下载,如下图
下载完成如下图
解压,三个必须的依赖文件准备完成,如下图
1.2 下载OCC源码
打开https://dev.opencascade.org/release进行下载,PS:需要登陆,用GitHub一键登录就行
解压文件,并新建工作文件夹,结构如下
- 使用CMake编译OCC源码
打开CMake,如下图
选择IDE,然后点击Finish
会报错误,下一步设置第三方依赖库,点击OK
设置依赖库文件夹,然后点击Configure
进度条跑完如下图
设置INSTALL_DIR
为C:/Users/Rick/Desktop/DEMO/OCC-7.7.0-install
,然后点击Configure
等待进度条跑完后,点击Generate
等待进度条跑完后,点击Open Project
,程序会用vs打开项目
- 使用VS编译生成OCC库文件
点击 生成
完成后,如图
右键INSTAL,点击生成
完成后,如图
- 测试
设置DRAWEXE为启动项,并运行
键入如下命令,出现如下图效果,即完成
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK