Saturday, July 03, 2010

Steps to run your Qt application on Mini2440

*note: this entry is a complementary entry to this one 
1.Download the Qt libraries folder (The one generated after building Qt-everywhere for Arm) to the Mini 2440 Board to /usr/local/

2.Build the application using qmake (special version of qmake for arm processors) that you can find in the Qt folder in step #1 in the /bin directory.
3.Set environment variables in Qtopia 




export QTDIR=/usr/local/Qt-4.6.2_arm

export LD_LIBRARY_PATH=/usr/local/Qt-4.6.2_arm/lib 
in case of systems other than Qtopia , you have to export the following




export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/usr/input/ts
export TSLIB_CALIBFILE=/usr/etc/pointercal
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export LD_LIBRARY_PATH=/usr/local/Qt/lib
export QTDIR=/usr/local/Qt
export QWS_MOUSE_PROTO=tslib:/usr/input/ts
        export QWS_DISPLAY=LinuxFB:mmWidth=240:mmHeight=320
 4.Download your application's executable generated form step #2 to the board on a known directory
5.On the board browse to the directory in step 4 and type the name of the application followed by -qws
6.pray for the application to run :D

this page was very helpful
http://www.sereno-online.com/site/2010/05/01/qt-4-6-2-installation-procedure-for-friendlyarm-mini-2440-board/

0 comments: