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 found. TK will be disabled.
Info: The directories of 3rdparty headers:
D:\libraries\cpp\tcl\tcl9.0.3\include
D:\libraries\cpp\tk\tk9.0.3\include
CMake Error at CMakeLists.txt:954 (message):
Could not find libraries of used third-party products:
3RDPARTY_TCL_LIBRARY_DIR
CMake Warning at CMakeLists.txt:969 (message):
Could not find DLLs of used third-party products: 3RDPARTY_TCL_DLL_DIR
3RDPARTY_TK_DLL_DIR

What exactly is needed? Which files? I provided him a folder with the h files and another folder with the compiled lib's and DLL's. What is still missing?

Best regards

Attachments: 
Dmitrii Pasukhin's picture

Hello.

TCL 9.0 is not supported officially. Please use 3rd-party folder which destributed with windows OCCT releases. 8.6.* is supported.

In case if you don't need DRAWEXE, please disable in in CMAke and TCL 3rd-party requirements will be disabled.

Best regards, Dmitrii.

Marco's picture

Hi Dmitrii,

thank you very much. That helps!

One last question: I also have problems with the paths for Freetype: Could not find libraries of used third-party products:
3RDPARTY_FREETYPE_LIBRARY_DIR

I set the path to the folder where I have the release version of freetype.lib, freetype.dll and freetype.pdb.
The debug versions have the same names and are in another folder. For testing purpose I renamed them to freetyped.<ext> and copyed them into the same folder.
But it's always the same: cmake complains about the path.
I suppose I have the wrong name scheme or so, but I didn't find a clue in th cmakelist what it expects.

So can you tell me how the library and dll folder must be structured for freetype, so that the cmake config is satisfied?