[maemo-developers] QtCreator, libraries, and multiple platforms

From: Christian Kandeler christian.kandeler at nokia.com
Date: Thu Aug 4 09:39:01 EEST 2011
On Wed, 2011-08-03 at 15:03 -0400, ext David Talmage wrote:
> I need help making QtCreator build an application and a library for Maemo, 
> Symbian (using the remote compiler), and the simulator.  I've been all over 
> the documentation, the forum on Qt Developer Network, and Google.  I can't find 
> an example that does what I need.
> 
> I have a library (lib) and an application (app). Each one is a QtCreator 
> project.  I can build them individually but I can't link app with liblib.so.  

What does that mean, you "can't link"? 
Also, you'll have to decide whether those two binaries belong together
or not. If they do, then you should probably make them one project using
the SUBDIRS template (note: I don't know if this actually works on
Symbian). Then you can link to the library using $$OUTPWD (and you
should probably link it in statically, so only the application needs to
be deployed). If application and library do not belong together (i.e.
the library serves other purposes as well), then you just have to
install the library first, after which it will be in a place where the
linker can find it when building the application.


Christian

More information about the maemo-developers mailing list