Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Simple ActiveX - Class has no metaobject information

    General and Desktop
    3
    3
    325
    Loading More Posts
    • 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.
    • M
      marinilo last edited by

      Hi,
      with Qt version 5.12.4, I have successfully tried to compile the simple example (ActiveQt) at this link: https://doc.qt.io/qt-5.12/activeqt-activeqt-simple-example.html
      In this example no library is linked.
      If I try to link any library (LIBS += -llibd in the .pro file) , the following error occurs:
      "Couldn't load library file simpleax.dll
      Class has no metaobject information
      mingw32-make[1]: [Makefile.Debug:67: simpleax.dll] Error 3 (ignored).
      "

      Is anyone aware of this problem?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Are you sure that the .dlls matching your dependencies can be found at run time ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • hskoglund
          hskoglund last edited by

          Hi, that error typically occurs when there's no matching .tlb type library file, e.g. no simpleax.tlb file.
          The MinGW compiler manages to create *.idl files just fine with the idc.exe tool, but it has no midl.exe to create the .tlb file from the .idl file (yet). So for that last step, think you need MSVC :-(

          1 Reply Last reply Reply Quote 1
          • First post
            Last post