DiscussionsIssue archiveInstallation and Building

Forum archive

Installation and Building

Technical discussions preserved from the public OCCT community forum.

Topics
588
Replies
2,049
Files
222

Discussions

Page 1 of 10

Showing 60 discussions, ordered by the latest archived activity.

Why is Standard_CString.hxx included in my attempt at a C++ 17 build?

Hi everyone, I'm new to OCCT. I'm trying to build some C++ code against OCCT libraries. In my code, I have just added one OCCT include file, for testing, like this: #include <STEPControl_Reader.hxx> The build fails due to /usr/local/include/opencascade/Standard_CString.hxx:61:23: error: ambiguating

2 replies

Building on Cygwin : too many (wrong) rules for library detection

Hi, I am trying to port OpenCascade on Cygwin to build also KiCad, but I found extremely frustrating that the current OCCT-7_9_3 cmake scripts are making the work cumbersome due too many wrong expectations on how 3rd party library are called and the absence of a clear way to state how they are calle

3 replies

Problems with CMAKE to build VS2026 solution

Hi, I'd like to build OCC from source to have it build with the newest compiler. - I downloaded the OCC source - I use the CMAKE GUI - I downloaded and compiled TCL9.0.3 - I downloaded and compiled TK9.0.3 I set the paths in the CMAKE variables, but CMAKE always complains: Warning: TK library is not

2 replies2 files

Building OCCT and having 'XmlXCAFDrivers.hxx' file not found

I tried to add these lines in the cmakeList : set (BUILD_MODULE_TKXmlXCAF ON CACHE BOOL "${BUILD_MODULE_TKXmlXCAF_DESCR}") set (BUILD_ADDITIONAL_TOOLKITS "TKXmlXCAF" CACHE STRING "${BUILD_ADDITIONAL_TOOLKITS_DESCR}") I found out here that maybe I should use the upper line, but it doesn't seem to wor

3 replies

VCPKG : include error, on IntCurve_IntConicCurveGen.lxx using vcpkg

Hello, i integrated opencascade in my visual studio project using vcpkg, and if i specify the include directory like "path/to/include/opencascade/", i have no error while compiling. although if I use vcpkg i would like to not specify any include directories manually. The specifc error i got is comin

1 reply

OCCT VCPKG Extended Package Support Now Available

Hello OCCT Community, We're excited to announce that starting from July 7th, 2025 , OCCT master branch (not released version) now provides comprehensive support for VCPKG's extended package list, significantly simplifying the dependency management process for OCCT builds. What's New Enhanced VCPKG I

2 replies

Found unsuitable Qt version "5.15.16"

Hello, Version 7.9.0 is OK on FreeBSD, but trying to install 7.9.1 fails during the configuration step with the following message: -- Found unsuitable Qt version "5.15.16" from /usr/local/lib/qt5/bin/qmake -- Info: The directories of 3rdparty headers: /usr/local/include/tcl8.6 /usr/local/include/tk8

1 reply

OCC+VTK:The program crashed in debug mode

I compiled both the debug and release versions of VTK9.4 on Windows. Similarly, I also compiled the debug and release versions of OCC7.9.0. I wrote a program using Qt to display the OCC model with VTK. However, the program runs normally in the release version but crashes in the debug version. The fo

2 replies

Building Qt Samples wiht OOCT on Windows - I am close but I need help

Hi, I am trying to build/install occt along with qt samples. here is my configuration: - Windows 11 - Visual Studio 2022 Community edition - Qt 5.15.2 - Debug build type "interested in debugging the source" - Git master branch, no specific tags or commits I could successfully build and install OCCT

3 replies

Getting started with 7.9.0

I downloaded and installed 7.9.0 from here - at first the non-debug versions, which turned to be a mistake. Download the ones with the debug files, preferably the one with the 3rd party apps bundled (though I have no idea yet what they will be used for), the directory structure will then just be fin

4 replies

Newbie -- What is the best IDE to use

Hi I am very new to this environment so excuse my simple questions please. I tried to get OCCT going with QT Creator but failed dismally. I am not sure that QT is the way to go for a beginner. So my question is really simple. Should I use VS 2022 or must I stick wit QT. What is the best choice for a

7 replies2 files

How can I use OCCT in a Qt Creator project?

Hello. I have downloaded and installed openCascade 7.7, the pre compiled release for windows. I did the full installation. Now I'm trying to use it in a Qt creator project so I started a new Qt App project and configured the CMakeList.txt like this: cmake_minimum_required(VERSION 3.16) project(killo

5 replies

32 bit OCCT v7.9.0

