Friday, March 5, 2010

Compiling QT-4.6.2 for ARM (DM365)

STEP 1:

Download QT from

http://qt.nokia.com/downloads/embedded-linux-cpp

Direct link to download:

http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.2.tar.gz

STEP 2:

untar this downloaded tar to your home directory

tar xvzf qt-everywhere-opensource-src-4.6.2.tar.gz

[Note:] You can find the further steps at following location as well

http://doc.trolltech.com/4.4/qt-embedded-crosscompiling.html

STEP 3:

Create your custom platform directory. Platform and toolchain specific files are located in mkspec/qws/ directory.

Copy an already existing directory in mkspecs/qws/ and modify the toolchain and platform specific files.

STEP 4:

Configure QT: for embedded platorm use

./configure –embedded arm –xplatform qws/<custom platform name> <other options>

To have look at available components use:

./configure –help

STEP 5:

make

make install

This will copy the binaries to the directory specified by –prefix

Thursday, March 4, 2010

Cross compiling ALSA library & utilities

 

Compile alsa-utils-1.0.22

CC=arm_v5t_le-gcc ./configure --host=i686-linux --target=arm-linux --disable-alsamixer --disable-xmlto --disable-largefile --without-librt --prefix=`pwd`/../alsa-lib-1.0.22/_install/ --without-libintl-prefix --without-libiconv-prefix --disable-nls --with-alsa-prefix=../alsa-lib-1.0.22/_install/lib/ --with-alsa-inc-prefix=../alsa-lib-1.0.22/_install/include/ --disable-alsaconf

more details to be added… for time being use this command.

Replace path with your alsa source code directory