1

I am trying to build a QtPlugin architecture but I can't even get off the ground with the simplest plugin. I created this plugin using the the examples and reading all over the websites, but no matter what I cannot load my plugin.

Upon calling instance() I get a 0 and the errorString() says could not find shared library.

4
  • That error usually means you have passed an incorrect path to the loader. Commented Nov 3, 2012 at 20:09
  • facepalm yep totally forgot absolute file path. Make that the answer so I can accept. Commented Nov 3, 2012 at 20:09
  • You wouldn't happen to know what this means libpt_firstpluginimp.so: undefined symbol: _ZTV15SecondPluginImp. I am working towards an architecture that loads plugins which in turn can loads plugins. My first step is to have a plugin which takes in "secondplugin.h"(interface) and "secondpluginimp.h" (implementation of interface) and has a 'SecondPlugin * cur_plugin = new SecondPluginImp()` as an initial test. Commented Nov 3, 2012 at 20:26
  • It usually means you have forgotten to define a static member in the source file, or you have declared a method as virtual but have forgotten to implement it. Commented Nov 3, 2012 at 20:42

1 Answer 1

1

That error usually means you have passed an incorrect path to the loader.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.