December 4, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

Qt 4.7.1 breaks Network on my Nokia N97 mini

 

Hello,
I wanted to complain about something: my app worked perfectly with Qt 4.7 and also 4.6.x. When I updated to 4.7.1, the network access no longer works on the phone (but still works on the simulator).

I now wanted to ask why this is. I have a normal PRO file without including Mobility or Bearer config – all I do is add the required capabilities to the Symbian build.

Is it now mandatory to use Mobility for network access in mobile?

14 replies

December 4, 2010

xsacha xsacha
Lab Rat
517 posts

You need this in the PRO file:

  1. # Needs to be defined for Symbian
  2. DEFINES += NETWORKACCESS

Mobility isn’t required as far as I know. I’m using NETWORKACCESS but not Mobility in a project.

 Signature 

- Sacha

December 4, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

Is this a new requirement? Incidentially, I have this in the code:

symbian:
{ TARGET.UID3 = 0×2003353F TARGET.CAPABILITY = “NetworkServices ReadDeviceData”
}

December 4, 2010

xsacha xsacha
Lab Rat
517 posts

It may be a new requirement.
I do know that when you create a new project (Qt or QtQuick) in Qt-Creator 2.1, it now asks if it requires Network Access (if it’s a Symbian app). If so, it adds this define. Otherwise, it still adds the define but commented out in case you need to add it later.

I’m not exactly sure what the define does though. I tried a web browser and it wouldn’t work without it, even though it had the Symbian capability.

 Signature 

- Sacha

December 4, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

Hello xsacha,
testing now.

If it works, I will add a LONG rant on my blog re this!

Tam

December 4, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

So far, I have added the define to no avail. Just that we talk about the same – my .pro currently looks like this:

  1. TEMPLATE = app
  2. TARGET = QtNewsRadar
  3. # Needs to be defined for Symbian
  4. DEFINES += NETWORKACCESS
  5. QT        += core \
  6.     gui \
  7.     xml \
  8.     network
  9. HEADERS   += QMyApplication.h \
  10.  cryptogate/CGHexapod.h \
  11. ...
  12.     utils/ApplicationPrefs.h  
  13. SOURCES   += QtNewsRadar_reg.rss \
  14. ...
  15.     utils/ApplicationPrefs.cpp
  16. FORMS   += QtNewsRadar.ui \
  17. ...
  18. RESOURCES +=
  19.  
  20. symbian:
  21. {
  22.  TARGET.UID3 = 0x2003353F
  23.  TARGET.CAPABILITY = "NetworkServices ReadDeviceData"
  24. }

December 4, 2010

xsacha xsacha
Lab Rat
517 posts

Oh :(. Have you tried cleaning project / running qmake again. Occasionally it doesn’t clean properly when I make large changes to the PRO file.

What Qt call are you using that uses network?
Do you get any warning in the QtCreator console when you run to connected device?

 Signature 

- Sacha

December 4, 2010

QtK QtK
Lab Rat
1140 posts

Also have you tested it out on any other device. Is it observed only on N97 mini.

December 4, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

I have no other device with SIM card here. At my HQ; we have the SIMs just in:
N97mini
and N8. And the N8 does not have 4.7.1…

December 4, 2010

QtK QtK
Lab Rat
1140 posts
tamhanna wrote:
I have no other device with SIM card here. At my HQ; we have the SIMs just in: N97mini and N8. And the N8 does not have 4.7.1…

Although I don’t have an N8 now, but I am sure there is binary for 4.7.1 available for N8.

December 4, 2010

xsacha xsacha
Lab Rat
517 posts

Pretty sure there’s only a binary for 4.7.0.

However, rest assured all 4.7.1 programs run on N8 (with 4.7.0). So test it out on the N8 anyway!

 Signature 

- Sacha

December 4, 2010

QtK QtK
Lab Rat
1140 posts

xsacha wrote:
Pretty sure there’s only a binary for 4.7.0.

However, rest assured all 4.7.1 programs run on N8 (with 4.7.0). So test it out on the N8 anyway!

I thought the binary available on flowd site you had provided the link for, contained binaries of 4.7.1 for N8.

December 4, 2010

xsacha xsacha
Lab Rat
517 posts

No, it is just using the 4.7.0 developer binary.
Unless the installer stated otherwise? That would be cool.

But everything that works in 4.7.1 will work with that 4.7.0 library anyway.

 Signature 

- Sacha

December 4, 2010

QtK QtK
Lab Rat
1140 posts

Yes you are right, it seems only Qt 4.7.0 is available.

December 4, 2010

Deleted Member # 14e8 Deleted Member # 14e8
Lab Rat
355 posts

I have bad news: Q FTP also seems broken.

 
  ‹‹ QComboBox in a QTableView      error: A data abort exception has occurred ››

You must log in to post a reply. Not a member yet? Register here!