[Interest] qmake: Building a shared object which is not a lib
apaku at gmx.de
Wed Jun 27 19:26:24 CEST 2012
Am Mittwoch, 27. Juni 2012 schrieb Christian Gagneraud :
> On 27/06/12 12:32, Mandeep Sandhu wrote:
> >> Hi there,
> > If you build a plugin, then the version links are not created, and
> > simply the libXYZ.so will be created (the lib prefix is still there).
> > Why do you want to remove the lib prefix btw?
> Because this is not a typical unix library, this is a python module and
> as such it has to be named XYZ.so. Then from python you can do an
> "import XYZ". If you name it libXYZ.so, you'll have to do "import libXYZ".
IIRC, qmake also has either a plugin config option or even a template for
that. I'd suggest to look at an example for a qt plugin, for example a
designer plugin or something in the qtcreator sources. Plugins have the
same logic to drop the lib prefix since they are loaded direct,y via dlopen.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest