Hi all!

 I agree that three project files are the way to go:

 Main project file:
 TEMPLATE = subdirs
 SUBDIRS = library application
 CONFIG += ordered

 Then use TEMPLATE= lib
 and TEMPLATE=app
 in library and application subdirectories project files.

 This is how you declare your library for your application
 
http://doc.qt.nokia.com/latest/qmake-project-files.html#declaring-other-libraries

Thanks, Daniil

On Thu, Aug 4, 2011 at 12:48 PM, Ville M. Vainio <vivai...@gmail.com> wrote:
> Do you have a particular reason for the requirement (like license) to
> have a separate library, instead of just having one monolithic
> application?
>
> On Wed, Aug 3, 2011 at 10:03 PM, David Talmage <talm...@acm.org> 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.
>> Whatever I use has to work with maemo.org's autobuilder and Nokia's remote
>> compiler for Symbian.
>>
>> As a first pass, it would help if there is an environment variable I can
>> reference in app.pro like $$OUT_PWD that contains the name of the build
>> directory for lib.  Then linking might work.  I can hack something together
>> with qmake's replace(), like replace($$OUT_PWD, app, lib) and that might work
>> as long as app/ and lib/ were in the same directory.  I don't know how well 
>> it
>> would port or whether it would continue to work when I install app and
>> liblib.so on the phones.
>>
>> Dave
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers@maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to