views:

140

answers:

2

I had a problem while I'm compiling the existing example in Qt-mobility. It's a code example shows how to use messaging API in Qt for symbian. After run the program there was an error occured:

Cannot open include file : 'qtmessaging.h': no such file or directory

So what to do for use the qtmessaging library?
Thanks in advance.

A: 

This seems to be a bug in Qt Mobility. qtmessaging.h is not listed as a public header file.

In later releases of Qt Mobility such as the most recent 1.0.2, qtmessaging.h seems to be removed completely and the examples updated to not use it. So the solution is simple: update your Qt Mobility to the most recent version.

laalto
So how can I use it ?
sheman
A: 

your pro file seems to be correct. just look at the example provided here, do cross check your profile with example one here http://doc.qt.nokia.com/qtmobility-1.0-beta/quickstart.html

Shadow
I just copy the compiled code in here http://wiki.forum.nokia.com/index.php/Read_and_Send_messages_in_Qt_for_Symbian. Normally it should not get any error but in my compiler it does. :S
sheman
which version of Qt mobility are you using? and in latest Qt mobility some of the header files are obsolete. so do not prefer the example which are provided there.
Shadow
I use Qt mobility 1.1.0
sheman
hey download http://www.forum.nokia.com/info/sw.nokia.com/id/e920da1a-5b18-42df-82c3-907413e525fb/Nokia_Qt_SDK.htmlthis and use. mobility API's does't comes with Qt SDK. you should use Q mobility
Shadow