Thread
:
telepathy-qt4 and the Nokia QT SDK
View Single Post
uvatbc
2010-06-19 , 09:43
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#
1
This is not so much a question as it is a way for me to provide documentation where there is none.
Requirement:
Must be able to compile an application that uses libtelepathy-qt4 using the Nokia QT SDK on Linux. This will allow compilation for Linux and Maemo using qtcreator.
Yes of course it can be done from within scratchbox with no changes.
But can it be done from outside scratchbox?
Tried the following:
-> Hoped for dumb luck and just attempted to compile. Compilation on x86_64 Ubuntu worked once I installed libtelepathy-qt4-dev. Compilation for maemo5 failed because libtelepathy-qt4.so does not exist in NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/lib
-> Downloaded telepathy-qt4 source tarball from the telepathy website.
-> First time attempting to configure through madde failed with an error stating that I should use --host if I wanted to cross-compile.
-> After reading through config.sub, I figured that the proper host alias should be "armel-linux". Added that and appropriate flags to --prefix and --eprefix.
-> Configure now fails claiming pkg-config not found.
-> Created a shell script to set PKG_CONFIG to the correct path and for completeness, also set up
QTCORE_CFLAGS='-lQtCore' ; export QTCORE_CFLAGS
QTCORE_LIBS='-DQT_SHARED -I/usr/include/QtCore' ; export QTCORE_LIBS
-> After doing all this, configure succeeded and I checked the config.log to ensure that all was well. It seemed like it was.
-> At this point make failed. mad make failed.
Eventually I gave up at this point - and decided to cheat.
tl;dr: Copied the telepathy-qt4 headers and libraries from scratchbox into the Nokia SDK fremantle directories. Now my code that uses telepathy-qt4 compiles for maemo5 and the binary runs flawlessly on the n900.
PS: In my pro file I had to add
unix {
INCLUDEPATH += /usr/include/telepathy-1.0
LIBS += -ltelepathy-qt4
}
to get it to compile for Linux and for Maemo.
****
Edit: These are the steps I took for my Win7 dev vm.
1. Copy
Source: /scratchbox/users/$USERNAME/targets/FREMANTLE_ARMEL/usr/lib
Destination: C:\NokiaQtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-10.2010.19-1-slim\usr\lib\
File: libtelepathy-qt4.a
2. Copy
Within directory: C:\NokiaQtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-10.2010.19-1-slim\usr\lib\
libtelepathy-qt4.so.0 to libtelepathy-qt4.so
3. Copy
Source: /scratchbox/users/$USERNAME/targets/FREMANTLE_ARMEL/usr/include
Destination: C:\NokiaQtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-10.2010.19-1-slim\usr\include
Directory: TelepathyQt4
__________________
qgvdial
: Google Voice client.
All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto
: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify
: Google voice and contacts notifier for diablo and maemo.
If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
Last edited by uvatbc; 2010-07-19 at
00:12
. Reason: More info
Quote & Reply
|
The Following 4 Users Say Thank You to uvatbc For This Useful Post:
fcrochik
,
Venemo
,
vkv.raju
uvatbc
View Public Profile
Send a private message to uvatbc
Find all posts by uvatbc