Results 1 to 9 of 9

Thread: Trouble with plugin system's documentation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    Default Re: Trouble with plugin system's documentation

    Quote Originally Posted by niklas View Post
    Thank you. I've gotten the plugin to load now. Can't figure out what was wrong though, but I dead a clean project in QtCreator and now it works. Have not been able to reproduce the problem.
    Things like that happen sometimes. It usually comes from the way qmake dependency handling accross subdirs (or lack thereof). When you change a header file for your interface the plugin won't be recompiled unless that file appears in the HEADERS variable of the plugin project file.

    Quote Originally Posted by niklas View Post
    But now I cannot call member functions on the object. Getting bus error

    See attached file which is a small test case.
    Actual console output and/or full code (including plugin) would help.
    Current Qt projects : QCodeEdit, RotiDeCode

  2. #2
    Join Date
    Feb 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Trouble with plugin system's documentation

    I am still stuck with this problem
    Not getting bus error though, but the app unexpectedly quits.

    My code is here: http://rafb.net/p/AvStNW98.html
    Quitting when reaching line 22 where I call a function in the plugin.

    The full console output from running the app is:
    Starting /Users/niklas/code/test/PluginLoadingTest/PluginLoadingTest...
    plugin loaded!

    The program has unexpectedly finished.

  3. #3
    Join Date
    Feb 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Trouble with plugin system's documentation

    I just now got it to work. Even though it seemed as if it was successfully loaded it was not. I checked if instance() was null and it was not, but the error string was not empty - it said the build key differed.
    It differed even though I had recompiled both the plugin and the app since I updated to Qt 4.5.

    I tried removing the plugin binary and it worked - solved my problem!
    Wonder what I did wrong in QtCreator when trying to recompile...

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Trouble with plugin system's documentation

    Please stop storing your code on external sites.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 15:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.