[Qt-interest] Use qmake to build *.so instead of *.dylib on OS X 10.6

Ole Rehmsen ole at rehmsen.de
Thu Apr 8 04:25:25 CEST 2010


Greetings,

I am trying to deploy as a shared library using the lib template on OS X, but I cannot figure out how to create a library with the extension .so instead of .dylib . 
I have searched the docs an this mailing list, but the regex *.so unfortunately pretty much hits every post, making it very hard to find what I am looking for :-)

I need a *.so because I read python cannot load *.dylib as I read here http://stackoverflow.com/questions/2488016/how-to-make-python-load-dylib-on-osx
The solution they suggest there is to use libtool, but I don't know how to change my *.pro file to use libtool, either. 

The final purpose of this is to wrap my C++ code (using, among other stuff, Qt) in python using SWIG. I found an post from way back in this mailing list (http://lists.trolltech.com/qt-interest/2005-10/thread00555-0.html) that talks about using Qt an SWIG to wrap for Python, but if I use the code provided I get a dylib aswell, and python tells me it cannot import the library.

Any help is appreciated!

Ole

p.s.: I did not want to spam this mailing list with my entire .pro file, but if there are any sections you are interested in, just let me know.



More information about the Qt-interest-old mailing list