[Qgis-developer] Building ".so" plugin, not ".dylib" on Mac

William Kyngesburye woklist at kyngchaos.com
Tue Oct 30 06:46:29 PDT 2012


You need to use a MODULE type for the cmake ADD_LIBRARY().  I don't know how to do this with qmake, but the linker flag is -bundle instead of -dylib.

On Oct 30, 2012, at 4:54 AM, Tasos Varoudis wrote:

> Hi all,
> 
> Im using qmake to build a C++ plug.
> 
> On mac I get a .dylib and I can't load it in the same way as in other OSs.
> 
> Im not sure, but I think has something to do this the dylib, as the cmake official build is producing .so files for the plugs.
> 
> Even though I search I can't make qmake produce a .so lib on mac.
> 
> Any ideas? help?
> 
> Best,
> Tasos
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy




More information about the Qgis-developer mailing list