- for Ubuntu(Linux) (3/9)
이 파트에서는 Ubuntu 환경에서 QGroundControl(QGC)의 소스코드를 내려받고 빌드하는 방법을 설명한 후, 코드 구조와 주요 클래스를 탐색하는 방법을 다룹니다. 공식 Developer Guide의 'Getting Started with Source & Builds' 내용을 반영했습니다.
```bash
git clone --recursive https://github.com/mavlink/qgroundcontrol.git
cd qgroundcontrol
git submodule update --init --recursive
```
Qt 5.15.x 설치 필요 (`sudo apt install qtcreator qtbase5-dev qtdeclarative5-dev`)
Qt Creator에서 `qgroundcontrol.pro` 열기 → Desktop kit 선택 → Build & Run
```bash
mkdir build && cd build
cmake .. -GNinja
ninja
./release/qgroundcontrol
```
```bash
docker build -t qgc-dev .
docker run -it --rm qgc-dev
```
src/ : QGC 핵심 로직
qml/ : UI 코드
libs/ : 외부 라이브러리
resources/ : 아이콘, 이미지, 번역 파일
test/ : 테스트 코드
cmake/ : 빌드 스크립트
QGCApplication, MainWindow, Vehicle, MAVLinkProtocol, MissionManager, GeoFenceManager, RallyPointManager