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. Error linking custom Qt Creator plugin with other plugins
Forum Updated to NodeBB v4.3 + New Features

Error linking custom Qt Creator plugin with other plugins

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
pluginqtcreatorlinking
1 Posts 1 Posters 790 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.
  • EvolixE Offline
    EvolixE Offline
    Evolix
    wrote on last edited by
    #1

    I have the case that I have to use some objects and classes from the Project Explorer plugin in my own plugin.
    I added the dependency in the pro file, but the project cannot link.

    The problem : The error is an undefined reference to the staticMetaObject of classes I require.

    What I have :

    • I fully recompiled Qt 5.4 and Qt Creator 3.6.1, so I have all the files required (no?).
    • I use the Qt 5.4 recompiled kit to build my Qt Creator plugin (so it's compatible to my newly compiled Qt Creator if I'm not mistaken).

    What I tried (apart from building the project from Qt Creator) :

    • I ran nm libProjectExplorer.so | grep "staticMetaObject" and check that the symbols really existed (and yes).
    • I also checked that the plugin shared library is given to the linker.

    The question : I don't know what I'm missing here, does someone have any ideas ?

    PS: This is my first plugin for Qt Creator. Before adding ProjectExplorer the project built normally.

    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