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.txt:34 (find_package):
[cmake]   Found package configuration file:
[cmake] 
[cmake]     /usr/local/lib/cmake/opencascade/OpenCASCADEConfig.cmake
[cmake] 
[cmake]   but it set OpenCASCADE_FOUND to FALSE so package "OpenCASCADE" is
[cmake]   considered to be NOT FOUND.

when i've added this to my cmake:

set(OpenCASCADE_DIR "/usr/local/lib/cmake/opencascade/")

find_package(OpenCASCADE REQUIRED COMPONENTS TKernel TKMath TKGeomBase TKTInspector)

my console give me this output:

ls /usr/local/lib/libTKTInspector.so
/usr/local/lib/libTKTInspector.so

and i dont know what to do.
Even tried to fully rebuild OCCT with BUILD_Inspector flag on.
Any suggestions?Thx in advance.

Dmitrii Pasukhin's picture

Hello. Could you explain your scenarion in mode details? Are you have opencasacde installed? Or you want build occt+samples?

Best regards, Dmitrii.

Oleksii Samoluk's picture

I have builded opencascade by myself from source.
I want to use VInspector tree view in my application, show details of opened model in tree.
Best regards, Oleksii.

Oleksii Samoluk's picture

Hello Dmitrii, any suggestion?