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

Showing 60 discussions, ordered by the latest archived activity.

Cross-compiling (Android) warning and error

Good afternoon, Currently,Encountered the following warning during compilation. How can I resolve it. Some additional information: -OpenCascade version 7.8.0 -CMake version3.22.1 -Cross-compilation toolchain for CMake: https://github.com/taka-no-me/android-cmake -Android NDK version R12b -MinGW vers

4 replies4 files

TKDraw project can't build in W32. ( 7.5.0 version )

Hi, I read some documentation about building the W32 project. All of the modules are ok but only Draw can't build successfully. The reason is the TKDraw project has an LNK1107 error, here is the description: fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8, which file is tk86.dll(

2 replies

CMake error when building with MFC

Dear Development Team, I am currently trying to follow Lesson 3: "Compile OpenCascade with MFC samples," but I am encountering a CMake error when building with MFC. The error message is as follows: CMake Error at samples/mfc/standard/mfcsample/CMakeLists.txt:123 (add_library): Cannot find source fil

4 replies1 file

Step by step instructions to run Open Cascade in Visual Studio

I downloaded https://dev.opencascade.org/system/files/occt/OCC_7.7.0_release/opencasc... to \Downloads\opencascade-7.7.0-vc14-64.exe I double clicked it to install at ...\OpenCASCADE-7.7.0-vc14-64 I read instructions at https://dev.opencascade.org/doc/occt-7.7.0/overview/html/index.html#intr... Envi

18 replies3 files

How to build cadrays?

How to build cadrays with new version OCCT? Is there is a tutorial for it?

3 replies

Intel oneAPI Threading Building Blocks (TBB) version

Hi, I was trying to compile OCC 7.7.2 from the git repository with TBB option enabled. However, I noticed that the cmake file supports only the version 2021.5.0, while the newest version would be the 2021.11.0. Is it simply a matter of changing the version in the cmake file?

2 replies

spam

Do you know how to stop the spamming, please ? https://dev.opencascade.org/content/jual-obat-cytotec-banjarmasin-085180... Regards

3 replies

Unable to build OCCT on Debian bookworm

Hi there! I'm unable to build OCCT in my Docker container, which uses Debian bookworm release. This is how I build it: WORKDIR "/dependencies" RUN git clone https://github.com/Open-Cascade-SAS/OCCT.git WORKDIR "/dependencies/OCCT" RUN mkdir occt-build RUN mkdir occt-install WORKDIR "/dependencies/OC

8 replies1 file

WebGL compile error??

The following error occurs while compiling through emscripten. Can you tell me why? 1>wasm-ld : error : unable to find library -lTKBin.lib 1>wasm-ld : error : unable to find library -lTKBinL.lib 1>wasm-ld : error : unable to find library -lTKBinTObj.lib 1>wasm-ld : error : unable to find library -lT

2 replies

Build error while building the OCCT 7.7.0 with the already installed VTK 9.3.0

I am trying to build the OCCT from source code on my headless Linux machine with the existing VTK package. I am using the OCCT version 7.7.0 and VTK version 9.3.0 I have built the VTK to support the offscreen/software rendering on Linux headless machine. I have used below configuration to build the

7 replies1 file

Dynamic link library construction problem

I think I need some help. I'm still a student, but I'm a self-taught programmer. I hope to build a dynamic link library suitable for arm architecture for application development on Huawei HarmonyOS system. I tried to get 61 files using (cmake && make) but I found I couldn't use them properly, maybe

2 replies

C# Wrapper

I have been trying all day to build the official C# wrapper from OpenCascade. The documentation hasn't been touched in what looks like 10 years and I cannot get the build to work. Attached is my build log.

1 reply1 file

opencascade-7.7.0 build error

First try to build the MSVC of OCCT for v142 it fails at TKservice with a missing lib 1>Target Link: 1> LINK : fatal error LNK1181: cannot open input file 'FreeImage.lib' 1>Done building target "Link" in project "TKService.vcxproj" -- FAILED. 1> 1>Done building project "TKService.vcxproj" -- FAILED.

1 reply

Upgrade OCCT version

Hello, I have installed installed the 7.4 version of OCCT by cloning the repository and using cmake "make install". Now I want to upgrade to the current version. Is there an option to "make uninstall" the older version? Best Regards Author

3 replies

Failure building OCCT version 7_7_2 with VTK version 9_2_6 on windows

When I try to build TKIVtk module on windows I got this error: LINK : fatal error LNK1104: cannot open file vtkRenderingOpenGL.lib My vtk installation directory has the module named vtkRenderingOpenGL2.lib and no way to change the module name with vtk cmake cache settings. If I change the module nam

