Download and Installation

OCCT can be downloaded from https://dev.opencascade.org/release

OCCT可以从https://dev.opencascade.org/release下载。

In most cases you would want to rebuild OCCT from sources on your platform (OS, compiler) before using it in your project, to ensure binary compatibility and appropriate configuration of the library. See Build, Debug and Upgrade for instructions on building OCCT from sources on supported platforms.

在大多数情况下,您在将OCCT用于项目之前应该先在您的平台(操作系统、编译器)上从源代码重新构建OCCT,以确保二进制兼容性和库的适当配置。

有关在支持的平台上从源代码构建OCCT的说明,请参阅构建、调试和升级

The following subsections describe how OCCT can be installed from ready-to-use packages on different platforms.

下面的子部分描述了如何从不同平台的即用软件包中安装OCCT。

Windows

On Windows Open CASCADE Technology with binaries precompiled by Visual C++ 2017 can be installed using installation procedure available on official download page.

在Windows上,可以使用官方下载页面提供的安装程序安装通过Visual C++ 2017预编译的Open CASCADE Technology。

Recommendation:

If you have a previous version of OCCT installed on your station, and you do not plan to use it along with the new version, you might want to uninstall the previous version (using Control Panel, Add/Remove Programs) before the installation of this new version, to avoid possible problems (conflict of system variables, paths, etc).

建议:

如果您的计算机上已安装了OCCT的先前版本,并且您不计划与新版本一起使用,您可能希望在安装此新版本之前卸载先前版本(使用控制面板的“添加/删除程序”),以避免可能出现的问题(系统变量、路径冲突等)。

Full OCCT installation with reference documentation requires 1.8 Gb on disk.

完整的OCCT安装及相关文档需要1.8GB的磁盘空间。

When the installation is complete, you will find the directories for 3rd party products (some might be absent in case of custom installation) and the main OCCT directory:

安装完成后,您将在第三方产品的目录(在自定义安装情况下可能缺失)和主OCCT目录中找到:

The contents of the OCCT-7.4.0 directory (called further "OCCT root", or $CASROOT) are as follows:

OCCT-7.4.0目录(以下称为“OCCT根目录”或$CASROOT)的内容如下:

The directory tree

  • adm This folder contains administration files, which allow rebuilding OCCT;

  • adm/cmake This folder contains files of CMake building procedure;

  • adm/msvc This folder contains Visual Studio projects for Visual C++ 2013, 2015, 2017, 2019 and 2022 which allow rebuilding OCCT under Windows platform in 32 and 64-bit mode;

  • adm/scripts This folder contains auxiliary scripts for semi-automated building and packaging of OCCT for different platforms;

  • data This folder contains CAD files in different formats, which can be used to test the OCCT functionality;

  • doc This folder contains OCCT documentation in HTML and PDF format;

  • dox This folder contains sources of OCCT documentation in plain text (MarkDown) format;

  • inc This folder contains copies of all OCCT header files;

  • samples This folder contains sample applications.

  • src This folder contains OCCT source files. They are organized in folders, one per development unit;

  • tests This folder contains scripts for OCCT testing.

  • tools This folder contains sources of Inspector tool.

  • win64/vc14 This folder contains executable and library files built in optimize mode for Windows platform by Visual C++ 2015;

目录树

  • adm 文件夹包含管理文件,可用于重建OCCT;

  • adm/cmake 文件夹包含CMake构建过程的文件;

  • adm/msvc 文件夹包含Visual Studio项目,用于在Windows平台下以32位和64位模式重建OCCT,适用于Visual C++ 2013、2015、2017、2019和2022;

  • adm/scripts 文件夹包含辅助脚本,用于半自动构建和打包不同平台的OCCT;

  • data 文件夹包含不同格式的CAD文件,可用于测试OCCT功能;

  • doc 文件夹包含HTML和PDF格式的OCCT文档;

  • dox 文件夹包含OCCT文档的源文件,使用普通文本(Markdown)格式;

  • inc 文件夹包含所有OCCT头文件的副本;

  • samples 文件夹包含示例应用程序。

  • src 文件夹包含OCCT源文件。它们按照开发单元分为多个文件夹;

  • tests 文件夹包含OCCT测试的脚本。

  • tools 文件夹包含Inspector工具的源代码。

  • win64/vc14 文件夹包含在Windows平台上由Visual C++ 2015以优化模式构建的可执行文件和库文件。

Linux

OCCT is available as package "opencascade" in official repositories of many Linux distributions.

See https://repology.org/project/opencascade/versions for overview of available repositories.

OCCT在许多Linux发行版的官方软件仓库中以"opencascade"包的形式提供。

请访问https://repology.org/project/opencascade/versions了解可用软件仓库的概况。

macOS

On macOS, OCCT is available in Homebrew (https://formulae.brew.sh/formula/opencascade) and MacPorts (https://ports.macports.org/port/opencascade/summary) repositories.

在macOS上,OCCT在Homebrew(https://formulae.brew.sh/formula/opencascade)和MacPorts(https://ports.macports.org/port/opencascade/summary)软件仓库中可用。