Friday, July 30, 2010

How to build Qt Embedded source for ARM?

1. ARM compiler installed in /opt/armv6
2. Add to path /opt/armv6/bin to PATH environment
2.1. export LD_LIBRARY_PATH=/opt/armv6/codesourcery/lib/gcc/arm-none-linux-gnueabi/4.3.2/:$LD_LIBRARY_PATH
3. modify mkspecs/qws/linux-arm-g++/qmake.conf file to match your cross-compiler name
4. run configure
./configure -embedded arm -xplatform qws/linux-armv6-g++ -prefix /usr/local/Trolltech/Qt-4.6.3-arm
5. make
- you could get the error
- http://www.qtforum.org/article/31460/qt-everywhere-make-for-arm-fails-tslib-0-0-so-0-not-found.html
6. make install


other samples
1. ./configure -embedded arm -no-armfpa -little-endian -qt-gfx-transformed -qt-gfx-linuxfb -nomake demos -nomake examples -no-svg -no-phonon -no-qt3support -no-feature-CURSOR -qt-mouse-tslib -L/usr/local/lib -I/usr/local/include
2. make
3. make install

../qt-everywhere-opensource-src-4.6.1/configure -opensource -confirm-license -embedded arm -platform linux-g++-32 -xplatform qws/linux-arm-eabi-crunch-g++ -no-qvfb -depths all -prefix /net/home/maurik/cross-compile/arm-linux-gnueabi/usr/local/Qt4.6 -no-webkit -no-script -no-javascript-jit -no-scripttools -qt-mouse-tslib -no-neon -no-rpath

No comments:

Post a Comment