1 reply

errors on building qt sample of occt7.6

I successfully build v7.6 on debian 11 and managed to extend system environment in qtcreator to run OCCTOverview.pro, but build fails with these linker-errors: /usr/bin/ld: warning: libTKCAF.so.7, needed by /usr/local/lib/libTKVCAF.so, may conflict with libTKCAF.so.11 /usr/bin/ld: Linux/objd/OcafSam

1 reply

[SOLVED] Failure half-way through build

Hello, I'm trying to build the project for the sake of compiling KiCAD from sources. I think I followed the instructions well, and make was working for about an hour, and completed 42% of the build, but then ran into an issue. It looks like an error somewhere, an ld got a bunch of flags where it was

2 replies

Failure to build qt OCCTOverview

Hey guys, I am new to occt, and was learning the tutorial. I can not build the qt OCCTOverview sample, I have defined the custom.bat, set the environment.But i still get the error.

7 replies2 files

OCC 7.6.0 static build error

I used CMake to configure: BUILD_LIBRARY_TYPE static only used TCLTK in visual Studio ALL BUILD no error INSTALL: errors MSB3073

1 reply

OpenCascade 7.7.0 3rd party components vc14, 32bit

Hi May be someone can help with 3rd party components for OpenCascade 7.7.0 to be able build DLLs for 32 bit using vc14 ? Had not problem to build 7.4, 7.5, 7.6 versions. But problem on 7.7 with tbb for example. Used tbb44_20160526oss, that had folders ia32 for vc11, vc12, vc14 but now getting many e

3 replies

Compilation error with FFmpeg 6.0

OpenCascade 7.7.0 builds fine for me with ffmpeg-4.4.3, but compilation aborts when trying FFmpeg 6.0: [ 38% 2291/5992] /usr/bin/c++ -DHAVE_DRACO -DHAVE_FFMPEG -DHAVE_FREEIMAGE -DHAVE_FREETYPE -DHAVE_GLES2_EXT -DHAVE_OPENGL_EXT -DHAVE_RAPIDJSON -DHAVE_TK -DHAVE_VTK -DHAVE_XLIB -DOCC_CONVERT_SIGNALS

1 reply

Backward Compatibility of OCCT 7.7.0 for Debian 10

Dear Open CASCADE Community, Is backward compatibility provided in Open CASCADE version 7.7.0? I do the same things on 7.7.0 as I compiled 7.6.0 on Debian 10, however, my code that worked in the past is not working now. Sample errors can be seen below image: Archived image: occt 7 7 0 errors on linu

6 replies1 file

Error when compiling VTK v9.2.6 support for opencascad?

When compiling the latest OCC: commit 8748042259f22d72b3b076bc5433a54ca42734e4 (origin/master, origin/HEAD) Author: akaftasev <[email removed]> Date: Mon May 22 12:00:32 2023 +0100 against VTK V9.2.6,I got this error: In file included from /usr/include/GL/glx.h:30, from /home/alex/workspace/OCCT/src

3 replies

Failed to build OCCT with BUILD_Inspector checked.

Hi, I'm trying to build OCCT with Build_Inspector checked in order to be able to use it. I generated OCCT with CMake with QT 4.8.6 (the required one in the 3rd party components). Once I open the project and I try to build it, I receive several LINK errors, mostly on TKDFBrowser: Severity Code Descri

4 replies1 file

Understanding module/package dependencies while building with CMake

I am trying to build the latest version of OCCT using cmake (via cmake-gui ), I unticked the Visualization and Draw module as I don't want to build those) and only ticked the USE_RAPIDJSON variable in the USE group of cmake variables. For some reason my compilation STILL builds TKService and TKV3d w

1 reply

Importing OCCT libraries using CMake in CLion23.1 linking issue

Hello all, I have been trying to setup occt using a simple project in CLion IDE, while building the CMakeLists.txt file I keep running into an issue where the build was failing due to undefined definition errors, I have made sure that the libraries are properly linked and the include directories are

0 replies1 file

CMake files on macOS link to non-existent libtbb.12.8.dylib

Hi, I want to compile an application ( LibrePCB ) which depends on OpenCascade. On macOS therefore I installed OpenCASCADE with Homebrew, which automatically installs the dependency tbb as well: brew install opencascade OpenCascade is then found by CMake when building LibrePCB. But then make fails b

2 replies

Why I can not watch the value ?

hi,I start a new project with vs2017 as follows. #include<BRepPrimAPI_MakeBox.hxx> int main() { BRepPrimAPI_MakeBox box(1,2,3); const TopoDS_Shape & shap = box.Shape(); return 0; } The variables of box and shap can not be watched. And I can not go to define of BRepPrimAPI_MakeBox by press F11. watch

