Files
hcie-rust-v3.05/hcie-qt-app/RUN.md
T
2026-07-09 02:59:53 +03:00

89 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# HCIE Qt6 — Çalıştırma Talimatları
## 1. Qt6 Dev Paketlerini Kur
```bash
# Ubuntu/Debian
sudo apt install qt6-base-dev libqt6opengl6-dev qt6-tools-dev
# Fedora
sudo dnf install qt6-qtbase-devel qt6-qtopengl-devel
# Arch
sudo pacman -S qt6-base qt6-tools qt6-declarative
# macOS
brew install qt@6
export CMAKE_PREFIX_PATH=$(brew --prefix qt@6)
```
## 2. Rust Engine'i Build Et
```bash
cd /mnt/extra/00_PROJECTS/hcie-rust-v4
cargo build -p hcie-engine-api
```
## 3. Qt Uygulamasını Build Et
```bash
cd hcie-qt-app
# Otomatik algılama
cmake -B build
# Veya manuel Qt6 yolu belirt
cmake -B build -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/cmake
# Derle
cmake --build build -j$(nproc)
```
## 4. Çalıştır
```bash
./build/hcie-qt
```
## Tek Komutla (Her Şey Dahil)
```bash
./build_qt.sh
```
Bu script:
1. Rust engine'i `cargo build -p hcie-engine-api` ile derler
2. Qt6'nın yüklü olup olmadığını kontrol eder
3. CMake ile Qt uygulamasını yapılandırır
4. Derler ve `./build/hcie-qt` çalıştırma talimatını gösterir
## Hızlı Test (Qt Designer ile UI'ı Düzenle)
```bash
designer-qt6 ui/mainwindow.ui
```
Bu komut Qt Designer'da `.ui` dosyasını açar — menü, panel, dock düzenini
görsel olarak düzenleyebilirsin.
## Dosya Yapısı
```
hcie-qt-app/
├── build/ ← cmake build output
│ └── hcie-qt ← çalıştırılabilir dosya
├── src/
│ ├── main.cpp ← giriş noktası
│ ├── mainwindow.h/cpp ← ana pencere (650+ satır)
│ ├── canvas_widget.h/cpp ← OpenGL canvas
│ ├── hcie_engine_wrapper.h/cpp ← Rust FFI köprüsü
│ ├── panels/ ← 10 panel (Tools, Layers, Colors, ...)
│ └── dialogs/ ← 3 dialog (New Image, Filter, Preferences)
├── ui/
│ └── mainwindow.ui ← Qt Designer dosyası (10 menü, 11 dock)
├── resources/
│ ├── themes/ ← 5 QSS tema dosyası
│ └── icons/ ← 35 SVG ikon
└── CMakeLists.txt
```