Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator & third party CAD API libraries
QtWS25 Last Chance

Qt Creator & third party CAD API libraries

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
12 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • alphawellA Offline
    alphawellA Offline
    alphawell
    wrote on last edited by alphawell
    #1

    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.

    Truth is what stands the test of experience.

    jsulmJ 2 Replies Last reply
    0
    • alphawellA alphawell

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • alphawellA alphawell

        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.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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"

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        alphawellA 2 Replies Last reply
        0
        • jsulmJ jsulm

          @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"

          alphawellA Offline
          alphawellA Offline
          alphawell
          wrote on last edited by
          #4

          @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):
          Screenshot 2022-04-08 133658.png

          Truth is what stands the test of experience.

          jsulmJ 1 Reply Last reply
          0
          • jsulmJ jsulm

            @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"

            alphawellA Offline
            alphawellA Offline
            alphawell
            wrote on last edited by
            #5

            @jsulm Oh, I've just find out that what I probably need is Windows SDK. I'll try to install and go on with it.

            Truth is what stands the test of experience.

            1 Reply Last reply
            0
            • alphawellA alphawell

              @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):
              Screenshot 2022-04-08 133658.png

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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).

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              alphawellA 1 Reply Last reply
              0
              • jsulmJ jsulm

                @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).

                alphawellA Offline
                alphawellA Offline
                alphawell
                wrote on last edited by
                #7

                @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.

                Truth is what stands the test of experience.

                jsulmJ 1 Reply Last reply
                0
                • alphawellA alphawell

                  @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.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @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.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  alphawellA 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @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.

                    alphawellA Offline
                    alphawellA Offline
                    alphawell
                    wrote on last edited by alphawell
                    #9

                    @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).

                    Truth is what stands the test of experience.

                    jsulmJ 1 Reply Last reply
                    0
                    • alphawellA alphawell

                      @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).

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @alphawell I suggest to ask the company providing this SDK. They claim it works with MSVC.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      alphawellA 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @alphawell I suggest to ask the company providing this SDK. They claim it works with MSVC.

                        alphawellA Offline
                        alphawellA Offline
                        alphawell
                        wrote on last edited by alphawell
                        #11

                        @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).

                        Truth is what stands the test of experience.

                        jsulmJ 1 Reply Last reply
                        0
                        • alphawellA alphawell

                          @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).

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @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++.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved