본문 바로가기
시스템개발/QT

cqtdeployer 로 우분투의 릴리즈 파일 배포하기

by 이노키_ 2022. 5. 31.

출처: https://yonglimlee.tistory.com/entry/QT-linux-deploy-우분투에서-배포하기-2004LTS-64bit?category=814108 [그린 엔지니어 🌿:티스토리]

 

우분투 서버를 새로 설치한 후, 위 글처럼 cqtdeployer를 설치했으나 cqtdeployer가 더이상 동작하지 않았고 다음과 같은 오류를 뱉어냈다.

gcs@dron:~/projects/build-Drone-Desktop-Release$ cqtdeployer -bin Drone
Info: Deploy ...
Info: The targetDir option is not used. CQtDeployer will use default target dir :/home/gcs/projects/build-Drone-Desktop-Release/DistributionKit
Error: The deployment target requires Qt libraries, but initialize of Qt directories is failed. Please use the qmake option to set a path to the qmake executable.
Info: If you are using qmake from the system repository, then you must use the classic version of CQtDeployer instead of the snap version. This is due to the fact tn an isolated container and has limited access to system utilities and the environment. For get the classic version of cqtdeployer use the cqtdeployer installer httQtDeployer/releases
Error: Deploy failed!
Error: The CQtDeployer fail to read configuration.

 

그래서 snap 설치버전을 삭제한 후, 다시 wget을 이용해 다시 설치를 진행하였고, 배포버전 만들기를 성공하였다. 

 

1. snap으로 설치한 cqtdeployer 삭제

- snap으로 설치한 리스트 확인

gcs@dron:~/projects/build-Drone-Desktop-Release$ snap list

이름                 버전                  개정     추적               발행인           노트
bare               1.0                 5      latest/stable    canonical✓    base
core               16-2.55.5           13250  latest/stable    canonical✓    core
core18             20220428            2409   latest/stable    canonical✓    base
core20             20220512            1494   latest/stable    canonical✓    base
cqtdeployer        1.5.4.15            244    latest/stable    quasarrapp    -
gnome-3-34-1804    0+git.3556cb3       77     latest/stable/…  canonical✓    -
gnome-3-38-2004    0+git.1f9014a       99     latest/stable    canonical✓    -
gtk-common-themes  0.1-79-ga83e90c     1534   latest/stable/…  canonical✓    -
postman            8.12.5              149    v8/stable        postman-inc✓  -
snap-store         3.38.0-66-gbd5b8f7  558    latest/stable/…  canonical✓    -
snapd              2.55.5              15904  latest/stable    canonical✓    snapd

 

- 이름을 확인했으니 삭제하자

sudo snap remove cqtdeployer

gcs@dron:~/projects/build-Drone-Desktop-Release$ sudo snap remove cqtdeployer
cqtdeployer:home를 snapd:home로부터 연결 해제
cqtdeployer:home를 snapd:home로부터 연결 해제    
스냅 "cqtdeployer" (244)에 대한 보안 프로필 제거   
cqtdeployer 삭제됨

 

2. wget으로 설치하기

- CQtDeployer/Build-and-Install.md at main · QuasarApp/CQtDeployer · GitHub

 

GitHub - QuasarApp/CQtDeployer: This project is used to deploy applications written using QML, qt or other С / С++ frameworks.

This project is used to deploy applications written using QML, qt or other С / С++ frameworks. - GitHub - QuasarApp/CQtDeployer: This project is used to deploy applications written using QML, qt or...

github.com

- Install / linux를 참고하여 설치했다. 

wget https://github.com/QuasarApp/CQtDeployer/releases/download/1.5.3/CQtDeployer_1.5.3.0_Installer_Linux64.run
chmod +x CQtDeployer_1.5.3.0_Installer_Linux64.run
./CQtDeployer_1.5.3.0_Installer_Linux64.run install

- 설치가 완료되면 홈디렉토리에 CQtDeployer 디렉토리가 생성된다. 

 

3. 릴리즈로 빌드한 qt 실행파일을 배포하기

- 나의 경우에 cqtdeployer의 실행 파일 위치는 아래와 같았다. 

~/CQtDeployer/1.5/cqtdeployer.sh

- 릴리즈로 빌드한 파일의 위치로 이동 (파일명은 Drone임)

gcs@dron:~$ cd projects/build-Drone-Desktop-Release

- 배포파일 만들기!

~/CQtDeployer/1.5/cqtdeployer.sh -bin ./Drone

- 해당 디렉토리 위치에 DistributionKit이 만들어지고 내부에 Drone.sh 라는 배포파일이 만들어졌다.

- 성공

댓글