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. Error building some meta-compiler dependencies
Forum Updated to NodeBB v4.3 + New Features

Error building some meta-compiler dependencies

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 424 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
    misscoffee
    wrote on last edited by
    #1

    I have CMake Qt project and after define the Q_OBJECT-like constructor I got troubles with building

    1accacd9-68c2-4120-b833-814a48717901-image.png

    unresolved external symbol for some Meta Compiler functions

    fb9b52fc-2e8a-4ec7-b23e-49ab5072e8ad-image.png

    I had the same errors when I declared keyPressEvents but they have gone after I created function definitions for them. But whether I define constructor or not it gives these issues

    58e5d7e1-217d-4632-9e16-8968e7f5cde1-image.png

    JonBJ 1 Reply Last reply
    0
    • M misscoffee deleted this topic on
    • M misscoffee has marked this topic as solved on
    • M misscoffee has marked this topic as unsolved on
    • M misscoffee restored this topic on
    • M misscoffee

      I have CMake Qt project and after define the Q_OBJECT-like constructor I got troubles with building

      1accacd9-68c2-4120-b833-814a48717901-image.png

      unresolved external symbol for some Meta Compiler functions

      fb9b52fc-2e8a-4ec7-b23e-49ab5072e8ad-image.png

      I had the same errors when I declared keyPressEvents but they have gone after I created function definitions for them. But whether I define constructor or not it gives these issues

      58e5d7e1-217d-4632-9e16-8968e7f5cde1-image.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @misscoffee
      When/if you add Q_OBJECT macro to source after you have previously compiled you must "clean" everything before you recompile. I do this by deleting the build output directory, I don't know if any of Creator's "clean" menu items is enough. Have you done this? If not you get weird linker errors, which I suspect is what you have now.

      M 1 Reply Last reply
      0
      • JonBJ JonB

        @misscoffee
        When/if you add Q_OBJECT macro to source after you have previously compiled you must "clean" everything before you recompile. I do this by deleting the build output directory, I don't know if any of Creator's "clean" menu items is enough. Have you done this? If not you get weird linker errors, which I suspect is what you have now.

        M Offline
        M Offline
        misscoffee
        wrote on last edited by
        #3

        @JonB said in Error building some meta-compiler dependencies:

        When/if you add Q_OBJECT macro to source after you have previously compiled you must "clean" everything before you recompile. I do this by deleting the build output directory, I don't know if any of Creator's "clean" menu items is enough. Have you done this? If not you get weird linker errors, which I suspect is what you have now.

        I tried to close my project, delete /.vs and /.out folders and build my project again and it did not worked. But after I deleted Q_OBJECT my project at least started building but failed with this error in cmd:

        qt.qpa.plugin: could not find the qt platform plugin "windows" in "" this
        e8658d9c-9063-4d3a-b99b-36465ae10470-image.png

        It is quite off-top but I already saw some topics with new error but in PyQt and you have answered something there. Maybe you have idea about similar case in C++, VS? (I already tried to copy .dll files from folder platforms located in Qt root directory to ...\out\build\x64-debug\ and it didn't worked)

        1 Reply Last reply
        0
        • M misscoffee referenced this topic on

        • Login

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