General OS-related error
-
In my simple Hello World application i included #include <QAccelerometer> in the h file and
sensor = new QAccelerometer(this);
bool ret = sensor->start();
in the constructor.
It compiles correctly but when i try to debug on my Nokia5800 it gives me
General OS-related errore.
Anyone knows what is the problem?
I received from OV store the sis, crt and key.
Regards
-
[quote author="fortik" date="1306824078"]
General OS-related errore.
[/quote]Hi,
Please find more details regarding the error as there are may OS-related errors. I have experienced the same problem due to problems with certificate and signing or with the Qt compatibility on the device.
Best regards,
Leon -
Unfortunately i have only a message box with General-OS related error. And no more. I think that the problem is using the QAccelerometer functions. If i do not include there is not error. Maybe i am not allowed to run accelerometer on Nokia5800? Regards
-
Hi fortik,as u have said that u have certificate and key,U should check whether the latest qt4.7 and qt mobility has been installed in your Nokia5800..
regards
imrrk -
[quote author="fortik" date="1306825995"]Maybe i am not allowed to run accelerometer on Nokia5800? Regards[/quote]
OK. Check what "capabilities":http://wiki.forum.nokia.com/index.php/Capabilities are required to run the accelerometer in Symbian and add them to the pro file of your project.
-
On my Phone i have installed QT 4.07(3), QT installer 4.07 (3) QT mobility 1.00(2)
On my project there is
@
symbian {
TARGET.UID3 = 0xe814faf9
# TARGET.CAPABILITY +=
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
}
@What TARGET.CAPABILITY should i put just to read the accelerometer.
I registered to OVI, i suppose i could use all except Manufacturer-approved capabilities.
Is it correct. Regards
[EDIT: code formatting, please wrap in @-tags, Volker]
-
[quote author="fortik" date="1306828058"]
I registered to OVI, i suppose i could use all except Manufacturer-approved capabilities.Is it correct. Regards [/quote]
No, Nokia and Ovi are signing app for free only if the app does not use the following capabilities:
To meet express-signed levels the content cannot make use any of the following capabilities: AllFiles, DRM, TCB, CommDD, DiskAdmin, NetworkControl, and MultimediaDD. For more info visit "Forum Nokia":http://www.forum.nokia.com/Distribute/Packaging_and_signing.xhtmlIf an app is using any of these capabilities it requires Certified signing by a testing house.
-
I signed to Nokia paying 1 euro.
Is there any way to read accelerometer on my Nokia5800, do a sample program and that's it?
I can include compile and so on, when i try to debug and install on Phone, always General-OS related error.
Regards
-
[quote author="fortik" date="1306833343"]I signed to Nokia paying 1 euro.
Is there any way to read accelerometer on my Nokia5800, do a sample program and that's it?
[/quote]Please use Google (or alternative search engine) before asking :) There is an example at Forum Nokia: http://wiki.forum.nokia.com/index.php/Qt_Mobility_example_application:_Fall_Detector
The following capabilities are required for the example:
@
CAPABILITY = Location NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment ReadDeviceData WriteDeviceData
@ -
Thank you very much, i could not find the sample. Very helpful. Just last question, i loaded the sample on QT and needed to put my crt and key to compile and let it work. Is it correct or should it be possible to compile also with the self signed option. Anyway i am already happy it works perfectly.
Regards.
Thread close -
[quote author="fortik" date="1306835687"] Is it correct or should it be possible to compile also with the self signed option. [/quote]
Depends on the capabilities. Btw compiling is not connecting to signing. You can self sign applications if they have only basic capabilities.