Qt Creator & third party CAD API libraries
-
@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++.