Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

1.

CI T ARM-LINUX-GCC:
Version: ARM-LINUX-GCC-4.5.1
Ta lun lm vic ch root. Dng lnh sudo nautilus vo th mc h thng ca
linux.
Bc 1: Gii nn file source arm-linux-gcc-4.5.1.tar.gz
Terminal commands:
cd <folder path>
tar -xvzf arm-linux-gcc-4.5.1.tar.gz
Kt qu gii nn c th mc cha trnh bin dch c ng dn nh
sau: opt/FriendlyARM/toolschain/4.5.1/bin

Bc 2: Copy th mc FriendlyARM t trong th mc /opt ca File System trn my


tnh Linux.V tr trnh bin dch cho l khng bt buc, tuy nhin thng cha trn
th mc /opt thun tin cho cc cng vic tip theo.
Terminal command:
sudo nautilus
Input password
Copy folder vua duoc giai nen vao thu muc opt.

Bc 3: Cp nht bin mi trng PATH cho trnh bin dch cho


-Mc ch:Cp nht bin mi trng ca Linux OS cho trnh bin dch cho c th s

dng trc tip mi ni (Gi lnh trn cc ca s lnh m khng cn chuyn n th


mc cha)
- Thc hin: M file ~/.bashrc bng trnh son tho thch hp (gedit, vi, vim, ). (Ch
: file nm trong th mc tng ng ca ngi dng, v d /home/thuan. Mc nh b
n. Ta dng Ctrl + h hin th file n trong linux)
Thm 1 dng vo cui file .bashrc
PATH=$PATH:[ng dn ti th mc bin ca arm-linux-gcc]
VD: PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin
Lu v ng file .bashrc. Sau khi thit lp bin mi trng cn tt ca s terminal, m
ca s mi thit lp c hiu lc.

Bc 4: Kim tra:
Kim tra kt qu thit lp bng cch g lnh: arm-linux-gcc --version
Thng bo v phin bn ca trnh bin dch cho arm-linux-gcc s hin ra.
Ch : Nu khi g lnh arm-linux-gcc --version khng ra phin bn ca arm-linuxgcc th c th kim tra li bin mi trng PATH bng lnh echo $PATH

I.

Ci t Qt creator:
Ta thc hin theo ng dn sau:
Applications ->> Ubuntu Software Center ->> [ti Search] Qt Creator
->> Install
Sau khi ci t xong, khi ng Qt, bn vo:
Applications ->> Programming ->> Qt Creator
y l giao din lm vic ca QT Creator:

II. Ci t tslib.
Vo Teminal:
$ sudo i
$ sudo apt-get install autoconf
$ sudo apt-get install libtool
$ cd ~
$ mkdir tslib-arm
$ cd tslib-arm
Gii nn v Copy source tslib vo th mc tslib-arm.
$ cd tslib-1.0
$ ./autogen.sh
$ ./configure --prefix=/opt/tslib --host=arm-none-linux-gnueabi
$ make
$ sudo make install
Sau khi chy thnh cng tslib s xut hin trong opt/tslib

line 8968: arm-none-linux-gnueabi-gcc: command not found


follow to this link
http://www.simiolabs.com/developer/wiki/index.php?title=Crosscompiling_and_installing_Tslib
tslib.h

/usr/local/linux-arm/include

V. Ci t Qt everywhere.
start: 07/09/2015
processing...

Qt is now configured for building. Just run 'make'.


Once everything is built, you must run 'make install'.
Qt will be installed into /opt/qte
To reconfigure, run 'make confclean' and 'configure'.

cua tuan anh:


tren mang tim duoc:
$./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qtmouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimizedqmake -no-openssl -nomake tools -qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff
-qt-libpng -qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync
-no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-tslib
-qt-mouse-linuxinput -fast -nomake demos -no-webkit -no-multimedia -nojavascript-jit
error
In file included from image/qimage_neon.cpp:47:0:
/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linuxgnueabi/4.5.1/include/arm_neon.h:32:2: error: #error You must enable NEON
instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
image/qimage_neon.cpp: In function 'void qt_convert_rgb888_to_rgb32_neon(quint32*,
const uchar*, int)':
image/qimage_neon.cpp:66:18: error: 'uint8x8_t' does not name a type
image/qimage_neon.cpp:82:23: error: 'fullVector' was not declared in this scope
make[1]: *** [.obj/release-shared-emb-arm/qimage_neon.o] Error 1
make[1]: Leaving directory `/home/hung/qt-everywhere-opensource-src-4.7.2/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2

You might also like