View Single Post
Posts: 123 | Thanked: 21 times | Joined on Sep 2009
#21
Originally Posted by davidmaxwaterman View Post
EDIT:
I see that I need to copy the include files and libs into the project. OK, I hacked it to bits and it's working now - Qt4.6.2 and Mobility, nice
Actually, although it compiled and linked fine, and it even mostly runs fine, I don't think my hack worked. After a while, my code 'dies'. I've not looked into it deeply yet, but I suspect that it's due to an ABI difference or something to do with moc.

These are the hacks I made :
  1. 1. copied the mobility headers that the compiler complained about into a local 'include' directory and added 'INCLUDEPATH += include' in my .pro
  2. 2. copied the mobility libs that the linker complains about into a local 'lib' directory and added 'LIBS += lib'[1] to my .pro
  3. 3. copied /opt/qt4-maemo5/lib into a local qt4-maemo5/lib directory and added 'QMAKE_LIBDIR_QT = qt4-maemo5/lib' to my .pro.

If someone has some indication of what might be wrong with this that would cause a run-time crash (my app just stops, without any 'crash dialog', so I'm not convinced it's dumping core), I'd love to hear suggestions.

Thanks!

Max.

PS. Why doesn't this 'list' icon on this forum work? It's supposed to put numbers on them, but I have to put them in manually...annoying

[1] Actually, I noticed I added 'LIBS += lib/libQtLocation.so' rather than something like 'LIBS += -Llib', but it still seems to pick up the other libraries in their so I guess it's clever like that.