report

8
1. CÀI ĐẶT ARM-LINUX-GCC: Version: ARM-LINUX-GCC-4.5.1 Ta luôn làm việc ở chế độ root. Dùng lệnh sudo nautilus để vào thư mục hệ thống của linux. Bước 1: Giải nén 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 Kết quả giải nén được thư mục chứa trình biên dịch có đường dẫn như sau: opt/FriendlyARM/toolschain/4.5.1/bin Bước 2: Copy thư mục FriendlyARM đặt trong thư mục /opt của File System trên máy tính Linux.Vị trí để trình biên dịch chéo là không bắt buộc, tuy nhiên thường chứa trên thư mục /opt để thuận tiện cho các công việc tiếp theo. Terminal command: sudo nautilus Input password Copy folder vua duoc giai nen vao thu muc opt.

Upload: tran-hung

Post on 12-Dec-2015

212 views

Category:

Documents


0 download

DESCRIPTION

not thing

TRANSCRIPT

Page 1: Report

1. CÀI ĐẶT ARM-LINUX-GCC: Version: ARM-LINUX-GCC-4.5.1Ta luôn làm việc ở chế độ root. Dùng lệnh sudo nautilus để vào thư mục hệ thống của linux.Bước 1: Giải nén 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

Kết quả giải nén được thư mục chứa trình biên dịch có đường dẫn như sau: opt/FriendlyARM/toolschain/4.5.1/bin

Bước 2: Copy thư mục FriendlyARM đặt trong thư mục /opt  của File System trên máy tính Linux.Vị trí để trình biên dịch chéo là không bắt buộc, tuy nhiên thường chứa trên thư mục /opt để thuận tiện cho các công việc tiếp theo.

Terminal command:sudo nautilusInput password

Copy folder vua duoc giai nen vao thu muc opt.

Bước 3: Cập nhật biến môi trường PATH cho trình biên dịch chéo

Page 2: Report

-Mục đích:Cập nhật biến môi trường của Linux OS cho trình biên dịch chéo để có thể sử dụng trực tiếp ở mọi nơi (Gọi lệnh trên các cửa sổ lệnh mà không cần chuyển đến thư mục chứa)- Thực hiện: Mở file ~/.bashrc bằng trình soạn thảo thích hợp (gedit, vi, vim, …). (Chú ý: file nằm trong thư mục tương ứng của người dùng, ví dụ /home/thuan. Mặc định bị ẩn. Ta dùng Ctrl + h để hiển thị file ẩn trong linux)

Thêm 1 dòng vào cuối file .bashrcPATH=$PATH:[Đường dẫn tới thư mục bin của arm-linux-gcc]

VD: PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/binLưu và đóng file .bashrc. Sau khi thiết lập biến môi trường cần tắt cửa sổ terminal, mở cửa sổ mới để thiết lập có hiệu lực.

Bước 4: Kiểm tra:Kiểm tra kết quả thiết lập bằng cách gõ lệnh: arm-linux-gcc --version  Thông báo về phiên bản của trình biên dịch chéo arm-linux-gcc sẽ hiện ra.Chú ý: Nếu khi gõ lệnh arm-linux-gcc --version không ra phiên bản của arm-linux-gcc thì có thể kiểm tra lại biến môi trường PATH bằng lệnh echo $PATH

Page 3: Report

I. Cài đặt Qt creator: Ta thực hiện theo đường dẫn sau:Applications ->> Ubuntu Software Center ->> [tại ô Search] Qt Creator

->> InstallSau khi cài đặt xong, để khởi động Qt, bạn vào: Applications ->> Programming ->> Qt CreatorĐây là giao diện làm việc của QT Creator:

Page 4: Report

II. Cài đặt tslib.Vào Teminal:$ sudo –i$ sudo apt-get install autoconf$ sudo apt-get install libtool$ cd ~$ mkdir tslib-arm$ cd tslib-armGiải nén và Copy source tslib vào thư mục tslib-arm.$ cd tslib-1.0$ ./autogen.sh$ ./configure --prefix=/opt/tslib --host=arm-none-linux-gnueabi$ make$ sudo make install

Sau khi chạy thành công tslib sẽ xuất hiện trong opt/tslib

Page 5: Report

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

follow to this linkhttp://www.simiolabs.com/developer/wiki/index.php?title=Cross-compiling_and_installing_Tslib

tslib.h

/usr/local/linux-arm/include

V. Cài đặt Qt everywhere. start: 07/09/2015processing...

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'.

Page 6: Report

cua tuan anh:

tren mang tim duoc:

$./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix /usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support -no-cups -no-largefile -optimized-qmake -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 -no-javascript-jit

errorIn file included from image/qimage_neon.cpp:47:0:/opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/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.himage/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 typeimage/qimage_neon.cpp:82:23: error: 'fullVector' was not declared in this scopemake[1]: *** [.obj/release-shared-emb-arm/qimage_neon.o] Error 1make[1]: Leaving directory `/home/hung/qt-everywhere-opensource-src-4.7.2/src/gui'make: *** [sub-gui-make_default-ordered] Error 2