General and Desktop
2018.10.10 13:03

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

조회 수 18689 추천 수 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운영자 Views437420
    read more
  2. Windows에서 라즈베리파이3용 Qt5.10.0 크로스컴파일

    Date2018.02.23 CategoryMobile and Embedded Bymakersweb Views20660
    Read More
  3. Windows에서 라즈베리파이3 Qt 어플리케이션 개발 및 원격 실행

    Date2018.02.23 CategoryInstallation and Deployment Bymakersweb Views12587
    Read More
  4. 초보자를 위한 첫번째 프로젝트 - QML로 만드는 Hello World

    Date2018.03.16 CategoryGeneral and Desktop Bymakersweb Views27005
    Read More
  5. No Image

    Qt Version확인 방법

    Date2018.03.29 CategoryGeneral and Desktop Bymakersweb Views13112
    Read More
  6. No Image

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

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

    Qt Bluetooth 관련 기능 확인 사항

    Date2018.07.10 CategoryInstallation and Deployment Bymakersweb Views8195
    Read More
  8. Qml 어플리케이션 정적 빌드

    Date2018.07.27 CategoryInstallation and Deployment Bymakersweb Views8595
    Read More
  9. Qml에서 키보드 입력 이벤트 핸들링

    Date2018.08.09 CategoryQML and Qt Quick Bymakersweb Views11188
    Read More
  10. 표를 만들고 PDF문서로 출력하기

    Date2018.09.30 CategoryGeneral and Desktop Bymakersweb Views7340
    Read More
  11. No Image

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

    Date2018.10.08 CategoryGeneral and Desktop Bymakersweb Views8750
    Read More
  12. Qt 응용프로그램 배포(windows)

    Date2018.10.10 CategoryGeneral and Desktop Bymakersweb Views18689
    Read More
  13. Qt Installer Framework - 패키징, 설치프로그램 제작

    Date2018.10.14 CategoryInstallation and Deployment Bymakersweb Views22690
    Read More
  14. QML에서 동적으로 텍스트 다국어 처리

    Date2018.11.04 CategoryQML and Qt Quick Bymakersweb Views10462
    Read More
  15. 리눅스에서 Qt4.8기반 어플리케이션의 한글입력

    Date2018.11.29 CategoryInstallation and Deployment Bymakersweb Views10845
    Read More
  16. 안드로이드 Qt 프로그래밍

    Date2018.11.30 CategoryMobile and Embedded Bymakersweb Views17414
    Read More
  17. No Image

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

    Date2018.12.05 CategoryQML and Qt Quick By운영자 Views7907
    Read More
  18. ShaderEffect QML Type 을 이용한 그래픽효과

    Date2018.12.09 CategoryQML and Qt Quick Bymakersweb Views11050
    Read More
  19. No Image

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

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

    Date2018.12.25 CategoryQML and Qt Quick Bymakersweb Views21206
    Read More
  21. QtWayland와 ivi-compositor

    Date2018.12.27 CategoryMobile and Embedded Bymakersweb Views14308
    Read More
Board Pagination Prev 1 2 3 4 5 9 Next
/ 9