[maemo-developers] QtCreator, libraries, and multiple platforms
From: David Talmage talmage at acm.orgDate: Tue Aug 30 22:46:01 EEST 2011
- Previous message: QtCreator, libraries, and multiple platforms
- Next message: [Harmattan] Exclude directories from tracker / media player
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20110830/68bcecfc/attachment.htm>
- Previous message: QtCreator, libraries, and multiple platforms
- Next message: [Harmattan] Exclude directories from tracker / media player
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]