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 Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "__declspec(dllimport) void __cdecl qt_assert_x(char const *,char const *,char const *,int)" (__imp_?qt_assert_x@@YAXPEBD00H@Z) TKDFBrowser C:\OCCT\OCCT_Project\tools\TKDFBrowser\DFBrowserPane_AttributePane.obj 1

I saw that CMake auto adds a new field called Ungrouped Entries where Qt5 appears as not found. Could be an issue if I don't have that version installed?

Best regards.

Dmitrii Pasukhin's picture

Hello,

In theory, the Inspector should build with Qt4. But right now it's mostly used with Qt5. I'll create a ticket to analyze this problem.

But the most reliable option is to use Qt 5.11.2 or similar.

Best regards, Dmtrii.

Lorenzo Napl's picture

Hello Dimitri,

I downloaded the already compiled OCCT from https://dev.opencascade.org/release, I took the QT version that comes with it (5.11.2 vc14-64) and I was able to build and install the OCCT source code (using cmake gui).
If I execute the inspector.bat I get the error attached to the first image that I attached.
In the other hand, If I execute the TInspectorEXE.exe located at win64>vc14>bind a few system errors appears related to dlls not found. Those dll are:
Qt5Cored
Qt5Widgetsd
Qt5Guid

Best Regards, Lorenzo

Attachments: 
gkv311 n's picture

You are trying a Debug build - inspector.bat might require parameters for this like inspector.bat vc14 win64 Debug or similar. Or you may try Release build.

Lorenzo Napl's picture

I'm interested on doing a debug build as my idea is to debug some plugins from the inspector in order to know how them works.
Adding parameters to inespector.bat prompts the same error message described before.

Regards.