Qt Creator & third party CAD API libraries
-
Greetings guys!
I acknowledge that the problem I address concerns not widespread third-party libraries (though I am ready to provide any additional info, including the libraries itself), but I really appreciate any assistance with finding the solution, since this problem utterly nonpluses me.
Recently I made a number of unsuccessful attempts to develop the basic app using Qt Creator which is to utilize Compass 3D API (Compass 3D is a native Russian CAD system).
The problem is that when I tried to build the template-based app with inclusion of API libs, i.e. containing:#include <Ks_TLB.h>
in main.cpp, I got the error message:
c:\Program Files\ASCON\KOMPAS-3D v19\SDK\Include\Ks_TLB.h:33: error: utilcls.h: No such file or directory c:/Program Files/ASCON/KOMPAS-3D v19/SDK/Include/Ks_TLB.h:33:10: fatal error: utilcls.h: No such file or directory 33 | #include <utilcls.h>
I as far as I understand, header Ks_TLB.h (which is supposed to encompass the declarations of COM interfaces and is a part of Compass 3D SDK) refers to utilcls.h, which couldn't be located by the linker. After a cursory investigation I found out that utilcls.h is most likely one of the C++ Builder libraries. Are my assumption correct?
Now the question is: is it possible to somehow build an app using Qt Creator with this header or not? And if not, what am I supposed to do next? Should I look for some headers, compatible with Qt Creator and what are the requirements for compatibility?In advance, I apologize in case if I used some incorrect terms, that's solely due to the fact that I'm not a professional developer, just a mechanical design engineer striving to harness the power of CAD's API.
Thanks for your attention.
I'm using Qt Creator 6.0.1 (Qt 6.2.2) and MinGW 64 bit under Windows 10. -
@alphawell said in Qt Creator & third party CAD API libraries:
which couldn't be located by the linker
By the compiler, not linker.
Also, QtCreator is not the problem here.It looks like the SDK you're trying to use supports Visual Studio C++ compilers.
So the question is: what compiler do you use? -
@alphawell Just saw you meantioned MinGW - you will have to use Microsoft C++ compiler like mentioned here: https://ascon.net/products/c3d-labs/c3d-toolkit/
"Development Framework: Microsoft Visual Studio 2015 / 2017 / 2019" -
@jsulm Wow, thanks. So I guess I should install Visual Studio for this purpose, since I'm not able to find any separate compiler for download, correct me please if I'm wrong. Currently my project contains one kit labeled "Desktop Qt 6.2.2 MSVC2019 64bit", but unfortunately it is marked with a warning sign (I suppose that's because there are no compilers available):
-
@alphawell said in Qt Creator & third party CAD API libraries:
So I guess I should install Visual Studio for this purpose, since I'm not able to find any separate compiler for download
Microsoft Build Tools should be enough (and the SDK to get also the debugger).
-
@jsulm for some reason that does not work. Now, after installation of Visual Studio 2022 (currently I have an active kit "Desktop Qt 6.2.2 MSVC2019 64bit") I made an attempt to build the app, and got the same compiler issue (from another compiler though):
C:\Program Files\ASCON\KOMPAS-3D v19\SDK\Include\Ks_TLB.h:33: error: C1083: Cannot open include file: 'utilcls.h': No such file or directory
is it worth to download this header from somewhere? What's the odds that will rectify the situation? Do you have any ideas?
Thanks.
-
@alphawell said in Qt Creator & third party CAD API libraries:
is it worth to download this header from somewhere?
Did you search for this header file in this KOMPAS-3D SDK?
If it is there you probably just need to set INCLUDEPATH in your pro file, so the compiler can find it. -
@jsulm No way, there is no such file in SDK. And concerning to INCLUDEPATH, it's too obvious (even for me), the fist thing I've done when creating this project is I've added SDK path to the project. Apparently, compiler failed to find required header file (and so do I, manually, using the file manager).
-
@alphawell I suggest to ask the company providing this SDK. They claim it works with MSVC.
-
@jsulm Well, to be precise, the SDK you're mentioned
@jsulm said in Qt Creator & third party CAD API libraries:
mentioned here: https://ascon.net/products/c3d-labs/c3d-toolkit/
is not the SDK I originally told about, because this is, as far as i understand, is the SDK of 3D kernel. This is a generic tool to perform manipulations with the 3D solids. What I initially told about is the CAD API, which deals with all kinds of CAD-associated routines e.g. drawings, part lists, 3D-models etc., and I'm not aware of any official obligations of compatibility of this SDK with Visual Studio, though my colleagues successfully use Python to manipulate CAD (i.e. they use PyCharm to develop some basic scripts without GUI to leverage CAD system's functionality).
Nevertheless, thanks, contact the developer is still a good idea (which I will shortly use).
-
@alphawell said in Qt Creator & third party CAD API libraries:
and I'm not aware of any official obligations of compatibility of this SDK with Visual Studi
Then you should clarify this first.
Maybe this SDK does not support Visual C++.