General and Desktop
2018.10.10 13:03

Qt 응용프로그램 배포(windows)

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

Qt는 윈도우즈에 Qt응용프로그램을 배포하기위한 Tool(windeployqt)을 제공하는데 그 사용법을 소개하고자 한다.

 

먼저 qml 응용 프로그램 프로젝트를 생성한다. (Qt Quick Application 만들기 참고)

 

컴파일후 디플로이된 폴더에는 실행파일을 포함해서 오브젝트파일들이 들어있다.

Image.png

여기에 있는 실행파일(.exe)을 실행하면 Qt 관련 라이브러리가 없어서 "Qt5Core.dll이(가) 없어 코드 실행을 진행할 수 없습니다. 프로그램을 다시 설치하면 이 문제가 해결될 수 있습니다."와 같은 실행 오류가 발생한다.
 

 

응용프로그램을 개발하고 배포하기 위해서는 Qt응용프로그램 종속성 라이브러리가 필요하다.

Image [2].png

 

Qt Command Prompt 를 실행한다.

프로젝트의 컴파일 폴더로 이동한다.
 
윈도우용 종속성 deploy도구 실행
 
qml로 개발된 프로젝트의 경우 옵션으로 qml폴더를 지정해줘야 하므로 프로젝트 폴더내의 qml파일 위치를 확인하고 windeployqt를 실행한다.
windeployqt --release --qmldir ..\..\helloWorld helloWorld.exe
 

참고로 프로젝트 폴더는 아래와 같다.

Image [3].png

위 명령을 수행하면 종속성을 체크하면서 관련 라이브러리가 복사된다.

Image [4].png

 

 

이상없이 끝나면 컴파일후 디플로이된 폴더에 Qt관련 라이브러리들이 복사된 것을 볼 수 있을것이다.  

Image [5].png

이제 다시 helloWorld.exe를 실행해보면 정상적으로 실행됨을 알 수 있다.

Image [6].png

 

 

 


  1. No Image notice

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

    Date2019.01.05 CategoryQML and Qt Quick By운영자 Views436509
    read more
  2. 가상키보드(Qt Virtual Keyboard)를 사용하는 방법

    Date2019.05.03 CategoryMobile and Embedded Bymakersweb Views240342
    Read More
  3. Windows에서 Qt D-Bus를 사용하여 프로세스간 통신(IPC)

    Date2019.05.02 CategoryGeneral and Desktop Bymakersweb Views10557
    Read More
  4. No Image

    QML과 QtQuick 모듈 개념과 기본 타입들

    Date2019.04.26 CategoryQML and Qt Quick Bymakersweb Views19302
    Read More
  5. QML 전역 객체 (Global Object)

    Date2019.04.10 CategoryQML and Qt Quick Bymakersweb Views6862
    Read More
  6. tslib의 ts_calibrate를 응용해서 Qt로 터치보정기능 구현

    Date2019.04.06 CategoryQML and Qt Quick Bymakersweb Views7314
    Read More
  7. No Image

    GPU가 없는 장치에서 Qt Quick을 사용

    Date2019.04.02 CategoryQML and Qt Quick Bymakersweb Views9769
    Read More
  8. No Image

    QTextCodec클래스를 사용하여 유니코드와 EUC-KR 변환

    Date2019.03.25 CategoryGeneral and Desktop Bymakersweb Views11977
    Read More
  9. No Image

    qInstallMessageHandler를 이용한 디버그 메세지 출력 제어하기

    Date2019.02.25 CategoryGeneral and Desktop Bymakersweb Views7331
    Read More
  10. Qt5기반 독립 프로세스(out-of-process)로 동작하는 가상키보드(virtual keyboard)

    Date2019.02.24 CategoryMobile and Embedded Bymakersweb Views8462
    Read More
  11. Qml 기본 컴포넌트 강좌 (4) - 모델 리스팅(Listing)

    Date2019.02.23 CategoryQML and Qt Quick By운영자 Views11954
    Read More
  12. Qt Bluetooth를 이용한 시리얼(Serial) 통신

    Date2019.02.17 CategoryMobile and Embedded Bymakersweb Views15878
    Read More
  13. Qml 기본 컴포넌트 강좌 (3) - 배치(positioning) 컴포넌트

    Date2019.02.10 CategoryQML and Qt Quick By운영자 Views13140
    Read More
  14. No Image

    QString 문자열 다루기 예제

    Date2019.01.26 CategoryGeneral and Desktop By운영자 Views53166
    Read More
  15. Qt SQL을 이용한 가벼운 데이터베이스 다루기

    Date2019.01.23 CategoryGeneral and Desktop By운영자 Views13983
    Read More
  16. 구글 클라우드 Speech-To-Text API를 Qt기반(C++, Qml)테스트

    Date2019.01.20 CategoryGeneral and Desktop Bymakersweb Views16566
    Read More
  17. No Image

    QNetworkAccessManager를 통해 HTTP POST 하는 예제

    Date2019.01.17 CategoryGeneral and Desktop Bymakersweb Views15694
    Read More
  18. Qt응용프로그램 실행 시 콘솔창(터미널)같이 띄우기

    Date2019.01.16 CategoryGeneral and Desktop Bymakersweb Views12136
    Read More
  19. 안드로이드 가상장치 사용

    Date2019.01.13 CategoryMobile and Embedded Bymakersweb Views8355
    Read More
  20. No Image

    Qml 기본 컴포넌트 강좌 (2)

    Date2019.01.05 CategoryQML and Qt Quick Bymakersweb Views16109
    Read More
  21. Qml 기본 컴포넌트 강좌 (1)

    Date2019.01.03 CategoryQML and Qt Quick Bymakersweb Views20097
    Read More
Board Pagination Prev 1 5 6 7 8 9 Next
/ 9