3 replies1 file

3RDPARTY_TCL_LIBRARY_DIR and 3RDPARTY_TK_LIBRARY_DIR

Hello Guys, When I try to configure cmake to build Shared OCCT binaries I get this error: CMake Error at CMakeLists.txt:763 (message): Could not find libraries of used third-party products: 3RDPARTY_TCL_LIBRARY_DIR 3RDPARTY_TK_LIBRARY_DIR I definitely define directories to libraries: 3RDPARTY_DIR /m

11 replies1 file

Install OpenCascade on Linux

Dear all, I did download OCC 7.4 but I dont know how to install it on Linux. Any clue on this? Thanks,

4 replies

Update the existing installation of the OCCT to make use of Draco package

I have installed the OCCT 7.7.0 on my machine. During the installation of OCCT, Draco library (3rd Party Library) was not the part. But now I want to use the Draco library. Is there any way to re-configure the existing installation of the OCCT to support the Draco library and functionality. I am usi

2 replies

How to access data from .write() in opencascade.js

I'm trying to access my data from my exported step file in opencascade.js. I used this example https://github.com/donalffons/opencascade.js-examples and updated the library.js like this to export a step-file: var writer = new openCascade.STEPControl_Writer_1(); var progressRange = new openCascade.Me

0 replies

7.7.0 unable to compile

I have added the path, but it is still unrecognized ------------------------------------------ Info: /D_WINDOWS has been removed from CMAKE_C_FLAGS Info: /DWIN32 has been removed from CMAKE_C_FLAGS Info: TCL is used by OCCT Info: TK is used from TCL folder: E:\OpenCASCADE-7.7.0-vc14-64\tcltk-86-64 I

3 replies3 files

Using OpenCascade.js to import step, transform and export as step.

Hi, I'm trying to import stp files transform them and export them as stp again. I tried several ways updating the example Bottle file, using STEPControl_Writer, but didnt manage to get it working. Do you havean example saving stp using opencascade.js? thanks in regard

0 replies

HELP for building please

How can I build CADRays. I am sorry for my question but I didnt build any app before it. And I have another question. If I build CADRays successfuly, what it gives me? I mean to say my CADRays is v1.0.0 and if I will build CADRays with new OCCT is it better or not? And how can I do it. I dont know a

1 reply

undefined reference to `Standard_Transient::DecrementRefCounter() const`

Hello, I've built from github branch 7.6 and installed in a separate directory so I can examine the headers and libraries. I've got a toy app I'm playing with, as my task it to build a Python wrapper for a converter from BREP to Voxels. I'm using C++ and CMake on Ubuntu 18.04 so no prebuilt packages

1 reply

Error compiling with OpenVR

Hello all I get following error while trying to compile 7.7.0 with OpenVR [ 36%] Building CXX object src/TKService/CMakeFiles/TKService.dir/__/Aspect/Aspect_OpenVRSession.cxx.obj C:\opencascade-7.7.0\src\Aspect\Aspect_OpenVRSession.cxx:171:35: error: expected unqualified-id before ')' token 171 | As

1 reply

Enviroment Variable Issues?

Hello I installed OpenCASCADE 7.4.0 in windows using prebuilt installer, whenever I try to build a project uses OCCT I got thiss error: 'C:/occt-3rdparty/Windows-64-VC14/freeimage-3.17.0-vc14-64/lib/FreeImage.lib', needed by 'Example.exe', missing and no known rule to make it" but it is in located a

1 reply

Creating a simple web application with 3D viewer

