1

在windows上构建OpenCascade - SpringBreath

 1 year ago
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.1 下载第三方库,FreeimageFreetypeTcl/Tk

打开https://dev.opencascade.org/resources/download/3rd-party-components进行下载,如下图

image

下载完成如下图
image

解压,三个必须的依赖文件准备完成,如下图

image

1.2 下载OCC源码

打开https://dev.opencascade.org/release进行下载,PS:需要登陆,用GitHub一键登录就行

image

解压文件,并新建工作文件夹,结构如下

image
  1. 使用CMake编译OCC源码

打开CMake,如下图

image
image

选择IDE,然后点击Finish

image

会报错误,下一步设置第三方依赖库,点击OK

image

设置依赖库文件夹,然后点击Configure

image

进度条跑完如下图

image

设置INSTALL_DIRC:/Users/Rick/Desktop/DEMO/OCC-7.7.0-install,然后点击Configure

image

等待进度条跑完后,点击Generate

image

等待进度条跑完后,点击Open Project,程序会用vs打开项目

image
  1. 使用VS编译生成OCC库文件

点击 生成

image

完成后,如图

image

右键INSTAL,点击生成

image

完成后,如图

image
  1. 测试
    设置DRAWEXE为启动项,并运行
    image

键入如下命令,出现如下图效果,即完成

image

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK