Results 1 to 2 of 2

Thread: Need help on creating plugins

  1. #1
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Need help on creating plugins

    I'm creating a plugin.At first,it can be load by QPluginLoader.
    Then I need to use QJson in this plugin.
    I include the "parser.h" header, modify the pro file.It compiles without an error.
    But then it cannot be loaded anymore.
    I guess it's something to do with dependency.
    The folder structure is like this:

    MyApp
    .....|----------main.exe
    .....|----------libqjson.dll
    .....|----------plugins
    ...................|---------------myplugin.dll
    ...................|---------------anotherplugin.dll

    You can see that all the plugin dlls are in the plugins folder.In this case,myplugin.dll needs the libqjson.dll.But I don't know how to solve the problem.Any one can help me ?
    It's not the goodbye that hurts,but the flashback that follow.

  2. #2
    Join Date
    Apr 2010
    Posts
    98
    Thanks
    19
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default

    It's weird that if I lauch my app in qtcreator.It loads all my plugins.

    I solved it.
    It's because I'm building a debug version,and the qjson loads a release version of qtcore4(aka qtcore4.dll),so the qjson itself cannot find what it needs making my plugin unavailable.
    Last edited by wysota; 26th May 2010 at 08:10.
    It's not the goodbye that hurts,but the flashback that follow.

Similar Threads

  1. Creating MySQL and Oracle (OCI) plugins.
    By Blando in forum Newbie
    Replies: 3
    Last Post: 15th May 2010, 08:45
  2. Mac OS, plugins that user designer plugins
    By Royceybaby in forum Qt Programming
    Replies: 0
    Last Post: 9th May 2010, 01:40
  3. How to use plugins in Qt?
    By kremuwa in forum Newbie
    Replies: 1
    Last Post: 27th February 2010, 09:13
  4. 3D Plugins
    By synack in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2009, 12:26
  5. QT 4.2.2 and Ico plugins
    By Placido Currò in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2007, 15:13

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.