Hello I need to update OCCT in our application from 7.7.0 to 7.9.0. I do not see 32-bit packages at https://dev.opencascade.org/release . Neither I see 32-bit third-party packages. Is 32 bits still supported? Thanks

3 replies

Android App Support for Samsung Galaxy A54

I would like to get access to the Android App with free option. My device is not supported, says Google Play Store. Tried Downloads of this version: v.1.5.0, 2020-12-28, and on the Google Play Link. This works, if i install anyway and proceed without safety of data: cad_assistant_1.6.0_2021-10-05_ar

1 reply3 files

vs2019,occt7.9 Build error

If #include<V3d_Viewer.hxx>, an error will occur OpenCASCADE79\OCCT-7_9_0\src\V3d\V3d_Light.hxx(26,9): error C4996: 'Handle_Graphic3d_CLight': This class will be removed right after 7.9 release. Use Handle(T) directly instead.

2 replies

How to build with the .res files not included in the objects

Hi I am having issues linking a vey simple program in VS2022 due to .res files that are duplicated in libraries. The linker gives an error LNK1241 /********** resource file 'resource file' already specified This error is generated if you run cvtres manually from the command line and if you then pass

1 reply1 file

TKStep.lib not installed

Hi I am trying to compile a basic program in VS2022 but when it comes to linking I get an error that it cannot read or find the TKStep.lib. I cannot locate it anywhere either. How do I go about getting it compiled?

1 reply

OCC 7.9.0 Build from source issues on Windows 10, VS 2022

Hi gentlemen, I built OCC 7.9.0 from source (Windows 10 and VS-2022) and I had the following issues: 1) When USE_FREETYPE is checked in CMake, the build INSTALL from visual studio add the freetype.dll to the INSTALL\win64\VC14\bin and INSTALL\win64\VC14\bind directories but it does not add the freet

4 replies

OCCT 7.9 release and CMake error with MFC Samples

Hello everyone, I'm new to OCCT and I'm currently taking a look at the different samples. I've downloaded the latest 7.9 sources (which I can build without any problem). Since I want to evaluate the integration into an MFC application, I wanted to configure the source build using cmake gui and ticke

2 replies

glTF writer is unavailable with OCCT-7_9_0_beta2 [Resolved]

Hello all, i get the following error now: Error: glTF writer is unavailable - OCCT has been built without RapidJSON support [HAVE_RAPIDJSON undefined] version: OCCT-7_9_0_beta2 (beta1 also) modified CMakeLists.txt: # whether use optional 3rdparty or not set (USE_TK ON CACHE BOOL "${USE_TK_DESCR}") s

9 replies2 files

Jemalloc lib directory not added to project's additional library directories

Hi, I updated to the latest commit (3d6c211) in master branch, and encountered a new problem compiling the OCCT solution. I was able to compile before with the same settings in Windows with Visual Studio 2022: BUILD_CPP_STANDARD C++20 BUILD_USE_PCH Yes BUILD_MODULE_ApplicationFramework Yes BUILD_MOD

11 replies5 files

OpenGL Building error for Android

I received about 20 errors when build OCCT. Any help correcting this will be appreciated. [ 46%] Linking CXX shared library ..\..\lin64\clang\libi\libTKV3d.so [ 47%] Built target TKV3d [ 47%] Building CXX object src/TKOpenGles/CMakeFiles/TKOpenGles.dir/__/OpenGl/OpenGl_GlFunctions.cxx.o C:\OCCT\OCCT

7 replies

Build Error using WSL Fedora

[ 38%] Building CXX object src/TKV3d/CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o /home/Author/dev/libs/opencascade-7.7.0/src/StdPrs/StdPrs_BRepFont.cxx: In member function ‘Standard_Boolean StdPrs_BRepFont::renderGlyph(Standard_Utf32Char, TopoDS_Shape&)’: /home/Author/dev/libs/opencascade-7

2 replies

Android build error 3RDPARTY_FREETYPE_LIBRARY_DIR

Hello, I'm trying to build for android. But I run into this issue CMake Error at CMakeLists.txt:923 (message): Could not find libraries of used third-party products: 3RDPARTY_FREETYPE_LIBRARY_DIR I believe I'm on the latest version of 7.8. I disabled BUILD_MODULE_Draw, and downloaded the android 3rd

6 replies1 file

ITERATOR_DEBUG_LEVEL mismatch when building with draco library

When building from the 7.8.1 tag with Draco compression, I didn't encounter any problems. But after moving to the latest OCCT in master branch and building, I'm getting several errors like this one: 47>draco.lib(float_points_tree_decoder.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary':

4 replies1 file

OCCTProxy error System.BadImageFormatException

Hi, I've been trying to get the C# sample to work. First, in a x64 solution, I got the C++ project to compile (C++ 20, added all the source code to an import folder, and the .lib to another) via Visual Studio 22. Then, when I try to use the WinForms sample, as I click New a System.BadImageFormatExce

4 replies9 files

Updating from 7.7 to 7.8.1 with MSyS2 now Libraries missing

Hello, I just did an update from 7.7 to 7.8.1with pacman -S mingw-w64-x86_64-opencascade ( https://packages.msys2.org/packages/mingw-w64-x86_64-opencascade?repo=mi... ) and now some libraries are missing: #LIBS += -lTKSTEP #LIBS += -lTKSTL #LIBS += -lTKIGES #LIBS += -lTKXDEIGES #LIBS += -lTKSTEP #LI

1 reply

Documentation and search

I'm sorry I don't really know where to post this but the search function for the documentation seems to be missing/broken. I'm using OCCT 7.7.x and when I try to search something in the reference manual I always get 0 results even for things I know for certain should pull up hits like "gp_Pnt". For

1 reply

Couldn't add Inspector plugin to project via cmake

Hi everyone, i've got this error: [cmake] ERROR: Specified unsupported component: TKernel [cmake] ERROR: Specified unsupported component: TKMath [cmake] ERROR: Specified unsupported component: TKGeomBase [cmake] ERROR: Specified unsupported component: TKTInspector [cmake] CMake Error at CMakeLists.t

3 replies

Error configuring OCCT/tools with ccmake

Building OCCT from source. Branch: V7_8_1 Qt: 5.15.8 This is my output of ccmake Info: Used native memory manager CMake Error at adm/cmake/occt_toolkit.cmake:35 (include_directories): include_directories given empty-string as include directory. Call Stack (most recent call first): CMakeLists.txt:34

5 replies

OCCT 7.8 - Static Build Failure

Hi, I'm trying to build OCCT 7.8.0 statically (via spack) and am running into errors. Here is some system information: linux-centos7-zen2 gcc/9.3.0 cmake/3.23.1 I edited the spack package configuration for opencascade (spack/var/spack/repos/builtin/packages/opencascade/package.py) by adding this: ar

7 replies2 files

windows.h and #defines in Standard_Macro.hxx

We ran into a compiler error due to a conflict with Open CASCADE headers and another 3rd party component's headers. Specifically the following code in Standard_Macro.hxx caused issues in the other library until I commented these lines out. Can this be moved out of a Standard header in a future relea

5 replies

[SOLVED] C++ problem when linking on Debian 12 / bookworm, OCC 7.6

Hello, After trying by several days I just can't understand why my compilation is not working on Debian 12 but it works on Archlinux. If you can help me it will be really appreciated !! Here is a minimal example of what I' m trying to compile: #include <iostream> #include <IFSelect_ReturnStatus.hxx>

6 replies

LNK118 Can not open input file TKIGES.lib when building OCCTProxy in VS2012

When building the sample OCCTProxy in VS2012,I get the error:LNK118 Can not open input file TKIGES.lib. Where is the file TKIGES.lib? Open CASCADE Technology 7.8.0 OCCTProxy Property->Configuration Properties->Linker->Input->Additional Dependencies is the files in 'occt-vc143-64\occt-vc143-64\win64\

13 replies

Cmake error when configuring.

I downloaded lastest version of cmake and Opencascade. CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the projec

24 replies1 file

Getting Debug Symbols on MacOS

I'm trying to build OpenCASCADE with debug symbols on MacOS so that I can understand backtraces produced in LLDB. I've successfully built and installed OpenCASCADE with CMake. I'm building with the system toolchain: Apple Clang 14.0.3. Before building, I set the BUILD_WITH_DEBUG CMake cache variable

4 replies1 file

Failed to compile OCCT7.8.0 with VTK9.3

On my laptop with arch linux OS, I want to use vtk in OCCT 7.8.0, so i download vtk with the lateset release vtk 9.3.1 and compiled it, installed the files and the libs in my specific directory. In the installed lib directory, I get the vtk lib files with the suffix '-9.3.so' in the lib name, such a

2 replies

Integrating OCCT to UE5.4.3 triggers module error.

My goal is integrating OCCT to Unreal Engine. Workflow will go like this. After getting vertices values, we can generate UStaticMesh with mesh descriptions or we can just create dynamic meshes. So, we can bypass opengl or any other visualization libraries. As I understand, these are the libraries to

3 replies

Skipping OpenGL: USE_OPENGL=OFF

Hi, thanks for the great work on OpenCASCADE! I'm trying to package a minimal "step-to-glb" converter for Python, and I can't get it to stop linking libGL.so.1 . I could install apt install --no-install-recommends libgl1-mesa-glx and make it work but it seems like the library shouldn't require openg

6 replies

Can we get some updated build docs?

I don't know what it is about Open Cascade but I spend about 90% of my development time trying to build and link this library properly. I would put forth the effort to write new docs myself...if I could even get a consistent build process. It is the #1 reason I am looking at Parasolid and Spatial ab

2 replies

TKDraw Error when building Opencascade

My components are: Opencascade 7.8.0; cmake 3.27.4; visual stdio 2022; win11; 3rdparty components are freeimage-3.17.0-vc14-64, freetype-2.5.5-vc14-64 and tcltk-86-32; qt version is 5.15.2; My cmake successed. but when I use vs to buid the projects, all of them succeed except TKDraw; More informatio

2 replies1 file

Minimal Build Setting for given Application

Hello, I have a working OCCT installation, and I would like to make the build as small as possible to reduce compilation time. Currently, I have two modules disabled ( -DBUILD_MODULE_Draw=FALSE , -DBUILD_MODULE_DETools=FALSE ) because I lack requirements and don't need their functionality anyway. My

1 reply

Building OCCT for ARM platform

Original subject in the title. Is it possible to use it on controllers? ) Thanks. With respect, Author.

6 replies

error building against OpenCASCADE

Two different projects give the same following error when building against OpenCASCADE. I'm looking for information on what this means and how to fix it. libTKernel.so.x is located in /usr/lib64. Any help would be appreciated. Thanks. CMake Error at /usr/lib64/cmake/OpenCascade/OpenCASCADEFoundation

21 replies1 file

Installation of open cascade with draco

Hello guys, I want to install open cascade with draco using cmake on ubantu, Could anyone please guide me on it? How to install draco and how to enable it during installation of open cascade?

5 replies3 files

Open cascade with Draco on ubuntu. (Linux)

Hello everyone, I am trying to install open cascade with Draco enable option. I have already install Draco on my machine. (using : sudo apt install Draco) When I tried to build without Draco. it will build properly. but when I install using Draco Boolean as ON then it is failing . I am getting issue

6 replies1 file

Error compiling TKService with Coca on Apple with GCC

Hi, There is a compilation error related to the Cocoa API when compiling TKService with GCC. In particular, when compiling the file Cocoa/Cocoa_LocalPool.mm . The build instruction is cd /PATH_TO_OCCT/out/build/src/TKService && /opt/homebrew/bin/aarch64-apple-darwin23-g++-14 -DHAVE_FREETYPE -DHAVE_O

2 replies

Build fails with precompiled headers for DataExchange and DETools modules

Hello guys, my build fails when activating precompiled headers and the DataExchange and DETools modules with errors. For DETools, the output says nothing CMake Error at /Users/.../Dev/OCCT/adm/cmake/cotire.cmake:1995 (message): cotire: error 1 precompiling /Users/.../Dev/cmake_testing/build/_deps/op

1 reply

Using OpenCascade in a DLL

Hi, we're writing a module that uses OpenCascade 7.2 in a dynamic loaded DLL. This module simply reads a STEP or IGES using STEPCAFControl_Reader and IGESCADControl_Reader. All works but unloading DLL I have an Unhandled exception (Access violation) in TKXSBase.dll!StepData_GlobalNodeOfWriterLib::~S

6 replies1 file

Build/Compile Qt Samples (Qt6.5.3)

Hello Guys, I could build and run the qt's FuncDemo, but when I tried to run other samples it showed this error: Tutorial : run.sh: line 39: 10710 Segmentation fault (core dumped) ${BIN_DIR}/Tutorial IESample : run.sh: line 37: 7338 Segmentation fault (core dumped) ${BIN_DIR}/IESample In IESample ca

5 replies1 file

Install finished miss the libTKSTEP and its related lib....

Hello Guys, When I tried to read the step with c++, I found my lib didn't have libTKSTEP libTKSTEPAttr libTKSTEPBase libTKSTEP209... What could be a problem? (Linux/Ubuntu22.04) (OCCT_7.8.0) (tk/tcl version 8.6+) Thanks. With respects, Dunja.

1 reply

Build/Compile Samples

Hello Guys, I try to build the sample in OCCT-7_8_0/samples/qt/Tutorial, but there is error I can't solve. CMake Error at CMakeLists.txt:3 (OCCT_INCLUDE_CMAKE_FILE): Unknown CMake command "OCCT_INCLUDE_CMAKE_FILE". CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present.

1 reply