11.08.2011, 20:05, "Thomas Ehrnhoefer" <[email protected]>:
> Hi List
>
> So I have my own plugins A and B, which compiles and works fine. They both 
> have their dependencies on other plugins.
>
> However now I would want plugin B to depend on plugin A.
> I would think that I would need a .pri file (at least that's how other Qt 
> Creator plugins seem to be included). But I am unsure on how exactly that 
> works.
>
> what I tried is:
> * create a pri file for plugin A simply containing "LIBS *= 
> -l$$qtLibraryName(plugina)"
> * just add this to plugin B's .pro file: 
> include(../folder/plugina/plugina.pri)
>
> The best result I could get was successful compilation, but on using 
> something from pluginA in pluginB, I am getting a linker error.

Have you exported all used classes and functions with 
Q_DECL_EXPORT/Q_DECL_IMPORT?

Look into projectexplorer_export.h for example.

By default Qt Creator is built with -fvisibility=hidden 
-fvisibility-inlines-hidden so everything is hidden unless otherwise stated.

-- 
Regards,
Konstantin
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to