Hello, I am fairly new to OpenCASCADE and I am trying to understand the process of creating a simple 3D viewer web application, similar to the WebGL sample provided in the OCCT source. I've been reading a lot about building OCCT with Emscripten, but i can't get it to work properly (i also can't get

3 replies

Sample Code cannot find in the Qt: OCCT Overview

Hi Bros, I'm new in OCCT. I try to learn more skills in sample, how my Qt: OCCT Overview cannot show the sample code. I get an error:"ERROR: Cannot open file: \TopologySamples.cxx" where should I place the cxx file.

1 reply2 files

building OpenCASCADE 7.7.0 with adm/qmake with error

I'm trying to build OpenCASCADE 7.7.0 using adm/qmake/OCCT.pro, which is not shown in document and I have such complie problem: cd FoundationClasses\ && ( if not exist Makefile D:\QT\qt-5.15.2-x64\5.15.2\mingw81_64\bin\qmake.exe -o Makefile D:\OpenCASCADE-7.7.0-vc14-64\opencascade-7.7.0\adm\qmake\Fo

1 reply

Android build error

hello. I am trying to use the Opencascade Android project. However, at the Cmake stage CMake Error at CMakeLists.txt:875 (message): Could not find libraries of used third-party products: 3RDPARTY_FREETYPE_LIBRARY_DIR I am unable to resolve this error. The rest of the paths are found well, but only t

0 replies2 files

unable to find library -lfreetype

I have been using docker to build the webassembly draw tool. I recently merged the latest code looks like it's reporting an error. #36 1321.2 Scanning dependencies of target DRAWEXE #36 1321.3 [100%] Building CXX object src/DRAWEXE/CMakeFiles/DRAWEXE.dir/DRAWEXE.cxx.o #36 1321.3 em++: warning: linke

0 replies

Support for different libc implementations on Linux?

Some time ago, we received a report[1], that opencascade won't build against the `musl` libc implementation on Gentoo Linux. Because occt already supports various platforms with their respective libc implementations, I was wondering, if there will be support for lesser used libc implementations on l

2 replies

OCCT 7.3 does not support .NET Framework 6.0

Hello Team, we developed an application in VC++ using OCCT 7.3 libraries using MS VS 2019 but now we have upgraded .NET Framework to 6.0 where we observed that application developed using OCCT 7.3 libraries does not work can you please let us know what OCCT release do we need to use for supporting .

0 replies

How run OpenCASCADE in telephone

I'm trying to run the OpenCascade library on my phone. To do this, I decided to use html, js. It turned out to connect a mathematical library, but I do not know how to connect OpenCascade. All code : <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <script src= https://cdnjs.cloudflare.com/aja

2 replies

error LNK1104: cannot open file 'TKernel.lib' : solved

Hi, I'm new to OpenCascade. I have downloaded OpenCascade 7.5.0 I am using Visual studio 2012 I have opened sample CSharp code in VS2012. While compiling project OCCTProxy, I am getting error : cannot open file TKernel.lib In my downloaded folder, there is no TKernel.lib file anywhere. How to get ov

1 reply

Webassembly whit multithreading,BRepAlgoAPI_BooleanOperation fail.

When I compiled the code into WASM with multithreading,BRepAlgoAPI_BooleanOperation fail. The error like this: ------------------------------------------------------------------------- worker.js onmessage() captured an uncaught exception: RuntimeError: Aborted(segmentation fault) worker.js onmessage

1 reply

OpenCascade v7.7.0 not compiling - Missing files

Hi, there is some errors in the openscade-7.7.0.tgz packages. Microsoft Visual Studio projects have a list of files that do not exist. The first is "..\..\..\src\FSD\FSD_Base64Decoder.cxx". There issues is already present in your bug tracker ( https://tracker.dev.opencascade.org/view.php?id=31514 ).

1 reply

Migration from OpenCASCADE6.7.1 to OpenCASCADE-7.6.0-vc14-64

In MFC application was used part of Opencascade code responsible for read/write IGES files. With OpenCASCADE6.7.1 everithing works fine. After migration to OpenCASCADE-7.6.0-vc14-64 it was not compiling errors or warnings. But application crashed randomly on Opencascade codes, even on very first one

9 replies

TBB "Directory is not set"

<code> CMake Error at adm/cmake/tbb.cmake:8 (message): Directory is not set. Call Stack (most recent call first): CMakeLists.txt:34 (include) CMakeLists.txt:725 (OCCT_INCLUDE_CMAKE_FILE) -- Configuring incomplete, errors occurred! </code> I've successfully built opencascade-7.6.3 against https://arc

2 replies

Install salome in Ubuntu 20.04 (in vbox)

Dear experts, I tried to install salome in my ubuntu 20.04 system. But when I used ./salome command, I got a message saying: Warning, no type found for resource "localhost", using default value "single_machine" double free or corruption (out) And for that although the salome page is opening, but it

0 replies1 file

[Solved] Build failure with LTO (-Werror=odr)

I received a bug report[1] where building v7.6.2 fails when LTO is used. The issue is about the One Definition Rule of modern C++ standards: FAILED: lin64/gcc/libi/libTKXCAF.so.7.6.2 /var/tmp/portage/sci-libs/opencascade-7.6.2-r1/work/occt-V7_6_2/src/XCAFDoc/XCAFDoc_Datum.cxx:37:6: error: type ‘Chil

1 reply

Don't pre-strip binaries

Currently the binaries are stripped during linking through some settings in adm/cmake/occt_defs_flags.cmake . This can lead to issues on distributions, where the package manager applications is supposed to strip binaries[1] or extract debugging information for later usage in case of debug builds. Wo

2 replies