티스토리 뷰
왜 qt는 windeployqt 같은 ubuntudeployqt 를 제공해주지 않을까
지금은 2023년, 2019년도에 올라온 이슈를 해결하기 위하여 연차를 쓴겸에 안해본거 해보고 싶어서 QT 기반 프로그램인 YoloLabel을 Ubuntu 22.04 버전으로 배포해봤다.
https://github.com/developer0hye/Yolo_Label/issues/19
We need a linux version of this! · Issue #19 · developer0hye/Yolo_Label
Yolo was originally designed for linux so a linux binary would be appreciated
github.com
이를 위해 아래의 프로젝트를 활용했다.
https://github.com/QuasarApp/CQtDeployer
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
설치는 https://github.com/QuasarApp/CQtDeployer/releases/tag/v1.6.2277 에서

로 했다.
명령어로 설치 가능하다.
wget https://github.com/QuasarApp/CQtDeployer/releases/download/v1.6.2277/CQtDeployer_1.6.2277.ecc6eed_Linux_x86_64.run
chmod 777 CQtDeployer_1.6.2277.ecc6eed_Linux_x86_64.run
./CQtDeployer_1.6.2277.ecc6eed_Linux_x86_64.run
참고로 내 경우에는 Ubuntu 20.04에서는 안됐고 Ubuntu 22.04 에서 됐다.
그러고나서, 배포할 Qt 프로젝트 빌드를 해주고 binary file이 생성되는 위치(=path) 로가서 아래 명령어를 실행하면, path/DistributionKit 폴더에 배포가능하게끔 파일들이 구성되어있는 것을 확인 할 수 있다.
예시) binary file 이름이 YoloLabel, qmake 경로가 ~/Qt/6.4.2/gcc_64/bin/qmake 인 경우
cqtdeployer -bin ./YoloLabel -qmake ~/Qt/6.4.2/gcc_64/bin/qmake
위 명령어 실행하고나니 나 같은 경우에 DistributionKit 폴더에 아래처럼 파일이 구성됐다.

DistributionKit 의 파일들을 압축해서 배포했다.
https://github.com/developer0hye/Yolo_Label/releases/tag/v1.2.1
Release v1.2.1 · developer0hye/Yolo_Label
Important Updates Minor bug fix related to the visualization of class name function Release Ubuntu 22.04 version #19
github.com

근데... WSL2 + Native Ubuntu22.04 상에서 테스트해보니 바로 실행은 안됐다. Qt 라이브러리는 문제가 없었지만 libgl, libxcb, libxkb가 없어서 안됐다.
https://github.com/developer0hye/Yolo_Label#for-ubuntu-2204
GitHub - developer0hye/Yolo_Label: GUI for marking bounded boxes of objects in images for training neural network Yolo v3 and v2
GUI for marking bounded boxes of objects in images for training neural network Yolo v3 and v2 https://github.com/AlexeyAB/darknet, https://github.com/pjreddie/darknet - GitHub - developer0hye/Yolo_...
github.com
거추장스럽게 라이브러리 설치 명령어를 실행해줘야한다. 사용자로 하여금 귀찮게 만든다.

사실 Ubuntu 22.04 on WSL2 에서만 테스트를 해봤다...
'기타' 카테고리의 다른 글
| github actions 건드려보는중... (0) | 2023.01.25 |
|---|---|
| [WSL2] Ubuntu 22.04 설치 (Deprecated) (0) | 2023.01.14 |
| Window 및 WSL 간 파일 전송 (0) | 2023.01.13 |
| 제주도 출장 팁 (0) | 2023.01.13 |
| QT Installer Link (0) | 2023.01.13 |
- Total
- Today
- Yesterday
- 위상 정렬 알고리즘
- 순열
- FairMOT
- LCA
- 백트래킹
- Lowest Common Ancestor
- 가장 긴 증가하는 부분 수열
- 파이참
- 백준 11437
- ㅂ
- 문제집
- 자료구조
- cosine
- MOT
- PyCharm
- C++ Deploy
- 백준
- 조합
- 이분탐색
- 백준 1766
- 인공지능을 위한 선형대수
- 단축키
- 백준 11053
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
