[maemo-developers] QtCreator, libraries, and multiple platforms
From: Daniil Ivanov daniil.ivanov at gmail.comDate: Thu Aug 4 13:16:16 EEST 2011
- Previous message: QtCreator, libraries, and multiple platforms
- Next message: QtCreator, libraries, and multiple platforms
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <vivainio at 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 <talmage at 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 at maemo.org >> https://lists.maemo.org/mailman/listinfo/maemo-developers >> > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers >
- Previous message: QtCreator, libraries, and multiple platforms
- Next message: QtCreator, libraries, and multiple platforms
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]