chaqt/README.md
2024-09-05 07:26:17 +02:00

1.8 KiB

ChaQt

Qt application using chatapi1
(it will be after I learn)


Requirements

  • Java 21 (JDK)
  • Qt 6.7.2

Usage

In both cases, replace /home/user/Qt/6.7.2/gcc_64/lib with your Qt installation2

  • Just run:

    ./mvnw compile exec:java -Djava.library.path=/home/user/Qt/6.7.2/gcc_64/lib
    
  • Package3 and run:

    ./mvnw package
    java -Djava.library.path=/home/user/Qt/6.7.2/gcc_64/lib -jar target/chaqt-1.0-SNAPSHOT.jar
    

Downloading Qt

  • For 64-bit Linux:
    1. ./download_qt.sh
    2. Installed to ./Qt/6.7.2/gcc_64/lib
  • For other systems, or if you want to DIY:
    1. Download the Qt Online Installer and execute
    2. You will be asked to create a Qt account - you have to4 (that's why I provide a download)
    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 absolute5 path to 6.7.2/gcc_64/lib in your installation folder

Notes6


  1. considering renaming ↩︎

  2. You can use an environment variable LD_LIBRARY_PATH instead of -Djava.library.path. Make it the same value ↩︎

  3. Saves the artifact as chaqt-1.0-SNAPSHOT.jar in the target directory.
    You can move it away and delete this repo ↩︎

  4. You will also receive unwanted emails.
    To unsubscribe, you must click a tracking link, look here ↩︎

  5. Absolute means like /home/user/Qt/6.7.2/gcc_64/lib ↩︎

  6. I love footnotes ↩︎