On Wednesday, August 03, 2011 03:03:11 PM 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. Whatever I use has to work with maemo.org's autobuilder and
> Nokia's remote compiler for Symbian.
> ...

Thanks to the help I've received from Cristian Kandeler, Ville M Vainio, 
Daniil Ivanov, and Roman Morawek, I have a library project and an application 
project.  The application project depends on the library project.  I can 
deploy both of them to my N900 phone.

I did not use a subdirs project as suggested.  I created a library project and 
an app project.  I manually copied the library and its header files to my Maemo 
sysroot.  In order to make the loader look for the library in /opt/usr/lib, I 
added some linker flags to the qmake variable QMAKE_LFLAGS in the maemo5 
section of the app project file:

QMAKE_LFLAGS += '-Wl,-rpath,/opt/usr/lib'

I think that's everything I did.

Then I went and broke things.  That's a story for another thread.

Thank you all for helping me.

Dave
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to