1
0
forked from BRT/arc
arc/BUILD.md

82 lines
1.7 KiB
Markdown
Raw Permalink 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.

# ARC — сборка и запуск
## Windows (x64)
### Требования
- Visual Studio 2022
- Qt 6.9.0 (msvc2022_64)
- vcpkg с пакетом `tesseract:x64-windows`
### Сборка
```bash
mkdir build_x64
cd build_x64
cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_PREFIX_PATH="C:/Qt/6.9.0/msvc2022_64" -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
```
### Деплой Qt DLL
```bash
"C:\Qt\6.9.0\msvc2022_64\bin\windeployqt.exe" .\Release\ARC.exe
```
### Копирование vcpkg DLL
Скопировать все DLL из vcpkg в папку с exe:
```bash
copy C:\Users\User\.vcpkg-clion\vcpkg\installed\x64-windows\bin\*.dll .\Release\
```
### База данных
БД не включена в сборку. Перед первым запуском скопировать файл БД:
```bash
copy database\app_data.db .\Release\database\app_data.db
```
Папка `database/` создаётся автоматически при сборке. Путь к БД настраивается в `config.ini` (ключ `db/dbPath`), по умолчанию `./database/app_data.db`.
### Запуск
```bash
cd Release
ARC.exe
```
---
## macOS
> TODO: инструкция для macOS будет добавлена позже.
### Требования
- Qt 6 (`brew install qt`)
- Tesseract + Leptonica (`brew install tesseract leptonica`)
### Сборка
```bash
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
```
### База данных
Перед первым запуском скопировать файл БД:
```bash
mkdir -p database
cp ../database/app_data.db ./database/app_data.db
```
### Запуск
```bash
./ARC
```