한국어
Linux Programming
 

Build Qt 4.7.0 for Embedded Linux

makersweb 2015.05.25 01:26 조회 수 : 5415

Build Qt 4.7.0 for Embedded Linux

Environment
raspberry pi 2
g++ 4.8

1. download source
https://download.qt.io/archive/qt/

2. unpacking the archive

#tar zxvf qt-everywhere-opensource-src-4.7.0.tar.gz 


3. edit qmake.conf

#cd mkspecs/qws/linux-arm-g++


-rw-r--r-- 1 pi users  520 Sep 10  2010 qmake.conf

-rw-r--r-- 1 pi users 1984 Sep 10  2010 qplatformdefs.h


#vi qmake.conf


qmake.conf

#

# qmake configuration for building with arm-linux-g++

#


include(../../common/g++.conf)

include(../../common/linux.conf)

include(../../common/qws.conf)


# modifications to g++.conf

QMAKE_CC                = arm-linux-gnueabihf-gcc

QMAKE_CXX               = arm-linux-gnueabihf-g++

QMAKE_LINK              = arm-linux-gnueabihf-g++

QMAKE_LINK_SHLIB        = arm-linux-gnueabihf-g++


# modifications to linux.conf

QMAKE_AR                = arm-linux-gnueabihf-ar cqs

QMAKE_OBJCOPY           = arm-linux-gnueabihf-objcopy

QMAKE_STRIP             = arm-linux-gnueabihf-strip


load(qt_config) 



4. configure

#./configure -embedded arm -xplatform qws/linux-arm-g++ -little-endian -host-little-endian

Which edition of Qt do you want to use ?


Type 'c' if you want to use the Commercial Edition.

Type 'o' if you want to use the Open Source Edition.


o 

-xplatform qws/linux-arm-g++ 는 크로스 컴파일(target platform)로 아까수정해준 qws/linux-arm-g++ 폴더에 qmake.conf파일을 참조하라는 옵션

-little-endian 타겟플랫폼이 little endian (LSB first)이라고 알려주는 옵션


You have not explicitly asked to use pkg-config and are cross-compiling.

pkg-config will not be used to automatically query cflag/lib parameters for

dependencies



This is the Qt for Embedded Linux Open Source Edition.


You are licensed to use this software under the terms of

the Lesser GNU General Public License (LGPL) versions 2.1.

You are also licensed to use this software under the terms of

the GNU General Public License (GPL) versions 3.


Type '3' to view the GNU General Public License version 3.

Type 'L' to view the Lesser GNU General Public License version 2.1.

Type 'yes' to accept this license offer.

Type 'no' to decline this license offer.


Do you accept the terms of either license? yes

 


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

Once everything is built, you must run 'make install'.

Qt will be installed into /usr/local/Trolltech/QtEmbedded-4.7.0-arm


To reconfigure, run 'make confclean' and 'configure 


5. make

#make 


6. make install

#make install 


번호 제목 글쓴이 날짜 조회 수
24 Wayland에 대한 간단한 소개 file makersweb 2017.12.29 3384
23 NFS를 통해 파일시스템 공유 makersweb 2018.03.05 1135
22 Ubuntu Linux에서 dbus-c++바인딩 D-Bus 테스트 file makersweb 2018.03.07 7078
21 tslib 크로스 컴파일과 터치스크린 보정 makersweb 2018.08.02 2183
20 libblkid - USB Storage의 정보 가져오기 makersweb 2018.10.18 676
19 리눅스 컴파일러 최신으로 업데이트 linux 2018.12.26 1900
18 PATH에 새로운 경로 추가 makersweb 2019.09.19 401
17 플랫폼 디바이스 드라이버 개발 시 많이 사용되는 커널 API 및 매크로 makersweb 2020.01.28 4757
16 initramfs (initial ram file system: 초기 램 파일 시스템) makersweb 2020.02.25 2111
15 64비트 리눅스에서 32비트 응용프로그램을 실행하려면 makersweb 2020.02.29 1821
14 Weston 의 설명 및 관련 컴포넌트 makersweb 2020.06.03 2542
13 Wayland 의 주요 객체들 makersweb 2020.06.04 941
12 Wayland 의 Client Application 프로그래밍 기본 루틴 makersweb 2020.06.04 1705
11 wayland-scanner 를 통해 Wayland 프로토콜 코드생성 makersweb 2020.06.08 969
10 리눅스 오디오 스택과 아키텍처 file makersweb 2020.09.02 2931
9 dbus-broker를 기본 DBus 구현으로 설정 makersweb 2021.01.20 1245
8 SocketCAN 유틸 사용방법 file makersweb 2022.02.05 7268
7 ifconfig 는 대부분 ip 명령으로 대체 makersweb 2022.02.12 1651
6 D-Bus ObjectManager file makersweb 2022.02.12 670
5 리눅스에서 네트워크 구성 makersweb 2022.06.11 2930