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 project does not need compatibility with older versions.

Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
Info: /D_WINDOWS has been removed from CMAKE_CXX_FLAGS
Info: /DWIN32 has been removed from CMAKE_CXX_FLAGS
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
Could NOT find Tclsh (missing: TCL_TCLSH)
Info: TK is used by OCCT
Could NOT find Tclsh (missing: TCL_TCLSH)
Info: FreeType is used by OCCT
Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Info: TKIVtk and TKIVtkDraw toolkits excluded due to VTK usage is disabled
CMake Error at CMakeLists.txt:868 (message):
Could not find headers of used third-party products:
3RDPARTY_TCL_INCLUDE_DIR 3RDPARTY_TK_INCLUDE_DIR
3RDPARTY_FREETYPE_INCLUDE_DIR_ft2build
3RDPARTY_FREETYPE_INCLUDE_DIR_freetype2

Configuring incomplete, errors occurred!

Dmitrii Pasukhin's picture

Hello. The issue is missed TCL and TK. They are necessary for BUILD_MODULE_DRAW. You can disable using of them from USE_TK USE_FreeType parameter.

But if you working on windows, I recommend, to use 3rd party from https://github.com/Open-Cascade-SAS/OCCT/releases/tag/V7_8_0

You will need to download 3rd party folder. And during configure"-D3RDPARTY_DIR=..."

If you are working from linux, install from distribution repo.

An extra information, in that month VCPKG will be integrated into OCCT.

Best regards, Dmitrii.

Star LV's picture

hi,I encountered the same problem about CMake Error at CMakeLists.txt:868 (message):
Could not find headers of used third-party products:
3RDPARTY_TCL_INCLUDE_DIR 3RDPARTY_TK_INCLUDE_DIR FLEX_INCLUDE_DIR
, but I have already downloaded 3rdpaty. I have the header file path, but I cannot find it in cmake

Dmitrii Pasukhin's picture

Hello, the issue with spaces. That sometimes can leads to issues. In that case you need just to specify 2 variables manually to include folder

3RDPARTY_TCL_INCLUDE_DIR and 3RDPARTY_TK_INCLUDE_DIR. As for a Flex, please disable CMake variable for "BUILD_YACCLEX". I didn't put 3rd-party for that operation. It is for rebuild generated files. That generation is not recommended to rebuild in case if you don't upgrading functionality.

Best regards, Dmitrii.

Purushothaman Munusamy's picture

I am on windows. i sorted out the issue with OCC executable file, I was using source file.

I have another issue, please help if you can.

When i compile in visual studio i get "Tkernel.dll was not found error. "

Dmitrii Pasukhin's picture

Do you compile you own project? In that case probably there are a miss print. Tkernel->TKernel

You can check the CMake sample how to integrate OCCT: https://github.com/dpasukhi/DE_Wrapper-Sample

Best regards, Dmitrii 

Purushothaman Munusamy's picture

I am following youtube tutorial in this link : https://youtu.be/i5zCHArA06E?list=PL_WFkJrQIY2iVVchOPhl77xl432jeNYfQ&t=237

he is adding "bind" folder in visual studio environment path . I cant able to find bind folder in newer version of OCCT i believe. path is "..occt-vc143-64\win64\vc14\bind

Dmitrii Pasukhin's picture

Oh, oke. I'm not a fun of that channel.

"bind & libd" is a debug libs, they will be generated as soon as you making "install" for "Debug" config. "bin & lib" for Release config, "debi & libi" for ReleaseWithDebInfo config.

Best regards, Dmitrii.

Purushothaman Munusamy's picture

I think i don't understand what do you mean. I am in debug mode, x64. i don't see the folders yet.

Dmitrii Pasukhin's picture

To recieve usable folder you need to specify the installation path.

"-DINSTALL_DIR=C:/Program Files (x86)/OCCT". It is a default path. The goal folder will be here. You can update that varaible

Do not forgot to build "INSTALL project in VS". Only after building "INSTALL" the necessary folder will be created. It is not accepted to use result of BUILD_ALL. You need to call "INSTALL".

Best regards, Dmitrii.

Purushothaman Munusamy's picture

I download this link from official website : https://github.com/Open-Cascade-SAS/OCCT/releases/download/V7_8_0/occt-v...

After that i didn't install anything. just extracted the file. So there is no such thing as install folder.

There is no exe file in the downloaded zip. I am so sorry to bother you too much. I am new to programming and visual studio.

Dmitrii Pasukhin's picture

The official package from 7.8 have no exe. Additionally that package contains only release version.

Best regards, Dmitrii.

