Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Simple ActiveX - Class has no metaobject information

Simple ActiveX - Class has no metaobject information

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 714 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.
  • M Offline
    M Offline
    marinilo
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        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
        1

        • Login

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