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운영자 Views436405
    read more
  2. No Image

    많은 리소스를 사용하는 Qt프로젝트에서 고려해봐야 할 qmake 옵션

    Date2019.10.11 CategoryGeneral and Desktop Bymakersweb Views10078
    Read More
  3. No Image

    컨테이너에 적재된 객체를 편리하게 삭제하기

    Date2019.09.18 CategoryGeneral and Desktop Bymakersweb Views7751
    Read More
  4. [Qt News] Qt for Python을 위한 기술 비전

    Date2019.08.20 CategoryGeneral and Desktop Byj2doll Views21653
    Read More
  5. No Image

    [Qt News] Qt 6 기술 비전 (Technical vision for Qt 6)

    Date2019.08.08 CategoryGeneral and Desktop Byj2doll Views14069
    Read More
  6. No Image

    Qt기반의 오픈소스 프로젝트들 - 2

    Date2019.07.21 CategoryGeneral and Desktop By운영자 Views15417
    Read More
  7. No Image

    QtSerialPort를 사용한 시리얼(Serial)통신

    Date2019.05.21 CategoryGeneral and Desktop Bymakersweb Views22875
    Read More
  8. No Image

    Qt기반의 오픈소스 프로젝트들

    Date2019.05.15 CategoryGeneral and Desktop Bymakersweb Views14902
    Read More
  9. No Image

    Q_D매크로와 d-pointer

    Date2019.05.07 CategoryGeneral and Desktop Bymakersweb Views8856
    Read More
  10. Windows에서 Qt D-Bus를 사용하여 프로세스간 통신(IPC)

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

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

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

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

    Date2019.02.25 CategoryGeneral and Desktop Bymakersweb Views7331
    Read More
  13. No Image

    QString 문자열 다루기 예제

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

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

    Date2019.01.20 CategoryGeneral and Desktop Bymakersweb Views16563
    Read More
  16. No Image

    QNetworkAccessManager를 통해 HTTP POST 하는 예제

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

    Date2019.01.16 CategoryGeneral and Desktop Bymakersweb Views12136
    Read More
  18. Qt 응용프로그램 배포(windows)

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

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

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

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

    Qt Version확인 방법

    Date2018.03.29 CategoryGeneral and Desktop Bymakersweb Views13099
    Read More
Board Pagination Prev 1 2 3 Next
/ 3