Skip to content

Commit

Permalink
#3 README update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Davis committed Feb 28, 2020
1 parent da0730c commit 8fa7be8
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,38 +74,59 @@ First, build the static [HIDAPI](https://github.com/mstrthealias/HIDAPI-Qt5) lib

Note: HIDAPI should be cloned into this project's parent directory (or clone the [parent project](https://github.com/mstrthealias/TeensyFanController/) with all submodules).

1. In non-root Shell, add Qt5 to PATH, fe.:
In non-root Shell, add Qt5 to PATH, fe.:

```
PATH=$PATH:~/Qt/5.13.2/gcc_64/bin
QT_QPA_PLATFORM_PLUGIN_PATH=~/Qt/5.13.2/gcc_64/plugins
```

1. Change directory to HIDAPI, fe.:
Change directory to HIDAPI, fe.:

```
cd ~/TeensyFanController/HIDAPI
```

1. Run qmake:
Run qmake:

```
qmake
```

1. Run make:
Run make:

```
make
```

1. Verify libHIDAPI.a was created:
Verify libHIDAPI.a was created:

```
ls linux/libHIDAPI.a
```

Building the Fan Controller UI:

Until the Fan Controller UI's installer is published, it is easiest to run the application using Qt Creator.
Change directory to HIDAPI, fe.:

```
cd ~/TeensyFanController/teensy_fan_controller
```

Run qmake:

```
qmake
```

Run make:

```
make
```

Launch using `sudo` (note: replace /home/username/Qt/5.13.2 with path to Qt release):

```
sudo bash -c 'QT_BASE=/home/username/Qt/5.13.2 QML2_IMPORT_PATH="$QT_BASE/gcc_64/qml" QML_IMPORT_PATH="$QT_BASE/gcc_64/qml" QT_QPA_PLATFORM_PLUGIN_PATH="$QT_BASE/gcc_64/plugins" ./tfctrl'
```

0 comments on commit 8fa7be8

Please sign in to comment.