한국어
Linux Programming
 

Build Qt 4.7.0 for Embedded Linux

makersweb 2015.05.25 01:26 조회 수 : 5416

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 


번호 제목 글쓴이 날짜 조회 수
44 리눅스 Qt 응용프로그램 AppImage 로 구축 makersweb 2024.01.07 555
43 GRUB의 timeout 설정 makersweb 2023.11.07 563
42 lubuntu 22.04 LTS 설치 file makersweb 2023.01.23 1485
41 시스템에서 사용 가능한 D-Bus 서비스를 보려면? makersweb 2022.12.29 1287
40 리눅스에서 네트워크 구성 makersweb 2022.06.11 2935
39 D-Bus ObjectManager file makersweb 2022.02.12 675
38 ifconfig 는 대부분 ip 명령으로 대체 makersweb 2022.02.12 1655
37 SocketCAN 유틸 사용방법 file makersweb 2022.02.05 7278
36 dbus-broker를 기본 DBus 구현으로 설정 makersweb 2021.01.20 1250
35 리눅스 오디오 스택과 아키텍처 file makersweb 2020.09.02 2935
34 wayland-scanner 를 통해 Wayland 프로토콜 코드생성 makersweb 2020.06.08 973
33 Wayland 의 Client Application 프로그래밍 기본 루틴 makersweb 2020.06.04 1710
32 Wayland 의 주요 객체들 makersweb 2020.06.04 945
31 Weston 의 설명 및 관련 컴포넌트 makersweb 2020.06.03 2546
30 64비트 리눅스에서 32비트 응용프로그램을 실행하려면 makersweb 2020.02.29 1825
29 initramfs (initial ram file system: 초기 램 파일 시스템) makersweb 2020.02.25 2115
28 플랫폼 디바이스 드라이버 개발 시 많이 사용되는 커널 API 및 매크로 makersweb 2020.01.28 4758
27 PATH에 새로운 경로 추가 makersweb 2019.09.19 401
26 리눅스 컴파일러 최신으로 업데이트 linux 2018.12.26 1900
25 libblkid - USB Storage의 정보 가져오기 makersweb 2018.10.18 676