maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Qt and Accelerometer (https://talk.maemo.org/showthread.php?t=40445)

felipebzr 2010-01-14 10:30

Qt and Accelerometer
 
http://wiki.maemo.org/Documentation/...Qt_application

Hi, I'm following the above tutorial to build a Qt application with accelerometer support on N900.

After some hacks I got this application running in the scratchbox but when I try to run on device the follow error occurs: "error while loading shared libraries: libdevornot-qt-maemo.so.1: cannot open shared object file : No such file or directory"... I did not build and copy the library for the device yet...

For the final installation file, do I need to build a fully static application with Qt and all shared libraries? Is there another way to get accelerometer support with Qt on Maemo?

Thanks in advance.

VDVsx 2010-01-18 16:35

Re: Qt and Accelerometer
 
Quote:

Originally Posted by felipebzr (Post 470253)
http://wiki.maemo.org/Documentation/...Qt_application

Hi, I'm following the above tutorial to build a Qt application with accelerometer support on N900.

After some hacks I got this application running in the scratchbox but when I try to run on device the follow error occurs: "error while loading shared libraries: libdevornot-qt-maemo.so.1: cannot open shared object file : No such file or directory"... I did not build and copy the library for the device yet...

For the final installation file, do I need to build a fully static application with Qt and all shared libraries? Is there another way to get accelerometer support with Qt on Maemo?

Thanks in advance.

Are you using Qt 4.5 or 4.6 ?
For Qt 4.6 you don't need all of these things anymore, see this example: http://qt.gitorious.org/+qt-develope...ation/main.cpp

If you want raw data you should simply read the data from this file: "/sys/class/i2c-adapter/i2c-3/3-001d/coord"

EDIT: @Mods- Please move this thread to the developers sub-forum

Figa 2010-03-18 20:11

Re: Qt and Accelerometer
 
Is good way read data from coord file for control? How are data presented? XYZ? Thx for reply.


All times are GMT. The time now is 22:19.

vBulletin® Version 3.8.8