Purushothaman Munusamy's picture

Thank you. i will try to install older versions.

Dmitrii Pasukhin's picture

Official packages not delivered in debug mode.

We will start do in November (as a weekly packages).

Best regards, Dmitrii.

Purushothaman Munusamy's picture

Finally managed to get everything work. I am struggling to install qt now. QT is not showing in cmake like others not sure why. I am using opencascade-7.7.0.

I can see other 3RD PARTY PACKAGES. i have QT package also in folders list. but it is not showing in cmake dialog. may be i need to configure something to show it? Please help.

Dmitrii Pasukhin's picture

QT will shown in case if you will build one of the module BUILD_QT_SAMPLE BUILD_TInspector.

Only when some components require QT, QT will be shown.

If you need more information, let me know:)

Best regards, Dmitrii.

Purushothaman Munusamy's picture

That worked! :) Thank you so much for your patience and time. I will go through the online documentation next.

I am wondering if you can direct me to some good video tutorials to start with.

Dmitrii Pasukhin's picture

Probably there no single place for all information.

My favourite: https://unlimited3d.wordpress.com/author/gkv311/

And you always can check our documentation. Unfortunately it is not so up to date. But you always can collaborate and send us your changes.

https://dev.opencascade.org/doc/overview/html/occt_user_guides__step.html

Best regards, Dmitrii.

Purushothaman Munusamy's picture

Thank you for the links. I am trying to run OCCTOverview. and i am getting error "libGLESv2d.dll" was not found. there is no such dll in "OpenCASCADE-7.7.0-vc14-64\qt5.11.2-vc14-64\bin" folder. Instead i have "libGLESv2d.dll".

Please help.

Dmitrii Pasukhin's picture

Hello, "libGLESv2.dll" can be found as a part of package "angle-gles2-2.1.0-vc14-64". You can find in latest archive

 

Assets

https://github.com/Open-Cascade-SAS/OCCT/releases/tag/V7_8_0

Best regards, Dmitrii.

Purushothaman Munusamy's picture

After deleting all files. I redownloaded all the files in the github link above.

Cmake still throws error "Found unsuitable Qt version "" from NOTFOUND
Info: Qt is used by OCCT"

i have Qt in "/OpenCASCADE-7.7.0-vc14-64/3rdparty-vc14-64/qt5.11.2-vc14-64" path at 3rdPARTY_QT_DIR. Still shows error.

Please help.

Dmitrii Pasukhin's picture

CMAke variable for QT dir is "3RDPARTY_QT_DIR". Case sensitive.

-D3RDPARTY_QT_DIR="<...>/OpenCASCADE-7.7.0-vc14-64/3rdparty-vc14-64/qt5.11.2-vc14-64"

Best regards, DMitrii.

Purushothaman Munusamy's picture

here is the more details of error that i get in cmake after configure.

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 (include)
tools/TKShapeView/CMakeLists.txt:6 (OCCT_INCLUDE_CMAKE_FILE)

CMake Error at adm/cmake/qt_macro.cmake:62 (qt4_add_resources):
Unknown CMake command "qt4_add_resources".
Call Stack (most recent call first):
adm/cmake/qt_macro.cmake:97 (FIND_AND_WRAP_RESOURCE_FILE)
adm/cmake/occt_toolkit.cmake:205 (FIND_AND_INSTALL_QT_RESOURCES)
CMakeLists.txt:34 (include)
tools/TKShapeView/CMakeLists.txt:6 (OCCT_INCLUDE_CMAKE_FILE)

Purushothaman Munusamy's picture

I can't able to find solution for the github downloaded files. i will come back for it after you officially release on november. For now i reverted back to old version. I checked some of the tutorials and i am searching more. Qt, MFC are still not working for me in older version (Opencascade 7.7.0) which i downloaded from official website links. i am checking VTK now. if it disappoints me, i see no choice other than AIS.

Please correct me if i am wrong and Many thanks for your help so far. I am new to c++ and visual studio as well. May be that is where i am losing myself.

Dmitrii Pasukhin's picture

QT from 3rd party 7.8 s not for reuse. It is only with DLL for eal time.

For reuse we do not redistributed in 7.8, but QT 5 is available as a part of 7.7 package.

MFC working in 7.8 with no issues. Compiled samples available in GitHub page. MFC do not need QT. But MFC had an internal bug for CMake, that was fixed in latest master.

Ar least I have no issues with building.

As for a VTK, you can check it  too. All version are supported, from 6 to 9.

As for your issue, I don't know what your log means. Qt5 needs to be used from 7.7 package.

Best regards, Dmitrii.