PDA

View Full Version : Application plugin on windows



Eyee
21st March 2006, 09:04
Hello,

I have the following problem:
I develop an application under Linux, but it must also run under Windows. The app uses its own plugins (the qt style). I have a Plugin Interface and a base class that implements this interface. The base class is compiled into a dynamic library. The idea is: The user subclasses this base class without having to implement the interface. Furthermore the base class depends on other libraries.

So i have a plugin, a dynamic lib with the base class and other libraries. The plugin uses the base class lib. On Linux everything works fine, setting LD_LIBRARY_PATH to lib dir with the base class lib.

On Windows, the app compiles just fine, but the plugin isnt loaded at startup.

Any ideas? Where can i place the libs (.dll) on Windows?

jacek
21st March 2006, 13:42
DLLs should be in the same directory where the main executable is and plugins should be placed in proper subdirectories.

Eyee
22nd March 2006, 18:36
Ok, Problem solved. Forgot the DLL exports, now everything works.

Good Hints in this thread:
http://www.qtcentre.org/forum/showthread.php?t=638&highlight=missing