Installation and Deployment
2018.11.29 22:22

리눅스에서 Qt4.8기반 어플리케이션의 한글입력

조회 수 10845 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

Qt기반의 Application에서 한글입력이 필요한데 시스템에서 한글 입력기가 없는 경우가 있다.

한글입력 및 조합 오픈소스 라이브러리를 Qt4.8입력 모듈 플러그인으로 링크하여 테스트해보았다.

 

소스코드 다운로드 및 컴파일


Step1. Qt4.8 소스코드 컴파일 및 설치

https://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz

 

다운받은 파일의 압축을 풀고 deploy폴더를 생성 후 Qt를 빌드한다.

$ mkdir dest

$ ls

dest  qt-everywhere-opensource-src-4.8.7

$ cd qt-everywhere-opensource-src-4.8.7/

$ ./configure -platform linux-g++-64 -fast -opensource -confirm-license -prefix ../dest

$ make

$ make install

 

Step2. libhangul 라이브러리 소스코드 컴파일 및 설치

https://code.google.com/archive/p/libhangul/

 

$ tar xvf libhangul-0.1.0.tar.gz

$ cd libhangul-0.1.0/

$ ./configure

$ make

$ make install

 

Step3. qimhangul 소스코드 컴파일 및 설치

https://code.google.com/archive/p/qimhangul/

 

$ export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/home/pjk/workspace/qt4.8.7/dest/lib/pkgconfig"

$ ./configure --with-qt-plugin-dir=/home/pjk/workspace/qt4.8.7/dest/plugins

$ make

$ make install

...

Libraries have been installed in:

   /home/pjk/workspace/qt4.8.7/dest/plugins/inputmethods

 

 

 

예제 프로젝트 생성 및 환경변수 설정, 테스트


Step1. QtCreator Build & Run 설정

Image.png

 

Step2. QWidget 프로젝트 생성 및 ui디자인 

Image [2].png

 

Step3. QT_IM_MODULE 및 QT4_IM_MODULE 설정 "hangul2"

Image [3].png

 

Step4. 한글 폰트설정 및 한글입력 테스트

Image [4].png

 

크로스 컴파일해서 임베디드 리눅스 또는 다른 운영체제에서도 사용 하면 될 듯.


  1. No Image notice

    Qt프로그래밍(QtQuick) Beginner를 위한 글 읽는 순서

    Date2019.01.05 CategoryQML and Qt Quick By운영자 Views436653
    read more
  2. QtWayland와 ivi-compositor

    Date2018.12.27 CategoryMobile and Embedded Bymakersweb Views14297
    Read More
  3. Qml과 C++로 구현하는 GUI어플리케이션

    Date2018.12.25 CategoryQML and Qt Quick Bymakersweb Views21206
    Read More
  4. No Image

    싱글터치 스크린 및 임베디드 리눅스 기반에서 Qt 터치입력

    Date2018.12.24 CategoryMobile and Embedded Bymakersweb Views10132
    Read More
  5. ShaderEffect QML Type 을 이용한 그래픽효과

    Date2018.12.09 CategoryQML and Qt Quick Bymakersweb Views11045
    Read More
  6. No Image

    Qml에서 커튼효과 구현 예제 - Shader Effects

    Date2018.12.05 CategoryQML and Qt Quick By운영자 Views7906
    Read More
  7. 안드로이드 Qt 프로그래밍

    Date2018.11.30 CategoryMobile and Embedded Bymakersweb Views17412
    Read More
  8. 리눅스에서 Qt4.8기반 어플리케이션의 한글입력

    Date2018.11.29 CategoryInstallation and Deployment Bymakersweb Views10845
    Read More
  9. QML에서 동적으로 텍스트 다국어 처리

    Date2018.11.04 CategoryQML and Qt Quick Bymakersweb Views10462
    Read More
  10. Qt Installer Framework - 패키징, 설치프로그램 제작

    Date2018.10.14 CategoryInstallation and Deployment Bymakersweb Views22689
    Read More
  11. Qt 응용프로그램 배포(windows)

    Date2018.10.10 CategoryGeneral and Desktop Bymakersweb Views18686
    Read More
  12. No Image

    소스코드에서 환경변수 가져오기와 설정하기

    Date2018.10.08 CategoryGeneral and Desktop Bymakersweb Views8750
    Read More
  13. 표를 만들고 PDF문서로 출력하기

    Date2018.09.30 CategoryGeneral and Desktop Bymakersweb Views7340
    Read More
  14. Qml에서 키보드 입력 이벤트 핸들링

    Date2018.08.09 CategoryQML and Qt Quick Bymakersweb Views11188
    Read More
  15. Qml 어플리케이션 정적 빌드

    Date2018.07.27 CategoryInstallation and Deployment Bymakersweb Views8595
    Read More
  16. No Image

    Qt Bluetooth 관련 기능 확인 사항

    Date2018.07.10 CategoryInstallation and Deployment Bymakersweb Views8192
    Read More
  17. No Image

    Qml 및 C++개발시 유용한 팁

    Date2018.04.06 CategoryQML and Qt Quick Bymakersweb Views14318
    Read More
  18. No Image

    Qt Version확인 방법

    Date2018.03.29 CategoryGeneral and Desktop Bymakersweb Views13101
    Read More
  19. 초보자를 위한 첫번째 프로젝트 - QML로 만드는 Hello World

    Date2018.03.16 CategoryGeneral and Desktop Bymakersweb Views27005
    Read More
  20. Windows에서 라즈베리파이3 Qt 어플리케이션 개발 및 원격 실행

    Date2018.02.23 CategoryInstallation and Deployment Bymakersweb Views12587
    Read More
  21. Windows에서 라즈베리파이3용 Qt5.10.0 크로스컴파일

    Date2018.02.23 CategoryMobile and Embedded Bymakersweb Views20658
    Read More
Board Pagination Prev 1 ... 5 6 7 8 9 Next
/ 9