chaqt/README.md

58 lines
1.9 KiB
Markdown
Raw Normal View History

2024-09-03 13:00:51 +02:00
# ChaQt
2024-09-03 13:11:42 +02:00
Qt application using chatapi[^1] \
2024-09-03 13:00:51 +02:00
(it will be after I learn)
---
## Requirements
- Java **21** (JDK)
- Qt **6.7.2**
## Usage
2024-09-03 13:11:42 +02:00
In both cases, replace `/home/user/Qt/6.7.2/gcc_64/lib` with your Qt installation[^4]
- Just run:
```shell
./mvnw compile exec:java -Djava.library.path=/home/user/Qt/6.7.2/gcc_64/lib
```
- Package[^5] and run:
```shell
./mvnw package
java -Djava.library.path=/home/user/Qt/6.7.2/gcc_64/lib -jar target/chaqt-1.0-SNAPSHOT.jar
```
2024-09-03 13:00:51 +02:00
### Downloading Qt
- For 64-bit Linux:
2024-09-03 15:28:10 +02:00
1. Download [`qt672.tar.zst`](https://lfs724.b-cdn.net/qt672.tar.zst)[^2]
2024-09-03 13:00:51 +02:00
2. Extract
2024-09-03 13:19:11 +02:00
3. Note the **absolute**[^3] path to `6.7.2/gcc_64/lib`
2024-09-03 13:00:51 +02:00
- For other systems, or if you want to DIY:
1. Download the [Qt **Online** Installer](https://www.qt.io/download-qt-installer-oss) and execute
2024-09-03 15:26:28 +02:00
2. You will be asked to create a Qt account - you have to[^6] (that's why I provide a download)
2024-09-03 13:00:51 +02:00
3. Click through until you see the installation options. \
Take note of the `Installation folder` and choose `Custom Installation`
4. `Select` -> `Deselect All` \
Then select `Qt` -> `Qt 6.7.2` -> `Desktop`
5. Click through until you finish
6. Note the **absolute**[^3] path to `6.7.2/gcc_64/lib` in your installation folder
2024-09-03 15:26:28 +02:00
### Notes[^99]
2024-09-03 13:00:51 +02:00
2024-09-03 13:11:42 +02:00
[^1]: considering renaming
2024-09-03 15:26:28 +02:00
[^2]: Signature: [`qt672.tar.zst.sig`](https://git.m724.eu/Minecon724/chaqt/raw/branch/master/qt672.tar.zst.sig) (on this repo)
2024-09-03 13:11:42 +02:00
2024-09-03 15:26:28 +02:00
[^3]: Absolute means like `/home/user/Qt/6.7.2/gcc_64/lib`
2024-09-03 13:11:42 +02:00
2024-09-03 13:19:11 +02:00
[^4]: You can use an environment variable `LD_LIBRARY_PATH` instead of `-Djava.library.path`. Make it the same value
2024-09-03 13:11:42 +02:00
[^5]: Saves the artifact as `chaqt-1.0-SNAPSHOT.jar` in the `target` directory. \
2024-09-03 13:19:11 +02:00
You can move it away and delete this repo
2024-09-03 15:26:28 +02:00
[^6]: You will also receive unwanted emails. \
To unsubscribe, you must click a tracking link, [look here](https://www.qt.io/email-preferences)
[^99]: I love footnotes