Active Topics

 


Reply
Thread Tools
Posts: 6 | Thanked: 0 times | Joined on Dec 2009
#1
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's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#2
Originally Posted by felipebzr View Post
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
__________________
Valério Valério
www.valeriovalerio.org
 

The Following 2 Users Say Thank You to VDVsx For This Useful Post:
Posts: 270 | Thanked: 239 times | Joined on Dec 2009 @ Czech Republic
#3
Is good way read data from coord file for control? How are data presented? XYZ? Thx for reply.
 
Reply


 
Forum Jump


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