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 3 of 10

Showing 60 discussions, ordered by the latest archived activity.

CMakeList.txt

Hi, I downloaded your new version of Open Cascade 7.6 and it works as usual. However, after creating the source file, I want the extension of the lib and dll files to look like TKBin_76.Lib in this example. Can you please help me or where can I change this? Best Regards

0 replies

Building with CMake in Opencascade7.6.0(win32)

I want to build 7.6.0 OCC in a win32 environment. So I follow the official steps: https://dev.opencascade.org/doc/occt-7.6.0/overview/html/build_upgrade__... I can get the project file and build ok,as shown in the figure [BuildOK.jpg] ---------------------------- But this project file is very differ

0 replies3 files

Recommended way to use precompiled libs with CMAKE?

Hello All, i started a OCC project on Linux using Quaoar's Workshop No 5 as guideline, which works fine. Now I'd like to compile also on Windows using the precompiled libraries. I added set (OpenCASCADE_DIR "C:/OpenCASCADE-7.6.0-vc14-64/opencascade-7.6.0") include_directories("C:/OpenCASCADE-7.6.0-v

1 reply

occ 7.6 compile failed because of undefined signs "FT_LOAD_TARGET_LIGHT" and so on

After installed occ7.6, I compiled it. but when compiling “Visualization”, I got the following four errors, undefined signs "FT_LOAD_TARGET_LIGHT" ; undefined signs "FT_LOAD_NO_HINTING" ; undefined signs "FT_LOAD_FORCE_AUTOHINT" ; undefined signs "FT_LOAD_NO_AUTOHINT" ; would you be so kind to tell

6 replies7 files

OCCT doesn't compile since Emscripten 3.1.11

See this GH issue . Emscripten recently introduced a change, where time_t is now int instead of long . This results in "redefinition of ..." errors while compiling.

3 replies

Test '-fwasm-exception' crash

https://github.com/frank-pian/occt_wasm_exception_test/blob/main/Dockerfile I'm trying to build the OCCT with the new WebAssembly EH. But there seems to be a problem with setjmp function. [ 14%] Building CXX object src/TKGeomBase/CMakeFiles/TKGeomBase.dir/__/IntAna/IntAna_Quadric.cxx.o [ 14%] Buildi

3 replies

WebGL Build Problem : error: duplicate symbol: PLUGINFACTORY

I wanted to add the function that import step file and export xmlocaf file in webgl demo. Add Include Files: #include <STEPCAFControl_Reader.hxx> #include <TDocStd_Document.hxx> #include <BinDrivers.hxx> #include <TDocStd_Application.hxx> #include <XmlDrivers.hxx> The Code: Handle(TDocStd_Applicatio

2 replies1 file

WebGL Sample Build Problem : undefined symbol

>emmake make install make: make install [ 33%] Linking CXX executable occt-webgl-sample.js wasm-ld: error: CMakeFiles/occt-webgl-sample.dir/WasmOcctView.cpp.o: undefined symbol: vtable for Graphic3d_TransformPers wasm-ld: error: CMakeFiles/occt-webgl-sample.dir/WasmOcctView.cpp.o: undefined symbol:

5 replies

WebGL Sample Build Problem

i have problem that build WebGL sample. error: C:\OCCT_7.6.0\OCCT_760_src\samples\webgl\Build>emmake make make: C:\emsdk\mingw\7.1.0_64bit\bin\mingw32-make.exe [ 33%] Building CXX object CMakeFiles/occt-webgl-sample.dir/WasmOcctView.cpp.o em++: warning: linker flag ignored during compilation: '--bin

1 reply

occ 7.5.3p2: FTBS when compiling with emscript

Hi, I'm trying to build occ with emscript to test webgl functionnality. occ FTBS with the following error: 41%] Building CXX object src/TKService/CMakeFiles/TKService.dir/__/Graphic3d/Graphic3d_Text.cxx.o /src/occt/src/OpenGl/OpenGl_Context.cxx:1821:100: error: use of undeclared identifier 'False' i

1 reply

Compile error using GMSH 4.8.1 + OOC 7.5

Dear all, I am trying to compile GMSH4.8.1 under windows 10 64bit + VS2019. I used the OOC7.5 (by putting win64/vc14/lib and inc into GMSH folder) and the following errors displayed: Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "public: void

5 replies

Building OCCTProxy on C# Samples

Hello OCCT Community, I'm trying to build Open CASCADE 7.6.0's C# sample projects, but unfortunately I am not able to build it. Firstly, I've added "C/C++ --> General --> Additional Include Directories" as "C:\OpenCASCADE-7.6.0-vc14-64\opencascade-7.6.0\inc" Then, I've added " Linker --> General -->

1 reply1 file

Emabarcadero C++ builder

hi I'm thinking of compiling occt embarcadero c++ builder. Anyone have any thoughts on how to do this? thanks

0 replies

Build error when compiling against ffmpeg-5

We received a compile time failure[1] on Gentoo Linux, when trying to build opencascade with ffmpeg-5 installed. The report was for v7.6.0. While I was packaging v7.6.1, I noticed the issue also show up for this version. The error (for v7.6.1) is: FAILED: src/TKService/CMakeFiles/TKService.dir/__/Me

0 replies

Undefined symbols in libTKMath

Hello all, In short, I get the following error during run time: /home/Author/CLionProjects/untitled1/cmake-build-release/untitled1: symbol lookup error: /lib/x86_64-linux-gnu/libTKMath.so.7: undefined symbol: _ZN28TCollection_BasicMapIteratorC2Ev My setup (working with linux machine): 1. Cloned OCCT

3 replies2 files

Found unsuitable Qt version "6.2.3" from C:/Qt/6.2.3/msvc2019_64/bin/qmake.exe

I am trying to setup OCCT from the github repo. I cloned and used cmake to generate Visual Studio projects. It is working fine till I add the option "BUILD_SAMPLES_QT". I have latest Qt installed which is 6.2.3. And it is giving me error Found unsuitable Qt version "6.2.3" from C:/Qt/6.2.3/msvc2019_

9 replies

Build error when using the triangulation function

I'm applying mesh right now. Handle(Poly_Triangle) tri; tri = BRep_Tool::Triangulation(TopoDS::Face(ef.Current()), l); When i use the Triangulation function, C2039 'type' : 'std:enable_if<_Test_Ty>' is not a member. Error. The message is coming up. Thank you if you can tell me which part to check.

1 reply

LNK1104 cannot open file 'TKOpenGl.lib' mfcsample

I just cloned OCCT repo and using cmake, created projects for Modules and Samples. When building "mfcsample", I am getting linking error "LNK1104 cannot open file 'TKOpenGl.lib' mfcsample". I searched for "TKOpenGl.lib" in the entire repo, it is not found. In cmkae I have not selected the option "US

3 replies

Opencascade on NVIDIA Jetson

Hello all, did anyone tried to run opencascade on NVIDIA Jetson? I quick tried to run Freecad on Raspberry 4 and it crashes when I start a new document. Not sure what the problem is. Anyhow, I would assume that opencascade would run much faster on Jetson? Since I code with QT5 I start hoping to use

2 replies

Run OpenCascade Application on other Machine

Hi there. I've jus build a small Aplication using Opencascade. Everything runs finde on the Machine where I build the Application. But even when I copy the Application including ALL DLL-Files from Opencascade into the same Directory on another machine, the Application crashs when I try to start it..

11 replies1 file

Build WebAssembly version crash

ubuntu: 20.14 opencascade : Master(2022.1.7) freetype: 2.7.1 emsdk: 3.1.0 step 1 Build freetype is OK. step 2 Configuration 'adm/scripts/wasm_custom.sh' freetype source path step 3 run adm/scripts/wasm_build.sh When compiled to about 8%, the system crashes.I've rebooted it a few times and it still h

1 reply

"Inspector" build error when using CMake

I wanna building a "Inspector" by using CMake. But, When I changed a flag(BUILD_Inspector) "OFF" to "On" according to guides, below errors are occurred. ---------------------------------------------------------------------------------------------------------------------------------------------------

3 replies2 files

MinGW64 8.1 TKService

I was able to build 57 DLL's with MinGW64 except TKService Any idea what the problem could be? Thanks! [ 37%] Linking CXX shared library ..\..\win32\gcc\bin\libTKService.dll CMakeFiles\TKService.dir/objects.a(Font_FontMgr.cxx.obj):Font_FontMgr.cxx:(.text+0x4bc): undefined reference to `FT_New_Face'

19 replies8 files

Compiling a hello world program

I cloned OpenCascade, then built it from source with: cd occt cmake . make I then tried to make a hello world program referencing the produced files in occt/mac64/clang/lib: clang++ -std=c++20 -L"./occt/mac64/clang/lib/" -I"./occt/include/opencascade/" -o cad src/* But I get the following error: Und

4 replies1 file

Hardware recommendations for OCCT

Hello Open Cascade community! What is a recommended hardware strategy to improve the performance of Open Cascade? Does the performance mostly benefit from single core CPU power or rather the number of CPU cores. Can some of the computation load be outsourced to the GPU e.g. via the CUDA library? I c

2 replies

how to build opencascade on macos with debug symbols

i'm experimenting build occ on macos (various versions) ie. mojave, catalina, and big sur. i'd like to build OCC using debug symbols if that's even possible. i'll be blunt i'm quite new to C++ but have worked with Xcode in the past where i could build a project in a debug mode that would provide .ds

1 reply

QA warnings in 7.5.3

Hello, I'm maintainer of the opencascade package for the Gentoo Linux distribution. While preparing a package for 7.5.3 I get some warnings from our internal QA framework about null pointers in three different occasions, of which I'd like to inform you. The output is * QA Notice: Package triggers se

2 replies

With OCCT 7.5.0 build, 3D viewer is not showing up in applications

I built OCCT 7.5.0 using CMake 3.20.2 and Visual studio 2017. I used basic configuration to generate the project. The following images shows the configuration I used, OCCT-7.5.0-BuildConfig-1.png OCCT-7.5.0-BuildConfig-2.png OCCT-7.5.0-BuildConfig-3.png OCCT-7.5.0-BuildConfig-4.png After successfull

9 replies17 files

1>LINK : fatal error LNK1104: cannot open file 'TKVCAF.lib'

Whit Visual Studio 2013 I try to "Bulding a solution" of MFC sample but there is this LINK error: 1>------ Build started: Project: mfcsample, Configuration: Debug Win32 ------ 1>LINK : fatal error LNK1104: cannot open file 'TKVCAF.lib' 2>------ Build started: Project: Geometry, Configuration: Debug

0 replies

possibly an expired cert

i've working with building occ from source the past couple of days and i believe one of the ssl certs has expired, but not sure if the problem is something local to my computer or network. either way running the below command brew install opencascade -s -v is giving me the following error, ==> Downl

2 replies

how to build opencascade on macos mojave using xcode

i'm working my way through the instructions below, https://dev.opencascade.org/doc/overview/html/build_upgrade__building_oc... but can't seem to build occ using the instructions. i've made youtube video explaining what is going on, any and all comments/suggestions are welcome. https://youtu.be/HZ5Ls

1 reply

OCCT 7.6.0dev build wasm failed

Hello Dears I have Downloaded the OCCT 7.6.0dev and try to build the web sample since it can skip the FreeType library I faced this error while I am building the OCCT, anyone knows what that means ? 4 errors generated. em++: error: 'C:/emscriten/emsdk/upstream/bin\clang++.exe -target wasm32-unknown-

1 reply1 file

Webs sample building fail

What do these errors mean, it appears in the log file when I built the Web-Sample? Start building OCCT for wasm Generation time: 00:01:20 The command line is too long. mingw32-make[2]: *** [src\TKTopAlgo\CMakeFiles\TKTopAlgo.dir\build.make:4119: lin32/clang/lib/libTKTopAlgo.a] Error 1 mingw32-make[1

2 replies

MinGw version to build the Web-sample by emscripten

Hello Dears, I'm trying to build the Web Sample of OCCT, I faced a lot of errors while building it by emscripten, I have the version mingw-7.1.0-64bit and I saw some people use version 4.6.2_32bit, So is that affect the process of building, and which is the correct version of MinGw thanks very much

1 reply

Failed to build occt with Enscripten due to cannot find freetype

Hi all, Can anybody help to build occt with Enscripten? I tried to build occt with enscripten: 1. Download occt source code, cmake, enscripten, etc. 2. Open cmake, set the source code path to occt; 3. Set the make program to E:/Github/emsdk/mingw/4.6.2_32bit/mingw32-make.exe; 4. Set the tool chain f

1 reply3 files

Could not find headers of used third parties

Steps: * cloned * mkdir build; cd build * cmake .. given the output from the attached image I have both tcl and freetype installed from the centos repo as `rpm -q freetype` and `rpm -q tcl` both return version numbers.

1 reply1 file

OCCt for Web Application

Hello I tried to build occt WebGL sample by using wasm_build.wasm which exists in the 7.5 version it fails and when I opened the build_wasm.log I found these lines can anyone tell me what these errors mean or can tell me the good approach to build the WebGL sample ? Generation time: 00:02:40 In file

2 replies

Problem finding lxx files

Dear all, I'm updating a Managed C++ library from OCCT 7.4.0 to to 7.5.2. The guy that did the 7.4.0 work for us as left in the meantime and I'm a bit rusty in the C/C++ field. But I managed to compile OCCT 7.5.2 successfully. When recompiling our own library though using OCCT 7.5.2, I'm stuck as th

2 replies

OCCTProxy building errors(AIS_InteractiveContext, AIS_SelectionScheme_XOR)

Hello, when I am trying to build OCCTProxy, I get these errors: 1) Error C2065 'AIS_SelectionScheme_XOR': undeclared identifier OCCTProxy 2) Error C2039 'SelectDetected': is not a member of 'AIS_InteractiveContext' OCCTProxy 3) Error C2039 'SelectRectangle': is not a member of 'AIS_InteractiveContex

0 replies

Using OCCT libraries application "Debug Assertion Failed" on Windows

Hi I created small lib for file conversion using OCCT. I prepared two builds int Release and Debug configuration. Lib works ok in release configuration, but crashes at the end of process in debug mode. I tried official OCCT 7.5.0 binaries as well as my own builds (MSVC14 and MSVC15) with the same re

2 replies1 file

Compilation error of 7.5.0 with VTK-9

Hello, OpenCascade 7.5.0 builds fine against VTK-8, but I tried to switch to VTK-9 and it fails. I already reported the problem to VTK: see Kitware's gitlab, issue 18240 , but the problem seems hard to fix on their side: has anyone succeeded to build OpenCascade against VTK-9? Thanks!

6 replies

Mingw & opencascade-7.5.0-vc14-64.exe

I am using mingw-w64 in my projects, if I install opencascade-7.5.0-vc14-64.exe is there will be a problem? Is it compatible with only Visual Studio? Note: I build opencascade with mingw-w64 before it works perfect this just a curiosity.

2 replies

Linking Open cascade to Visual studio

I am a new to open cascade. I tried opening samples from open cascade in visual studio and it is showing unresolved external symbol "public: void __thiscall Standard_Transient::IncrementRefCounter(void)const " (?IncrementRefCounter@Standard_Transient@@QBEXXZ) mfcsample C:\OpenCASCADE-7.5.0-vc14-64\o

1 reply1 file

Anonymous git access

Anonymous git access is mentioned here https://dev.opencascade.org/resources/git_repository but the URL is not accessible https://git.dev.opencascade.org/repos/occt.git Having anymous git access is important for build scripts and ci/cd pipelines. I'd be very grateful if it's restored. Thanks, Author

3 replies

file not found occ.obj

I am trying to create an application using QT5 and use OpenCASCADE in my applicatio. When i am trying to include OCC file i am getting an error "file not found occ.obj" or "occ.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall Standard_OutOfMemory::Standard_OutOfMemory(char cons

0 replies

c++ custom project setting

Hi all. I success to build OCC vc10 and its example. Then, I'd like to write my own project, but i cannot include .hxx files. what are the problems? I made c++ project, and for test, I want to use #include "gp_Pnt.hxx" to do this, I did followings : - VC++ directory - include directory : C:\OpenCASC

3 replies

OpenCascade - WebAssembly use

Hi, Im trying to create small webassemby module converting IGES to VRML file. C++ code compiled to "normal" application work ok. Emscripten compilation runs ok. Then im loading created .js file to my page Binded (EmBind) functions called from java script runs ok unless such function declares IGESCAF

2 replies

fatal error LNK1104: tcl86.lib

I have tried to compile OpenCascade on Win10 64bit, using VS2017. I compiled on 64bit, but I encounter a link errors, one of them is: 1>------ Build started: Project: TKDraw, Configuration: Debug x64 ------ 1>LINK : fatal error LNK1104: cannot open file 'tcl86.lib' ========== Build: 0 succeeded, 9 f

1 reply

Compiling OCC 7.4.0: unresolved external symbols

Hello, I am trying to build OCC 7.4.0 on Windows 10 using Visual Studio 2017 for x64 and everything compile fine except for the Media lib, which I have to following unresolved message: 1>Media_CodecContext.obj : error LNK2019: unresolved external symbol avcodec_free_context referenced in function "p

7 replies1 file

msvc.bat is not necessary

Hello Launching Visual Studio via msvc.bat looks outdated. I always forget to do it and I need to find our each time what are the parameters. We do not use it. Have a look at http://dynoinsight.com/Prod/Examples/opencascade-7.5.0.zip (there are only solution and project files) We are using OCCTDef.v

3 replies

The problem of TKLCAF.dll

I want to initialize the TDocStd_Application : Handle(TDocStd_Application) aApp = new TDocStd_Application(); However, the compiler prompts that it can't load the symbol from TKLCAF.dll. Other class can be used normally, such as TDF_Label, Tdocstd_Document. My occt version is 7.40 and the compiler I

1 reply

TKIGES TKSTL TKXSBase ... are not built / installed with 6.9.0

Trying to build FreeCAD the librares TKIGES TKSTL TKXSBase TKSTEP TKSTEPBase TKSTEPAttr TKCAF TKXCAF TKLCAF TKXDESTEP TKXDEIGES TKMeshVS are needed. While theese were built and installed with version 6.8.0 they are no longer built/installed with 6.9.0 with an identical build process on GenToo. So, s

4 replies

issue on building CadRay

Hallo everyone, Im involved to build from sources CadRay. I've found some issue using OCCT rev 7.4.0 regarding some changes on material library. Revision 7.3 does not work for missing library: CMake Error at CMake/macros.cmake:105 (message): OCCT TKRWMesh library not found Please can someone help me

6 replies

SALOME

Hi everybody my name is Nicolò and I'm an italian mechanical engineer. I'm trying to use salome 9.3 for Linux Ubuntu 18.04 64-bits on my Ubuntu 19.04 . But when I launch it from the terminal this happens: /home/gnicche/SALOME/salome:362: DeprecationWarning: the imp module is deprecated in favour of

4 replies

Visual Studio 2019 Version 16.4.4 hangs when building OCC

We are having problems building OCC 7.4, using C runtime 142 on Visual Studio 2019 16.4.4, In Release Win32 mode, we can build Foundation.sln, ModelingData.sln, but when we try to build ModelingAlgorithms.sln the compiler gets to BRepExtrema_DistShapeShape.cxx and seems to be in an infinite loop. Th

16 replies

Where to get the third party libraries for OCCT for Visual Studio 2017 and 2019?

Hello, I am trying to setup the dev environment for OCCT and trying to find the third party libraries for OCCT for Visual Studio 2017 or 2019. I am looking at https://old.opencascade.com/content/3rd-party-components but there only libraries for vc14 are listed. Where are the libraries for vc141 and

1 reply

Where to get the correct qt third party libraries for OCCT

Hello, I am setting up dev environment for OCCT. I am using Visual Studio 2015. I am not able to find the correct qt libraries for this VS version. The link at https://old.opencascade.com/content/3rd-party-components for qt takes me to qt version 4.8.6 built using VS 2010 and 2008. But in the includ

1 reply